Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...iseditable propertyiseditable property
Previous
 
Next
New Post
1/7/2007 12:49 PM
 
I've just now started using this nifty little tag in my custom module .ascx files.  Until now I used to use the .vb code to make controls visible to users or not depending on roles.

I am having an issue with some buttons on a control.  I put the Visible="<%# IsEditable %>" tag in the .ascx file for the button (which is a server control).  Still, it's visible even to unauthenticated users that do not have edit rights.

Is there something more with this property?  Thanks for any help.

I'm too poor for anything other than the community version
 
New Post
1/7/2007 12:53 PM
 
I suppose I should mention that on the same page I have a datagrid which behaves just like I would want it to using the visible/iseditable tag.

Perhaps these other controls aren't behaving similarly because they're on a panel or within an html table?

I'm too poor for anything other than the community version
 
New Post
1/7/2007 1:00 PM
 
I've tried moving textboxes and buttons and an html table server control (all with the visible=iseditable property) around on the form, inside and outside of panels, etc.  But all of them show up to unauthenticated users.

But the datagrid works like it's supposed to with the iseditable property.

I'm missing something somewhere.

I'm too poor for anything other than the community version
 
New Post
1/7/2007 1:11 PM
 
Data binding expressions such as <%# IsEditable %>  are resolved only when the DataBind method of the control or the page itself is called.  When you use this expression within a data-bound control such as a Datagrid, Gridview, etc., it will be resolved when you (or in the case of some of the ASP.Net 2.0 controls associated with a DataSource when the control automatically calls its DataBind method) call DataBind.  When this expression is used outside of a data-bound control (such as in a user control or on the page itself), it will not be resolved unless the user control's or page's DataBind method is called.  Although this can be done, I guess that I prefer to set a control's Visible and other properties in the CodeFile/Codebehind as needed.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/7/2007 1:27 PM
 
Thanks a bunch.

I put a page.databind in the page_load and it works now.

I'm too poor for anything other than the community version
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...iseditable propertyiseditable property


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out