T
tshad
I have the following:
<asp:textbox id="ProfileName" columns="45" runat="server" />
<asp:RequiredFieldValidator
ControlToValidate="ProfileName"
Display="Dynamic"
Text="Name Required"
runat="server" />
I also have an imagebutton that goes to a routine to save a record
<asp:ImageButton ID="SaveRecord" runat="server" Visible="true"
OnClick="ModifyRecord_Click" ImageUrl="../../buttons/SaveChanges_0.gif" />
I put nothing in the ProfileName field and it still goes to the function
ModifyRecord_Click instead of displaying the "Name Required" message.
Why is it not working?
Thanks,
Tom
<asp:textbox id="ProfileName" columns="45" runat="server" />
<asp:RequiredFieldValidator
ControlToValidate="ProfileName"
Display="Dynamic"
Text="Name Required"
runat="server" />
I also have an imagebutton that goes to a routine to save a record
<asp:ImageButton ID="SaveRecord" runat="server" Visible="true"
OnClick="ModifyRecord_Click" ImageUrl="../../buttons/SaveChanges_0.gif" />
I put nothing in the ProfileName field and it still goes to the function
ModifyRecord_Click instead of displaying the "Name Required" message.
Why is it not working?
Thanks,
Tom