I have 2 pages aa.aspx and bb.aspx and both link to the 3rd page cc.aspx. There is a return button on the cc.aspx. How to control which page to be returned after the Return button is clicked
I have defined invisible lables lblCalledFrom.Text = 1 on page aa.aspx and calledFrom.Text = 2 on bb.aspx and defined variables protected string calledFrom in aa..aspx.cs and bb.aspx.cs which are assigned with lblCalledFrom.Text. The third page cc.aspx cannot get the value since they are the variables at page level.
I tried to create a variable of public string type in global.aspx and assign it with the value of calledFrom in aa.aspx.cs and bb.aspx.cs, and thought that cc.aspx would notice each time the value of calledFrom is changed The problem is I got compiling error and the global variable cannot be accepted either page. Is there any way to define a global variable, all pages will know once the value is changed?
I have defined invisible lables lblCalledFrom.Text = 1 on page aa.aspx and calledFrom.Text = 2 on bb.aspx and defined variables protected string calledFrom in aa..aspx.cs and bb.aspx.cs which are assigned with lblCalledFrom.Text. The third page cc.aspx cannot get the value since they are the variables at page level.
I tried to create a variable of public string type in global.aspx and assign it with the value of calledFrom in aa.aspx.cs and bb.aspx.cs, and thought that cc.aspx would notice each time the value of calledFrom is changed The problem is I got compiling error and the global variable cannot be accepted either page. Is there any way to define a global variable, all pages will know once the value is changed?