|
-
May 13th, 2005, 09:17 PM
#1
Thread Starter
Lively Member
Dropdownlist items autopostback
i would like my drop down list to retain the selected item when postback
cos everytime it postback, it goes back to the first item, any idea?
-
May 14th, 2005, 09:30 PM
#2
Re: Dropdownlist items autopostback
What code do you have in your page_load event?
-
May 14th, 2005, 11:11 PM
#3
Thread Starter
Lively Member
Re: Dropdownlist items autopostback
if Not page.ispostback then
ddl.datasource = ds.categories
.....
ddl.databind()
end if
-
May 15th, 2005, 02:11 AM
#4
Re: Dropdownlist items autopostback
Set its EnableViewState property to true.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|