Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I create a website and implement ICallbackEventHandler in default.aspx page when I call
C#
WebForm_DoCallback(args1, arg2, callback, 'comment', null, false);


Then I am getting theForm is undefined error in following line. Can anybody solve this error why it is occurring?
C#
function WebForm_InitCallback() {
    var count = theForm.elements.length;
    var element;

Thanks in advance
Imrankhan
Posted
Updated 11-Feb-10 6:11am
v2

1 solution

I am going to go out on a limb here and say that theForm has not been defined...??? I don't see anywhere in your code where you are instantiating theForm or setting a value to it.

Can you provide more code?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900