Simple and easy to setup “autocomplete” code for a search textbox in your ASP.NET application. What do you need: 1. Generic handler (Search_VB.ashx) – Download it from here as a text file and convert it to ashx. 2. Stylesheet (jquery.autocomplete.css) – Download it from here as a text file and convert it to css. 3. […]
Archive for the 'Visual Studio' Tag
Form Drop-down-list binding
Learn how to make easy drop-down-list with a list of different choices and binding the existing data with the form. Screenshot speaks for itself.
ASP.NET Login Page with SQL Backend
Let’s start simple by creating form controls: <table> <tr><td>Usernname</td><td><asp:TextBox ID=”user” runat=”server”></asp:TextBox></td></tr> <tr><td>Password</td><td><asp:TextBox ID=”password” runat=”server” TextMode=”Password”></asp:TextBox></td></tr> <tr><td></td><td><asp:Button ID=”Button1″ OnClick=”submit” Text=”Login” runat=”server” causesValidation=”true” /></td></tr> </table> Now add some form validation: <table> <tr><td>Usernname</td><td><asp:TextBox ID=”user” runat=”server”></asp:TextBox> <asp:RequiredFieldValidator ID=”RequiredFieldValidator1″ runat=”server” ControlToValidate=”user” ValidationGroup=”UserCheck” ErrorMessage=” <font color=’red’> « Username is required!</font> “> </asp:RequiredFieldValidator> </td></tr> <tr><td>Password</td><td><asp:TextBox ID=”password” runat=”server” TextMode=”Password”></asp:TextBox> <asp:RequiredFieldValidator ID=”RequiredFieldValidator2″ runat=”server” ControlToValidate=”password” […]