ASP.Net v1.1 & vb.net
Hi all,
I have a simple survey form with first name/last name text boxes at the
top. I have validators on these text boxes to ensure that something is
entered in them.
The form has a Submit button (asp:button) at the bottom and if the
validation has failed I want the form to return to the top, so that the
validation messages can be seen.
Could anyone please give me a code example of how to handle this?
I have tried using the click event in the code-behind page, but it
doesn't fire and I have tried putting an onclick event in the html code
e.g. <asp:button onclick="cmdSubmit_click"...> with the cmdSubmit_click
script setting focus to the first textbox, bt this gives me an error
when I try to run it:
BC30390: 'OfficeUsageSurvey._Default.Private Sub cmdSubmit_Click(sender
As Object, e As System.EventArgs)' is not accessible in this context
because it is 'Private'.
TIA for any help/advice.
Alan.