javascript alert
-
Hi My page is inside the a iframe. when i click button on my page the data in my page save to database and gives javascript alert message when saving is complete. I am using RegisterStartupScript method to show a java script alert. My problem is on ie javascript alert shows behind the browser. User need minimize ie to see the alert. please help me
Dushan Perera
-
Hi My page is inside the a iframe. when i click button on my page the data in my page save to database and gives javascript alert message when saving is complete. I am using RegisterStartupScript method to show a java script alert. My problem is on ie javascript alert shows behind the browser. User need minimize ie to see the alert. please help me
Dushan Perera
Maybe because of you used iframe,that's why your pop up alert at behind of the browser. At code behind after finish insert the data, create session and in successfully page,try to check session in page load and popup alert if session exist.Example: insertpage.aspx.vb
'after insert statement,create session
Session("success")="anything"successfulinsert.aspx.vb
If Session("success") <> "" Then
Response.Write("alert(""Successfully Insert the data"")")
Session.Remove("success")
End IfMaybe my code got error because I simply write it without debug or test it 1st but that's the idea.