How to use the <asp:xml> tag
<asp:Xml id=’Xml1′ DocumentSource=’products.xml’ runat=’server’></asp:Xml>
How to change the Page Title dynamically
<TITLE id=’Title1′ runat =server ></TITLE> VB.NET ’Declare Protected WithEvents Title1 As System.Web.UI.HtmlControls.HtmlGenericControl ’In Page_Load Title1.InnerText =’Page 1′ C# //Declare protected System.Web.UI.HtmlControls.HtmlGenericControl Title1 ; //In Page_Load Title1.InnerText =’Page 1′ ;
How can I specify the ‘upload a file’ input textbox in a form to be read only so that the user can click on the browse button and pick a file but they cannot type anything into the textbox next to the browse button.
<input id=’File1′ type=’file’ contenteditable=false />
Why can’t I put <%@ Page Language=’C ‘ %> where at the top of an ASPX file and write my server-side scripts in C ?
The parsers ASP.NET uses to extract code from ASPX files understand C#, Visual Basic.NET, and JScript.NET. You can write server-side scripts in any language supported by a .NET compiler.
How to comment out ASP.NET Tags
<%–<asp:Label id=’Label1′ style=’Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 48px’ runat=’server’>Label</asp:Label>–%>