Microsoft JScript runtime error: Object doesn't support this property or method

manared

Well-known member
Joined
Jun 1, 2006
Messages
84
Programming Experience
1-3
I'm using VS 2008 and I'm trying to call a post back from javascript. Here's the line of javascript that isn't working:

HTML:
window["<%= Label1.ClientID %>"].AjaxRequest("<%= Label1.UniqueID %>", "MyArgument")

I keep getting this error:

Microsoft JScript runtime error: Object doesn't support this property or method

When I'm testing and debuggin on my computer, if I click continue when I get this error, it still runs perfectly fine. I was wondering if anyone has any suggestions on how i can get rid of this error. Thanks!
 
Addition: I actually do not need the values at all.. All I'm trying to do here is to raise a post back event so I can grab values from the page (server side) and update my database table with them. Do you know another way in javascript to raise a postback event?
 
Back
Top