K
Kuldeep
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0
Hi All,
I have an event procedure as shown below.
protected void lnkBtSendEmail_Click(object sender, EventArgs e)
{
FillVariables();
GenerateDataShuttle();
ClientScript.RegisterStartupScript(typeof(Page), "MessagePopUp", "<script
language='JavaScript'>alert(ABCDEFGH');</script>");
Response.Redirect("Default.aspx");
}
This piece of code will not allow the Javascript function to show the
"Alert" box to pop-up. The reason being, there is a Response.Redirect
happening soon after the ClientScript.RegisterStartupScript.
Now, if I comment the Response.Redirect line, the alert box pops up and
shows up the message (ABCDEFGH).
How do I show the Alert Box first and then redirect to any page?
Thanks in advance,
Kuldeep
Technology: ASP.NET 2.0
Language: C#.NET 2.0
Hi All,
I have an event procedure as shown below.
protected void lnkBtSendEmail_Click(object sender, EventArgs e)
{
FillVariables();
GenerateDataShuttle();
ClientScript.RegisterStartupScript(typeof(Page), "MessagePopUp", "<script
language='JavaScript'>alert(ABCDEFGH');</script>");
Response.Redirect("Default.aspx");
}
This piece of code will not allow the Javascript function to show the
"Alert" box to pop-up. The reason being, there is a Response.Redirect
happening soon after the ClientScript.RegisterStartupScript.
Now, if I comment the Response.Redirect line, the alert box pops up and
shows up the message (ABCDEFGH).
How do I show the Alert Box first and then redirect to any page?
Thanks in advance,
Kuldeep