Executing a page load event handler from another page in Asp.Net?

Posted by Vishalneeraj-24503 under ASP.NET category on | Points: 40 | Views : 214
One of the way is to use the HttpWebRequest/Response classes.

String Main_Page_Url = "http://localhost:2450/otherpage.aspx";
HttpWebRequest request = (HttpWebRequest) WebRequest.Create(Main_Page_Url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

Then,otherpage.aspx page is called,it's page_load event will be executed.

Comments or Responses

Login to post response