Archive, ASP.NET

Comments In ASP.NET

Jason / December 22, 2007

Comments in HTML come in handy to temporarily remove site content. As ASP.NET developers, we have HTML comments available to use. In any ASPX markup file you can simply use the comment notation. read more

Archive, ASP.NET

Runat Server

Jason / December 20, 2007

As an ASP.NET developer you have undoubtedly seen controls with their runat property set to the value server. Other than being a required property, what does that property really mean? read more

Archive, ASP.NET

Validating Drop Downs In ASP.NET – Part 1

Jason / December 19, 2007

User input validation is an important component in any user interface. In the realm of web development a response UI is extremely important to the users experience.

If you are like myself, programming in JavaScript does not come easily to you. Fortunately, ASP.NET contains several validator controls that allow for client side form validation without you having to program any JavaScript.

Take for example a simple drop down control.

<asp:DropDownList ID="ddlSampleDropDown" runat="server"> <asp:ListItem Value="">--please select one--</asp:ListItem> <asp:ListItem Value="1">Apples</asp:ListItem> <asp:ListItem Value="2">oranges</asp:ListItem> </asp:DropDownList> read more