0% found this document useful (0 votes)
52 views1 page

Not Changing DDL Value Back

The document discusses not changing a dropdown list value when going to the next page. It provides code to set the selected index of a dropdown list (ddlstate) to the index of the item in the list that matches the text of a data record's state field, which is converted to a string.

Uploaded by

api-3848319
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views1 page

Not Changing DDL Value Back

The document discusses not changing a dropdown list value when going to the next page. It provides code to set the selected index of a dropdown list (ddlstate) to the index of the item in the list that matches the text of a data record's state field, which is converted to a string.

Uploaded by

api-3848319
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

if we go to next page not not changing the dropdown list value back

ddlstate.selectedindex =
ddlstate.items.indexof(ddlstate.items.findbytext(dr["state"].tostring()));

You might also like