Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 16, 2008 12:30 PM by nideeshm
Dec 20, 2005 05:13 PM|LINK
This is a very common issue that has to do with not checking for PostBack on Page_Load, which causes your DropDownList to load again on PostBack before the web form is processed. To ensure that the DropDownList gets loaded 1x
only, you will need to check for PostBack.
Private Sub Page_Load(ByVal sender
As Object, ByVal e
If Not IsPostBack Then
' Code here to bind data to DropDownList
private void Page_Load(object sender, EventArgs e)
// Code here to bind data to DropDownList
Dec 21, 2005 05:21 PM|LINK
Dec 21, 2005 05:32 PM|LINK
Dec 22, 2005 07:00 AM|LINK
Another exception is EasyListBox. No viewstate worries, no problem; you can re-bind and your selections stay intact.
Dec 24, 2005 02:22 PM|LINK
Oct 23, 2006 12:50 PM|LINK
There is no need for the post backs, to check for the selected value in the drop down
Nov 30, 2006 10:17 AM|LINK
are you fill the data into the dropdown list from db. if it is work fine that you can get the selected data through when it is postback(dropdownlist) or click event(). if these two not help you. let you try it useing firefox. ie some time throwing such that
Jan 15, 2007 11:17 PM|LINK
Jan 22, 2007 10:07 AM|LINK
However, there is one exception to this. When working with dynamically created controls you need to recreate the control on PostBack. Otherwise, an exception will be thrown when you attempt to access the dynamic control in your code on PostBack.
Jan 22, 2007 03:52 PM|LINK
I expect that the control is fetching the data two times
1. At the time of load
2. At the time of rendering
Please try to place the entire code in the pre render event and give a try.