Solved

ConfirmbuttonExtender

Posted on 2007-11-16
3
2,117 Views
Last Modified: 2012-05-05
i have a "ConfirmButtonExtender" and a save button and the save button wire to "ConfirmButtonExtender" and when i click on save button i get the confirmation which is great.

this.ConfirmButtonExtender1.ConfirmText = "Are you sure?";

 but the questin i have is:

is there a way to disable the confirmbuttonextender for certain roles?

what i mean is, i have two roles (admin, users) if the user click on save button i want to display "are you sure" and if the admin clicks i dont want to display any confirmation window.

is that possible ?

thanks
0
Comment
Question by:nisarkhan
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
McExp earned 500 total points
ID: 20301045
Yes, I belive you can, something like this should do the trick

if (!User.IsInRole("Admin")){
this.ConfirmButtonExtender1.ConfirmText = "Are you sure?";
}
else{
this.ConfirmButtonExtender1.Visible = false;
}
0
 
LVL 7

Author Comment

by:nisarkhan
ID: 20301071
i dont find Visible ? in ConfirmButtonExtender1
0
 
LVL 7

Author Comment

by:nisarkhan
ID: 20301107
its Enabled not visible

thanks for the tip
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now