PC Review


Reply
Thread Tools Rate Thread

ado.net DropDownList not persisting

 
 
Mad Scientist Jr
Guest
Posts: n/a
 
      17th Mar 2004
I have a dropdown list that is initiated if Not Postback. However when
a postback occurs, the dropdown's value is reset.

Is there a property I am missing, or some even that is getting fired
that might be causing this?

Thanks in advance...

If (IsPostBack) Then
'(process controls)
Else
'(init controls)
End If
 
Reply With Quote
 
 
 
 
Mad Scientist Jr
Guest
Posts: n/a
 
      18th Mar 2004
found the problem - if you don't assign Values (but only Text) to a
dropdown it can't persist! i assigned values 0,1,2,3,4,5,etc to it and
now it works fine.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I set the DropDownList.SelectedIndex of ONE DropDownList they ALL change! S_K Microsoft ASP .NET 5 14th Nov 2007 04:51 PM
DropDownList inside GridView: How to set SelectedIndex for the DropDownList? keithb Microsoft ASP .NET 0 1st May 2006 11:54 PM
GridView: Filtr DropDownList from another DropDownList =?Utf-8?B?SnVhbmpv?= Microsoft ASP .NET 0 23rd Dec 2005 01:31 PM
Dynamically created DropDownList not firing events or persisting viewstate bryanp10@hotmail.com Microsoft ASP .NET 5 11th Mar 2005 10:41 PM
dropdownlist value not persisting after autopostback Daniel Doyle Microsoft ASP .NET 1 25th Jun 2004 01:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:32 AM.