Suppose FieldName is the Bit field which tells whether the link should be visible true or false
so design your gridview template like this
</asp:TemplateField>
<asp:TemplateField HeaderText="Auth">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" Text="as" Visible='<%# SetVisible(Eval("FieldName"))%>'
CommandName="Auth" runat="server">MoreInfo</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
now write your server code like this
public bool SetVisible(object obj_Status)
{
if(obj_Status==DBNull.Value)
return false;
else if (Convert.ToBoolean(obj_Status))
return true;
else
return false;
}
so design your gridview template like this
</asp:TemplateField>
<asp:TemplateField HeaderText="Auth">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" Text="as" Visible='<%# SetVisible(Eval("FieldName"))%>'
CommandName="Auth" runat="server">MoreInfo</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
now write your server code like this
public bool SetVisible(object obj_Status)
{
if(obj_Status==DBNull.Value)
return false;
else if (Convert.ToBoolean(obj_Status))
return true;
else
return false;
}
ucuz takipçi
ReplyDeleteucuz takipçi
tiktok izlenme satın al
binance güvenilir mi
okex güvenilir mi
paribu güvenilir mi
bitexen güvenilir mi
coinbase güvenilir mi
smm panel
ReplyDeletesmm panel
iş ilanları
İnstagram Takipçi Satın Al
hirdavatciburada.com
beyazesyateknikservisi.com.tr
SERVİS
tiktok jeton hilesi