Hi ,
I'm not sure if i get you right but hope it help you
Maybe it will Give you idea for what you looking for .
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.Button2_Click(this, new EventArgs());
}
}
protected void Button1_Click(object sender, EventArgs e)
{
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Write("<script>alert('Button 2')</script>");
}
Best Regards
M.Mitwalli