Bind visible value from database


Here lable visble value is binding from database.
based upon  visible value am desabling  or enabling textbox here.

<asp:Label ID="lblEmailName" runat="server" Width="180px" Text='<%# Bind("EmailTemplate_Name") %>' Visible='<%# Bind("EmailTemplate_IsDefault") %>' />

  <asp:TextBox ID="txtEmailName" runat="server" Width="180px" Text='<%# Bind("EmailTemplate_Name") %>' Visible='<%#!(bool)Eval("EmailTemplate_IsDefault")%>'/>

Comments

Popular posts from this blog

what is Event Cache table in sharepoint

CAML Query syntax and options in SharePoint

Change anchor link url in sharepoint calender