Wednesday, March 21, 2012

How can I tell Scriptmanager to look for a specific form id value?

I'm getting a javascript error. I think it's because the Scriptmanager is looking for 'form1' which isn't the value of the form id on the page. The form id value is 'form1_1458'

I did a view source on the browser and I see this line:

Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));
 

I need the ScriptManager to look for 'form1_1458' How can I force the scriptmanager to do to this?

It queries the ClientID on Page's Form property internally. What does Form.ClientID on your page return, if you try to output that?


i should have mentioned that this .aspx page is hosted within a portal environment (BEA aqualogic). The portal seems to append the _1458 to form1 which in the end makes it form1_1458.

let me see what Form.ClientID outputs.

No comments:

Post a Comment