rachayita jaiswal

rachayita jaiswal

  • NA
  • 32
  • 11.9k

based on username controls make visible true or false

Aug 26 2014 1:00 AM
Hi,
 
<h3 id="h3_up" runat="server">Upload</h3>
 
<div id="div_up" runat="server">

<ul style="padding:0px" id="ul_up">

<li id="HRData" runat="server"><asp:LinkButton ID="lnkhr_btn" runat="server" Text="HR Data" OnClick="lnkhr_btn_Click"></asp:LinkButton> </li>

<li id="OpsData" runat="server"><asp:LinkButton ID="lnkOps_btn" runat="server" Text="Ops Data" OnClick="lnkOps_btn_Click"></asp:LinkButton> </li>

</ul>

</div
>
 

<h3 id="h3_adm" runat="server">Administration</h3>

<div id="div_adm" runat="server"><ul style="padding:0px">

<li id="gper" runat="server"><asp:LinkButton ID="lnk_permission_btn" runat="server" Text="Grant Permissions" OnClick="lnk_permission_btn_Click"></asp:LinkButton> </li>

<li id="dper" runat="server"><asp:LinkButton ID="lnk_deletepermission_btn" runat="server" Text="Delete Permissions" OnClick="lnk_deletepermission_btn_Click"></asp:LinkButton> </li>

</ul>

</div>

 
I have these modules "upload" and "permission" now based on login user name as "MyName" I want to visible only HRData and gper
 
how will I get this because both modules are in different <div>.......???
 
Please help.
 
 

Answers (1)