How to display aspx pages in Webbrowser control RRS feed

  • Question

  •  Hello, I'm not sure if this is the correct thread to post this in, I appologize if it isn't.

    I have added a webbrowser control to my windows form and it displays html code just find, but it does not display aspx code at all.

    This displays html just find in the webbrowser control:
                string myhtmlcode = "Name: <input name="txt_First_Name" type="text" id="txt_First_Name" />";
                webBrowserForm.DocumentText = txtCodeOutPut.Text;

    This does not display anything in the webbrowser control:

                string myaspxcode = "<asp:Label ID=\"Label1\" runat=\"server\" Text=\"Frist Name\">First Name</asp:Label>" +
                                                  "<asp:TextBox ID=\"TextBox1\" runat=\"server\"></asp:TextBox>";

                webBrowserForm.DocumentText = txtCodeOutPut.Text;

    Please help,


    Monday, February 9, 2009 8:43 PM

All replies

  • This forum is for Visual Studio Extensibility (macros, add-ins, SDK packages, etc.). You may want to try in other forums about WinForm controls.

    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about VS extensibility: http://msmvps.com/blogs/carlosq/
    Tuesday, February 10, 2009 9:58 AM