PC Review


Reply
Thread Tools Rate Thread

Re: Persisting DDL.SelectedValue or DDL.SelectedItem.Value without Viewstate

 
 
Marina
Guest
Posts: n/a
 
      12th Aug 2003
Use the forms collection. Something like Request.Form("myDDL") in VB.

"Paul Aspinall" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
> I have a DDL (DropDownList), which has a number of records in it.
>
> In order to post the selected item back to the DB, I need to know what was
> selected when the page postsback.
>
> I can get the value, if ViewState is enabled on the DDL, by using
> DDL.SelectedValue or DDL.SelectedItem.Value
>
>
> However, doing this also persists the entire contents of the DDL, and not
> just the selected item.
>
> How can I get the value of DDL.SelectedValue, but without using ViewState

to
> persist the Entire contents. The reason, is because I don't want to pass

all
> the records back in ViewState. I'm happy for the server to regenerate the
> records, but I need to know which item was selected, ie. DDL.SelectedValue
>
>
> Any help appreciated.
>
>
> Thanks
>
>



 
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
Querystring - persisting viewstate? Chris Ashley Microsoft ASP .NET 2 12th Oct 2005 11:49 AM
Persisting viewstate information between HTTP/HTTPS? Chris Ashley Microsoft ASP .NET 4 21st Sep 2005 04:47 PM
persisting viewstate for disabled webcontrols =?Utf-8?B?RGF2aWQgQW5kZXJzb24=?= Microsoft Dot NET 1 12th Jul 2005 08:26 PM
Dynamically created DropDownList not firing events or persisting viewstate bryanp10@hotmail.com Microsoft ASP .NET 5 11th Mar 2005 11:41 PM
Method for persisting all page state not just viewstate. =?Utf-8?B?a2VuIGJ1cw==?= Microsoft ASP .NET 2 24th Jul 2004 04:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:15 PM.