Why are Server control tags shown in the browser instead of the controls it represents?

This is because the server control tags were not converted into their respecting HTML element tags by ASP.Net. This happens when ASP.Net is not properly registered with IIS. .Net framework provides an Administration utility that manages the installation and uninstallation of multiple versions of ASP.NET on a single machine. You can find the file in C:\WINNT\Microsoft.NET\Framework\v**\aspnet_regiis.exe use the command: aspnet_regiis.exe -u —> to uninstall current asp.net version. use the command: aspnet_regiis.exe -i —> to install current asp.net version.

How do I debug JavaScript and other script code in my application using Visual Studio .Net?

1) In IE go to Tools/Internet Options…/Advanced Tab and clear the ‘Disable Script Debugging’ check box options. 2) In VS.Net in your project properties dialog, select ‘Debugging’ under ‘Configuration Properties’ and make sure that ‘Enable ASP.Net Debugging’ is turned on. 3) You can then set break points in script code in VS.Net in custom script files or the application aspx file. 4) VS.Net should give you detailed debugging information for variables in the scope just like other high-level languages.

How to convert a string to HTML format

Use namespace System.Web.HttpUtility VB.NET Dim mystring as string =”Tom & Jerry” Response.Write (HttpUtility.HtmlDecode (mystring)) C# string mystring=”Tom & Jerry”; Response.Write (HttpUtility.HtmlDecode (mystring));