I have my vb script declared, then inside the script tags, I have my
Code:
sub Page_Load
if notIsPostBack
...do some stuff to set up the page...
end if
end sub
sub buttonAction(s as object, e as EventArgs)
...perform a query...
...call a function to set option box to invisible...
...call a function to set labels to visible...
</script>
...head and start of page...
<form runat="server">
<td colspan="1">
<b>Room :</b>
<ASP:DropDownList id="roombox"
runat="server">
</asp:Dropdownlist>
<asp:RequiredFieldValidator
ControlToValidate = "roombox"
ErrorMessage = "*"
InitialValue = "Select"
Display="dynamic"
runat = "server"/>
<ASP:label id="roomlabel"
runat="server"
visible = "false"/>
</td>
<td><center><form> <asp:button id="submit"
Button="button"
style="width:120;"
name="Submit"
text="Reserve Room"
value = "true"
onClick="btnAction"
autopostback="true"
runat="server"/></form>
</center>
</td>
</form>