send alert message from child ascx to the parent page
ASP.NET
4
Posts
4
Posters
0
Views
1
Watching
-
Hi, I want to send a message to the parent page when a button is click on the ascx control. How can i accomplish this? Thanks
form ascx page button click do something like this. parent.document.getElementById("ParentControlID").value="your message";
Raju.M
-
Hi, I want to send a message to the parent page when a button is click on the ascx control. How can i accomplish this? Thanks
-
Hi, I want to send a message to the parent page when a button is click on the ascx control. How can i accomplish this? Thanks
in ascx codebehind add
protected void Page_Load(object sender, EventArgs e)
{
Button1.Attributes.Add("OnClick", "javascript:alert('your message');");
}:) try and tell us how it worked ;)