I have .aspx form that contain this code:
<BODY text="#000000" bgColor="#666666">
<form method="post" runat="server">
.
.
<asp:dropdownlist id="Names" tabIndex="5" runat="server" AutoPostBack="True">
</asp:dropdownlist>
In the .
VB file of this form i have this code:
Private Sub Names_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Names.SelectedIndexChanged
Me.Age.Enabled = True
END SUB
That means, that selecting name from the dropdownlist will make the "Age" filed to enabled
But when i run this form i get this debug code:
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("n etscape") > -1) {
theform = document.forms["_ctl0"];
}
else {
theform = document._ctl0;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
And there is an error on line:
theform.submit();
that say:
"Object doesn't support this property or method"
What is the problem and how to fix it?