Ask a Question related to ASP.NET General, Design and Development.
-
Marina #1
Re: Persisting DDL.SelectedValue or DDL.SelectedItem.Value without Viewstate
Use the forms collection. Something like Request.Form("myDDL") in VB.
"Paul Aspinall" <paul@nospamaspy.co.uk> wrote in message
news:ONWaLRQYDHA.1204@TK2MSFTNGP12.phx.gbl...to> 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 ViewStateall> persist the Entire contents. The reason, is because I don't want to pass> 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
>
>
Marina Guest
-
Failed to load viewstate. The control tree into which viewstate...
Hi to all, I have a webform.aspx and inside i have a dropdown list with autopostback and a place holder... Depending of the selected index... -
Persisting DataSource on Postback using ViewState
Hi All, Ok, I've got a server control that implements custom databinding and generates a list of RadioButtons. (Yes, you'd think why not use the... -
DropDownList.SelectedValue not changing
I have a DropDownList that is bound and properly filled from my DataSet when the page loads. but when the I try to retrieve any value I always get... -
viewstate restores data but selectedItem is restored late
I have a Web Custom Control that has a checkBoxList control added to its control collection. This checkbox list control is initially populated... -
Retrieving SelectedValue from DropDownList
I have a few DropDownList controls used for new record entry in the footer of a datagrid and I want to limit the options available in one list based...



Reply With Quote

