" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

DropDownList Validation problem in ASP.NET

Posted on November 23rd, 2015 by Devi Das

Suppose in your application you are using a DropDownList in a Form and depending upon the item selection you are showing/hiding some views inside a Multiview and you want that the user must select one of the item from the DropDownList before submitting a Form. So you can write code like the following to validate […]

Change the UI of ListBox and DropDownList on the fly

Posted on November 23rd, 2015 by Aditya Acharya

The ListBox and DropDownList both are very useful for their own advantages. Their differences lie in their User Interfaces, DropDownList take less space but need more clicks to access while ListBox takes more space but provides everything itself on the page. You can easily change the UI of a ListBox to DropdownList and vice versa. […]

A Simple Time Saving Tip on ASP.NET DropDownList

Posted on November 23rd, 2015 by Palash Mondal

Problem For past few days I have been facing a problem while dynamically making a list item selected. Here is the code that I have used. Code ASPX <asp:DropDownList ID=”DropDownList1″ runat=”server” Width=”150px”> <asp:ListItem Value=”0″ Text=”– Select –” Selected=”True”/> <asp:ListItem Value=”1″ Text=”Red” /> <asp:ListItem Value=”2″ Text=”Greeen” /> <asp:ListItem Value=”3″ Text=”Yellow” /> <asp:ListItem Value=”4″ Text=”Pink” /> <asp:ListItem […]