Tag Archives: Master Pages

Adding a Stylesheet to a Master Page in C#

I just updated the code for the Row and Column Highlight for Gridview Control lab. I decided to put the CSS specific to that feature in its own style sheet. Since I am using Master Pages for the labs, I … Continue reading

Posted in ASP.NET, C# | Tagged , , , | Leave a comment

Setting Default Focus on ASP.NET Master Pages

In ASP.NET 2.0, the way to set focus on a particular form field is to add a defaultfocus declaration in the form tag. <form id=”Form1″ defaultfocus=”txtSearch” runat=”server”> Since the form tag does not appear when using MasterPages, setting form focus … Continue reading

Posted in ASP.NET | Tagged , | Comments Off