Hi all,
Can somebody help me figure out whats wrong with my program?
I created a site with the use of MasterPage..and with a plan of utilizing and abusing the capabilities of AJAX, I added the ScriptManager to create PageMethods.
Here's what I did:
1. I added the "ScriptMana ger" and the "JavaScript that calls the page method" in MasterPage...wi th Javascript inside the <body> tag and ScriptManager inside the <form> tag.
2. In the "Child Form", I created a HTML image component, and in the OnClick event it calls the JavaScript function which calls the PageMethod.
When I run the page it doesnt display any errors at all, but everytime I click the image component(which triggers the javascript func)..it displays "Error on page" at the bottom left side of the page and the desired output don't display.
You might be thinking that the error could be on the code(which probably true), but I tried the same code without using a MasterPage and it works without any error.
Any suggestion and advice will be very much appreciated. Thanks.
Can somebody help me figure out whats wrong with my program?
I created a site with the use of MasterPage..and with a plan of utilizing and abusing the capabilities of AJAX, I added the ScriptManager to create PageMethods.
Here's what I did:
1. I added the "ScriptMana ger" and the "JavaScript that calls the page method" in MasterPage...wi th Javascript inside the <body> tag and ScriptManager inside the <form> tag.
2. In the "Child Form", I created a HTML image component, and in the OnClick event it calls the JavaScript function which calls the PageMethod.
When I run the page it doesnt display any errors at all, but everytime I click the image component(which triggers the javascript func)..it displays "Error on page" at the bottom left side of the page and the desired output don't display.
You might be thinking that the error could be on the code(which probably true), but I tried the same code without using a MasterPage and it works without any error.
Any suggestion and advice will be very much appreciated. Thanks.
Comment