User Control and Form Submit

J

Jason .

I have a user control on page1.aspx that contains 4 listboxes. When I
click the submit button, I am doing a Server.Transfer to page2.aspx. On
page2.aspx I have the same usercontrol. On page2.aspx when I submit the
form it submits it back to the same page. My problem is that the
control names on my usercontrol change when I use the server.transfer -
i.e. usercontrol:lstCountry changes to usercontrol:lstCountry1. The
only way to get the variable name is to determine where the page is
being submitted from and then set the form variables. Is there an
easier way?
 
J

Jason .

I don't think so because I need to capture the items selected in the
form. I don't believe Response.Redirect will allow me to get the items
selected.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top