WebForm_DoPostBackWithOptions javascript

B

BillGatesFan

I'm getting a syntax error because .net 2.0 is putting this
WebForm_DoPostBackWithOptions javascript in my button on_click event
and it comes out looking like this:


<input type="image" name="ucTemplate:ContentBodyHTML:btnSubmit"
id="ucTemplate_ContentBodyHTML_btnSubmit" src="/img/forms/
form_submit.gif" border="0" onclick="javascript:postToURL('https://
mysite.com/webquery/webpage.asp');WebForm_DoPostBackWithOptions(new
WebForm_PostBackOptions(&quot;ucTemplate:ContentBodyHTML:btnSubmit&quot
;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))"
language="javascript" />


I added the function to my onclick event on the server side to call a
function on the client side. That is not working now because I get a
syntax error. I was not getting an error in 1.1 Can the
WebForm_DoPostBackWithOptions function be removed? Can anyone help me?
Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top