Sponsored By
MindStick SurveyManager
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form
Reason:    
   

Home >> .Net >> ASP.Net >> How to find control inside of Repeater
Author Post

Chris S


Total Post: 16
Member Since: 9/29/2010
Points: 93
How to find control inside of Repeater
Posted On: 12/27/2010 8:49:23 AM
Hello Everyone!
I have a repeater control on application where I have to use 3 buttons and these buttons should be displayed when any specific user logged on...user could be like Admin or Operator..
Please help with sample of code..

Thanks in advance!!!
Author Post

Uttam Misra


Total Post: 113
Member Since: 6/2/2010
Points: 818
Re: How to find control inside of Repeater
Posted On: 12/27/2010 8:57:09 AM

Try this code...might help you...

if(Roles.IsUserInRole("operator"))
{
Button save=(Button)rptSample.Items[0].FindControl("btnSave");
save.Visible = true;
Button update= (Button)rptSample.Items[0].FindControl("btnUpdate");
update.Visible = true;
}

Report Abuse Form
Reason:    
 
Total Online Users: 4260
Advertisement
MindStick DataConverter
Advertise with Us
  
Copyright © 2013MindStick. All Rights Reserved.