how to solve script error

Posted by Gow.Net under JavaScript on 7/4/2012 | Points: 10 | Views : 1377 | Status : [Member] | Replies : 4
my code
  Response.Write("<script>alert('Please enter City/Keyword for Search');</script>");



Error:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<script>alert('Please enter City/Keyword for Search');</script>.

how to solve this

gowthaman8870226416


Responses

Posted by: Rajkatie on: 7/5/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Hi,

I don't get any error while executing your above statement in asp.net.

Please provide for more details

Rajesh Patel
Developer Trainer | Software Craftsman

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 7/6/2012 [Member] Starter | Points: 25

Up
0
Down
code working fine error may be somewhere else...

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 7/10/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
try this.
Disable EventValidation in the web form.
<%@ Page Language="C#" EnableEventValidation="false" %>


EnableEventValidation="false"



Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Patel28rajendra on: 7/10/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

This Script is working fine .you should check your other code.

Regards

R D Patel

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response