TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jassi Kul
NA
2
1.4k
I am trying to Display Lock or Unlock Images on Searched Do
Oct 3 2015 11:22 PM
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]
Reply
Answers (
0
)
Auto increment of Number with String using C# Winforms
How to update table column using linq to sql