| | |
Javascript Alert Box does not Display
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
Good Evening Guys, Today its my Birthaday.
I have a If statement that i use to return an integer that will mean Success or Failure , now am testing for that integer in my ASP.NET 2.0 Page lke this
Now if the value is 1, then it should Display the Message and after the Message has been Clicked it should move to the login Page. Now my Problem is that it moves to the Login Page without a Alert Message being Displayed And the send Alert for invalid Entry, will not show anythingm, there is a Warning sign on my Page at the Bootom left of my Page. What is wrong with my Javascript
Thanks
I have a If statement that i use to return an integer that will mean Success or Failure , now am testing for that integer in my ASP.NET 2.0 Page lke this
ASP.NET Syntax (Toggle Plain Text)
if (Res == 1) { Response.Write("<script> alert('You have Successfully Registred');</script>"); Response.Redirect("login.aspx", false); } else { Response.Write("<script> alert('Invalid Data has been Entered');</script>"); }
Now if the value is 1, then it should Display the Message and after the Message has been Clicked it should move to the login Page. Now my Problem is that it moves to the Login Page without a Alert Message being Displayed And the send Alert for invalid Entry, will not show anythingm, there is a Warning sign on my Page at the Bootom left of my Page. What is wrong with my Javascript
Thanks
Last edited by vuyiswamb; Sep 13th, 2008 at 7:53 pm.
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
the methodu u used is obselete in case of asp.net 2.0 ,u should javascript like this
ASP.NET Syntax (Toggle Plain Text)
ClientScript.RegisterStartupScript(this.GetType(), "msg", "<script> alert('Machine Details Added Successfully!'); </script>");
If u r query is achieved,mark the thread as solved
Live and Let Live
Live and Let Live
![]() |
Similar Threads
- how can i make php alert pop ups just like in javascript. (PHP)
- message box (ASP.NET)
- Need help in javascript and modal window (JavaScript / DHTML / AJAX)
- Validation - Paste (Ctrl V) (JavaScript / DHTML / AJAX)
- Timer Problem in Javascript (JavaScript / DHTML / AJAX)
- How do I prevent value and attribute delays? (JavaScript / DHTML / AJAX)
- Struggling with Captcha (PHP)
- javascript works in IE but not working in firefox (JavaScript / DHTML / AJAX)
- form validation not working (JavaScript / DHTML / AJAX)
Other Threads in the ASP.NET Forum
- Previous Thread: how to design a tab control on a webpage
- Next Thread: Using ASP.NET with MySQL tutorial?
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol ajax alltypeofvideos anathor appliances application asp asp.net bc30451 beginner box browser button c# cac checkbox commonfunctions complex dataaccesslayer database datagridview datagridviewcheckbox datalist development dgv dialog dropdownlist dynamically edit editing expose feedback fileuploader fill flash form formatdecimal formview google gridview gudi iis image javascript list listbox login microsoft migration mouse mssql news numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail response.redirect richtextbox rows save schoolproject search security select session sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





