Thread: Wrox Blog
View Single Post
  #4 (permalink)  
Old May 4th, 2007, 01:03 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I think I would modify the BlogEntries control as that's the one that displays the actual entries. The Filter is only used to,..... filter ;)

Inside BlogEntries, you can handle the ItemCommand event of the DataList, use e.Item.FindControl to find your Edit link and then hide or display it depending on the user's rights.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.