I want to redirect to the another page in the same project and fire click event automatically. I am able to redirect to another page, but need help on how to fire the event automatically. The class from where i am redirecting is called Testing and the class to which i redirect isTabTest. My code in theTesting` class is:
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("TabTest.aspx");
}
You cannot directly fire the event on redirection.
A solution is to add a query string parameter to the redirect:
In the
Page_Loadevent of TabTest.aspx, add the following code: