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
>
>
|