URGENT !! Required Field Validator of textbox in gridview ?

Posted by .Netlearner under ASP.NET on 7/26/2012 | Points: 10 | Views : 3113 | Status : [Member] | Replies : 3
Hello All,
Am having a text box within the item template and the edit item template of the grid view.But its not firing ? Please guide me with some solutions. I searched in net it was given as event bubbling.But i dont know how to solve this.urgent please help

Thanks in advance




Responses

Posted by: Oswaldlily on: 7/27/2012 [Member] Starter | Points: 25

Up
0
Down
<asp:TemplateField HeaderText="text">
<ItemTemplate>
<asp:Label ID="lblEnglish" runat="server" CssClass="test" Style="word-break: break-all;
word-wrap: break-word;" Text='<%# Eval("column2") %>' Width="400px"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtEdit" runat="server" Text='<%# Eval("column1") %>'
Width="400px"></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtEnglish" runat="server" ToolTip="<%$ Resources:DefaultResource,InsertnewRecords%>"
Width="400px"></asp:TextBox>
</FooterTemplate>
<HeaderTemplate>
<asp:LinkButton ID="lnkActivity" runat="server" CommandName="Sort" Font-Underline="false" ForeColor="white" Width="400"
ToolTip="<%$ Resources:DefaultResource, ClicktoSort%>"></asp:LinkButton>
</HeaderTemplate>

</asp:TemplateField>

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sathiya_Narayanan on: 7/27/2012 [Member] Starter | Points: 25

Up
0
Down
<asp:TemplateField HeaderText="Name">
<EditItemTemplate>
<asp:TextBox ID="txtname" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>






SATHIYANARAYANAN

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: .Netlearner on: 7/27/2012 [Member] Starter | Points: 25

Up
0
Down
Thanks for your answers but am sorry my qustion was wrong in a hurry. Am having the required field validator of a textbox in my grid view . The Requiered field validator is not fired ? Please Guide me with solutions

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response