Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 20th, 2010, 07:05 PM
Authorized User
 
Join Date: Mar 2010
Posts: 65
Thanks: 6
Thanked 0 Times in 0 Posts
Default Error with javascript Alert message in ASP server side code

Hello,
I want to display a error message in a Message box in C#. So i tried the following :

Page.RegisterStartupScript("ScriptDescription", "<script type=\"text/javascript\"> alert('Please Enter a valid Comments');</script>");

-Sometimes the alert message is popping out and sometimes its not popping.

-Sometimes after it popps out, after i close the browser window, it gives me the following error:

"Microsoft Jscript Runtime Error:
Handler was not added through the SYS.UI.DOMEVENT.ADDHANDLER method."

-can anyone explain what went wrong?
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alert Messege ( Server Side) msbsam ASP.NET 2.0 Basics 1 August 1st, 2008 07:30 AM
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
javascript after server side code k.manisha ASP.NET 1.0 and 1.1 Professional 1 March 12th, 2007 06:28 PM
In ASP,Client side javaScript code casimir Classic ASP XML 0 October 24th, 2005 12:24 AM



All times are GMT -4. The time now is 12:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.