How to access TextBox value of the Parent Page from the child page in server side
-
I having a Parent page with TextBox control. I need to access this TextBox control's value from Child page. I didn't know how to access in the server side from Child Page. can anyone help me on above problem. - dhans
-
I having a Parent page with TextBox control. I need to access this TextBox control's value from Child page. I didn't know how to access in the server side from Child Page. can anyone help me on above problem. - dhans
Hi, U can pass any number of values from parent form to child form by QueryString. Thanks and Regards.
-
Hi, U can pass any number of values from parent form to child form by QueryString. Thanks and Regards.
Hi, I have to deal with large amount of data, so i cannot use Querystring or session. Is there any other solution? thanks for quick reply - dhans:laugh:
-
Hi, I have to deal with large amount of data, so i cannot use Querystring or session. Is there any other solution? thanks for quick reply - dhans:laugh:
Sorry to say but I dont know any other option for this..... :(
-
I having a Parent page with TextBox control. I need to access this TextBox control's value from Child page. I didn't know how to access in the server side from Child Page. can anyone help me on above problem. - dhans
you can use global veriable in global.asax i think this will help u
-
I having a Parent page with TextBox control. I need to access this TextBox control's value from Child page. I didn't know how to access in the server side from Child Page. can anyone help me on above problem. - dhans
What do you mean by child page? is that a class derived from the original page? If you're talking about 2 different ASPX pages, I think there is no way to retrieve values of a page from another page. I believe that as soon as you switch from one page to another, the previous page is discarded with everything in it, so I suppose there is no way to get back values from controls in it. You might be able to do so however if you're running a web user control and you want to retrieve the values of the parent page (containing the control). One thing for sure is that you can access programmatically any user control from the parent page and change the values of the controls in it, now whether you can go the other way around is something worth investigating. Sorry, some theories, no solutions :) Talal "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook
-
What do you mean by child page? is that a class derived from the original page? If you're talking about 2 different ASPX pages, I think there is no way to retrieve values of a page from another page. I believe that as soon as you switch from one page to another, the previous page is discarded with everything in it, so I suppose there is no way to get back values from controls in it. You might be able to do so however if you're running a web user control and you want to retrieve the values of the parent page (containing the control). One thing for sure is that you can access programmatically any user control from the parent page and change the values of the controls in it, now whether you can go the other way around is something worth investigating. Sorry, some theories, no solutions :) Talal "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook
whatever u told is ok. but it is possible by storing textbox's value in session or using 'shared veriable' in Global.asax What do u think?