Hi all,
for all those people who get a bug with "theform" is not found and teh websplitter not working, the web splitter relies on having the automatically generated __doPostBack code on the page.. In my page i didnt have this, so i placed a hidden linkbutton and sure enough it worked.
let me know if you need anymore information to reproduce this.
Rob
Hello,
Please, can you attach your aspx page with code-behind. This JavaScript that you attached is generated automatically inside ASP.NET and no need to custom implementation.
Thanks.
ok, if you put a splitter on the page it wont work.. the arrow is fixed to the top, it relies on having the __doPostback code to work which is not good as you would expect.. it expects the js variable theform.... so to get around the problem i placed a linkbutton hidden on the page which in turn puts the auto generated postback code...
Is that enough information? basically to sum up, it doesnt work if you dont have at least the var theform code..
see below:
<script type="text/javascript"><!--var theForm = document.forms['Form1'];if (!theForm) { theForm = document.Form1;}function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); }}// --></script>
Could you please send a little bit more information about the UltraWebSpliter declaration. ASPX declaration, code-behind or sample project - anything that can get us started is welcome. There can be many reasons for that issue.