I
Imran Aziz
Hello all,
I am populating the contents of a repeater control using a database query.
In the repeater control I have a link , which I want to display or not based
on the current logged in user. I have a asp
anel surrounding this link and
evaluate its value using the code below.
<asp
anel ID="Panel5" runat=server Visible='<%#
((DataBinder.Eval(Container.DataItem, "nUserID")).ToString() !=
ViewState["intLoginUserID"].ToString() ) %>' Wrap="false" >
I have the user id of the logged in user in session and compare it with the
userid from the database, if both are same I need to show the delete link
otherwise not. Now the issue is that I cannot seem to reference with Session
variables or ViewSate variables in the front end aspx page. So how can I can
do the comparison then ?
Thanks a lot for your help.
Imran.
I am populating the contents of a repeater control using a database query.
In the repeater control I have a link , which I want to display or not based
on the current logged in user. I have a asp
anel surrounding this link andevaluate its value using the code below.
<asp
anel ID="Panel5" runat=server Visible='<%#((DataBinder.Eval(Container.DataItem, "nUserID")).ToString() !=
ViewState["intLoginUserID"].ToString() ) %>' Wrap="false" >
I have the user id of the logged in user in session and compare it with the
userid from the database, if both are same I need to show the delete link
otherwise not. Now the issue is that I cannot seem to reference with Session
variables or ViewSate variables in the front end aspx page. So how can I can
do the comparison then ?
Thanks a lot for your help.
Imran.
