Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all I am using the following to find the virtual patrh of the given form name as follows

XML
List<string> lstFormName = new List<string>();
lstFormName.Add("WebForm1.aspx");
lstFormName.Add("WebForm2.aspx");

Page p = BuildManager.CreateInstanceFromVirtualPath("/" + lstFormName[i].ToString(), typeof(Page)) as Page;
((IHttpHandler)p).ProcessRequest(HttpContext.Current);


I am using this method to find the controls in the page every thing works fine but the pages which are in list are also displaying in the current page, how can I stop loading those forms on my form or is there any option to find the controls on the page dynamically as per the above code
Posted
Updated 25-Nov-13 4:59am
v2
Comments
Sergey Alexandrovich Kryukov 25-Nov-13 10:58am    
String value or string name (what would you mean by that?)? :-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900