Code Master
Wednesday, 22 February 2012
How to find masterpage control in content page and fierd its event
protected void Page_Load(object sender, EventArgs e)
{
Button bt = (Button)Master.FindControl("Button1");
bt.Click+=new EventHandler(bt_Click);
}
protected void bt_Click(object sender, EventArgs e)
{
TextBox1.Text = "Sanjay kumar acharya";
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment