I currently have a Main page that contains 4 dropdown lists the last one's selected value is an internal web address. When the submit button is clicked the selected value of that drop down is transfered to a session variable and where the page call in the attribute of the button's PostbackURL picks it up on load and assigns it to the iframe on the page attribute src. This works perfectly.
Now I am adding a text box and a second button in which the text entered in this textbox will be saved to a session variable and used to populate a search textbox on the called page from the button. It is used to filter Data control on this page to display requested industry terms from a database back end. The problem is that although the above example works perfectly the this one for some reason just will not create the session variable I am creating this at unload event of the page for both variables.
why wouldn't the session variable be created? If I place a thrid button on the page and have it onclick to do something simple like change the text attribute of a label on the page then click the submit button it works just fine.
Any help greatly appreciated.
If the values are just to be transferred from the first page to the second, it would be better to pass the value in the query string by a:
Response.Redirect("Page2.aspx?A=1&B=2")
Passing by querystring instead of server variable economises on server memory.
Hi,
Just Try and place breakpoints on the Unload event of your form and check whats happening around. If you are still not able to solve the problem, please post your code.
Good Luck
Regards
Vineed
0 comments:
Post a Comment