Solved

ConfirmbuttonExtender

Posted on 2007-11-16
3
2,108 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
Comment Utility
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
Comment Utility
i dont find Visible ? in ConfirmButtonExtender1
0
 
LVL 7

Author Comment

by:nisarkhan
Comment Utility
its Enabled not visible

thanks for the tip
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

11 Experts available now in Live!

Get 1:1 Help Now