Dropdownlist and Button
-
Hi, I have a form with a dropdownlist on it. I have an eventhandler for OnSelectedIndexChanged which works grand. The problem arises when I try to add a submit button. Form appears fine first time, but when I attempt to change the selected item in dropdownlist, and error comes about saying there is a problem with some JScript error (I imagine added itself I didnt have any Jscript in) saying function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); <-----"object doesnt support this property or method" } } any ideas? Thanks in advance, Ste
-
Hi, I have a form with a dropdownlist on it. I have an eventhandler for OnSelectedIndexChanged which works grand. The problem arises when I try to add a submit button. Form appears fine first time, but when I attempt to change the selected item in dropdownlist, and error comes about saying there is a problem with some JScript error (I imagine added itself I didnt have any Jscript in) saying function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); <-----"object doesnt support this property or method" } } any ideas? Thanks in advance, Ste
-
yeah im using asp:Button and asp:dropdownlist.
-
yeah im using asp:Button and asp:dropdownlist.
can you pase the aspx page? "People who never make mistakes, never do anything." My Blog
-
Hi, I have a form with a dropdownlist on it. I have an eventhandler for OnSelectedIndexChanged which works grand. The problem arises when I try to add a submit button. Form appears fine first time, but when I attempt to change the selected item in dropdownlist, and error comes about saying there is a problem with some JScript error (I imagine added itself I didnt have any Jscript in) saying function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); <-----"object doesnt support this property or method" } } any ideas? Thanks in advance, Ste
-
Hi, I have a form with a dropdownlist on it. I have an eventhandler for OnSelectedIndexChanged which works grand. The problem arises when I try to add a submit button. Form appears fine first time, but when I attempt to change the selected item in dropdownlist, and error comes about saying there is a problem with some JScript error (I imagine added itself I didnt have any Jscript in) saying function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); <-----"object doesnt support this property or method" } } any ideas? Thanks in advance, Ste