Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
I am trying to Display Lock or Unlock Images on Searched Do
Jassi Kul
Oct 3 2015 11:22 PM
369
Reply
I am trying to Display Lock or Unlock Images on Searched Documents by passing Session.UserRights.
Not sure why my code is display just Unlock Images for all documents. Seems like my code is not able to pass UserRights Properly. Can someone please help look at my code what i am doing wrong.
Thanks
[/Code]bool hasAccess = false;
if (Session.UserRights != null)
{
if(EngineClient.UserHasAccess(Session.UserRights, doc.AccessList1, doc.AccessList2, doc.DeniedList1))
{
hasAccess= true;
}
}
if (hasAccess = false)
{
%>
<img src= "./skins/_v9/formats/LockClosed.gif" style="width:16px;height:20px;padding-left:5px" title="You do not have access to the document."/>
<%
}else
{
%>
<img src="./skins/_v9/formats/LockOpen.gif" style="width:16px;height:20px;padding-left:5px" title="You have access to this document."/>
<%
}
%>[/Code]
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Auto increment of Number with String using C# Winforms
How to update table column using linq to sql