Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I pass listbox value w/o PostBack to another page? 1

Status
Not open for further replies.

bubberz

Programmer
Dec 23, 2004
117
US
I have three dropdownlists. The first two are on AutoPostBack=True, and I populate two textboxes with the values of each of these dropdownlists.

I am having problems with the third since on PostBack, it was populating a text box with the first value everytime, and not the selected item. Can I grab the selected value from this third ddl with AutoPostBack=False, and pass the selected value to another page?

If so, how would I do that?

Thanks!
 
on a button click

response.redirect("wfrmNextPage.aspx?ID=" & mylist.selectedItem.Value.ToString())

"...we both know I'm training to become a cagefighter...see what happens if you try 'n hit me..."
 
Right on...thanks checkai!
I'll try this and let you know. This could have solved all my head-ache for the past couple days with this goofy third ddl.

I still want to know why it's resetting to the first item, rather than the one I selected...oh well...it'll come hopefully some day....movin' on!
 
checkai,

This will do the job. Thanks for your help. Basically, in the end all I just turned the "AutoPostBack" to False for this 3rd ddl.
What I have to do now, is take the information in the ID="" string and post that in the DataGrid on the Request.QueryString page. Any tips on how to do that?
I want to insert new records in the Footer first off, but eventually I have to insert these records in the same row as the hyperlink button click. Basically, the user can go to any row with the hyperlink, click on the button to go to this page with the three ddls, then close the page with these 3 ddls. The user is then taken back to the Datagrid and these three values should be inserted.
Thanks again for all your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top