asp.net - Submitting a Form now I have added a MasterPage -
i see kinds of questions on google using javascript these things, revolving around problems of asp.net changing ids of everthing, not problem.
i have simple form, contained within content page, contains these form elements:
<asp:textbox id="coname" runat="server" /> <asp:textbox id="pass" textmode="password" runat="server" /> <asp:button id="enteradmin" text="enter" runat="server" clientidmode="static"/>
these wrapped in master page form.
my button handling code is:
sub submit(sender object, e eventargs) handles enteradmin.click dim company = coname.text dim pwd = pass.text '// more stuff end sub
all works when using page standalone page, when add masterpage 2 problems
firstly, button click event not triggered. this, have overcome, googling , found adding line:
me.registerrequiresraiseevent(enteradmin)
fixes problem of click event
but, second problem: cannot field values coming through
coname.text pass.text
are both coming through empty strings.
what missing?
Comments
Post a Comment