Problem in selecting a item in dropdown list box of a .aspx page..
-
Hi Friends.. I am having a .aspx page in which i have dropdown list box.I am binding values to the dropdownlist from the database..There are five items in the dropdown list box..When i run my .aspx page and select items it is not displayed properly.i.e for example if i select the fourth item the third item is selected..But all the other items which i select are displayed correctly..Only at the time of selecting the fourth item,the third item is shown.What could be the problem ..? Someone help in this regard as early as possible. Regards,
Balaguru
-
Hi Friends.. I am having a .aspx page in which i have dropdown list box.I am binding values to the dropdownlist from the database..There are five items in the dropdown list box..When i run my .aspx page and select items it is not displayed properly.i.e for example if i select the fourth item the third item is selected..But all the other items which i select are displayed correctly..Only at the time of selecting the fourth item,the third item is shown.What could be the problem ..? Someone help in this regard as early as possible. Regards,
Balaguru
Hi Dude !! Keep a debugging point on a selected index change go through the values you will definately know what is happening if you can post a piece of code what you written we can definately help you out by verifying Happy Coding
modified on Sunday, August 31, 2008 1:54 PM
-
Hi Friends.. I am having a .aspx page in which i have dropdown list box.I am binding values to the dropdownlist from the database..There are five items in the dropdown list box..When i run my .aspx page and select items it is not displayed properly.i.e for example if i select the fourth item the third item is selected..But all the other items which i select are displayed correctly..Only at the time of selecting the fourth item,the third item is shown.What could be the problem ..? Someone help in this regard as early as possible. Regards,
Balaguru
Balagurunathan S wrote:
Someone help in this regard as early as possible
When you're paying for help, you can say stuff like this. It's hard to follow quite what you mean, you're saying that if you select item four and it posts back, item three is shown ? Have you set breakpoints to step through the code and see what's going on ? I doubt we can help you without seeing some code and some comments on what you see in the debugger.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Balagurunathan S wrote:
Someone help in this regard as early as possible
When you're paying for help, you can say stuff like this. It's hard to follow quite what you mean, you're saying that if you select item four and it posts back, item three is shown ? Have you set breakpoints to step through the code and see what's going on ? I doubt we can help you without seeing some code and some comments on what you see in the debugger.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Dear Graus, I am just binding values to the dropdownlist from the database using the following code.Here ldset is the dataset ldset = gobjClass.CW_GETBETOPT() Dim lBetViewFilter As New DataView lDataRow = lDataViewFilter.Item(0).Row lBetViewFilter = FindValueInBetViewReturn(ldset, "GAMEID='" &lDataRow("GameID") &"'") Me.DropDownList1.DataSource = lBetViewFilter Me.DropDownList1.DataTextField = "bettypedesc" Me.DropDownList1.DataValueField = "BetTypeId" Me.DropDownList1.DataBind() Me.DropDownList1.SelectedIndex = 0 The problem is exactly what u said that is if i select item four and it posts back, item three is shown ..Kindly help in this regard.. Thanks in Advance..
Balaguru