Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to use IsEditable?
Previous Previous
 
Next Next
New Post 5/19/2008 9:56 PM
User is offline Nguyen Minh Duc
104 posts
9th Ranked


How to use IsEditable? 

When we use VS.NET to create default DNN module, there is an data list. If user logs in as admin, there are edit buttons in every items. I tried to use Visible="<%# IsEditable %>" for asp.net LinkButton. However, the linkbutton still appears when user is a guest. Here is the code:

<asp:LinkButton runat="server" ID="lbtnManageLinks" OnClick="lbtnManageLinks_Click" Visible="<%# IsEditable %>">Site Link Management</asp:LinkButton>

Please tell me how to fix it. This problem is strange.

 
New Post 5/20/2008 6:22 AM
User is offline Dario Rossa
358 posts
www.dariorossa.it
8th Ranked




Re: How to use IsEditable? 

Hi Nguyen,

this would not be surprising if you granted edit permission to all users (including not authenticated ones) to the module. Is this the case?

Best regards,
Dario Rossa


Dario RossaDario Rossa
Personal WebSite: http://www.dariorossa.it
DotNetNuke: http://dotnetnuke.dariorossa.it
 
New Post 5/20/2008 7:45 AM
User is offline r_honey
133 posts
9th Ranked


Re: How to use IsEditable? 

Well, <%= %> tags in ASP.NET are data binding tags. So, anything put in between them wont execute till BindData() is called on the corresponding control.

In your case, put the following statement in your control's Load event:

lbtnManageLinks.DataBind()

 
New Post 5/20/2008 5:48 PM
User is offline Nguyen Minh Duc
104 posts
9th Ranked


Re: How to use IsEditable? 

I granted only View to all users.

In the same page, I used the default datalist created in the default module. And IsEditable worked well inside that datalist.

I will try to put lbtnManageLinks.DataBind() and let you know later.

 
New Post 5/25/2008 7:01 AM
User is offline r_honey
133 posts
9th Ranked


Re: How to use IsEditable? 

If you monitor carefully, DataBind() has been called on that DataList. If you remove that, IsEditable wont work even for that List!!!

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to use IsEditable?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com
DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP