I am trying to check if a control exist on another page, so i have:
page1.aspx and page2.aspx
In page1.aspx, i need to check if page2 has an control with id "textboxFindMe", how can i do that?
Also notice that page2 is dynamically build, so control "textboxFindMe" only exist in a condition, like certain time of the day.
Ideally, i would like to return an object on page2.aspx and use it in page1.aspx. I assumed page2 need to render first, otherwise the control would not be exist to be found in page1.aspx
code will be something like:
Page2 _page2 = new Page2();
Control ctrl = _page2.FindControl("textboxFindMe");
View Complete Post