<asp:TemplateField HeaderText="User Name">
<ItemTemplate >
<asp:Label ID="Labelx" runat="server" Text='<%# Eval("Username") %>' >
</asp:Label>
</ItemTemplate>
<EditItemTemplate >
<asp:TextBox ID="txtUserName" runat="server" Text='<%# Eval("Username")%>' ></asp:TextBox>
<span class="feedback"><asp:RequiredFieldValidator ControlToValidate="txtUserName" runat="server" ID="rfv1" Text="User Name is required!" ErrorMessage="User Name is required!"></asp:RequiredFieldValidator></span>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Business Name">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("BusinessName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Doc3.docx
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
TRUSTED BY