D
DotNetJunkies User
I have a problem with "undefined" form. I use a asp:datagrid and button column. When I click on the link buttons i get a javascript error: "EventTarget not set to an object or null". This is because the __dopostback methode that is automaticly generated by asp:datagrid has the line "var theform = document.<name of form that the datagrid is inside>"
But the "theform" is undefined!
I think this is becaus the url is different from where the form is located. I use server.transfer to transfer control to the aspx page where the form is located, but the url remains the same eventhought the page changes. "theform" is undefined because the url location.href attribute indicaes a different url then where the form is located, so my question is: "How can I make the page find the form, that is in an nother aspx page then what the document object of the current page thinks is where it should get the form?"
But the "theform" is undefined!
I think this is becaus the url is different from where the form is located. I use server.transfer to transfer control to the aspx page where the form is located, but the url remains the same eventhought the page changes. "theform" is undefined because the url location.href attribute indicaes a different url then where the form is located, so my question is: "How can I make the page find the form, that is in an nother aspx page then what the document object of the current page thinks is where it should get the form?"