This is a migrated thread and some comments may be shown as answers.

Master and child pages/user controls and javascript

1 Answer 86 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Anshul
Top achievements
Rank 1
Anshul asked on 26 Aug 2008, 09:43 PM
Hi,

I was building a proof of concept demo site and wanted to pull off the following scenarios:

1) I have a textbox or any control in the master page and through client-side javascript(on keydown) I want to get a reference to a control that is in a child page and do a post back on that control(more than likely a grid).

2) Do the reverse of scenario 1) and get a reference to a control and  update it  on the master page or another child page using javascript from a child page.

and I need to figure out 1) and 2)  for Webusercontrols also.


I haven't been able to find a good example of how to reference controls through javascript from master pages that are in child pages(or user controls) or the reverse of this situation.

if you could post some links to sample projects/sample code or links to other threads or documentation on this topic.

any help would be appreciated.

thank you.

1 Answer, 1 is accepted

Sort by
0
Bodevain Svensson
Top achievements
Rank 1
answered on 29 Aug 2008, 11:16 AM
Anshul, this question is rather related to the general ASP.NET master/content page relations and how to interact with controls residing in both places. Provided that, you may refer your question to the ASP.NET forums as well or create a basic implementation using MS TextBox and GridView as a start. Once you do that, port the code for RadTextBox and RadGrid.

Bodevain
Tags
Ajax
Asked by
Anshul
Top achievements
Rank 1
Answers by
Bodevain Svensson
Top achievements
Rank 1
Share this question
or