CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/3/2007 6:17:13 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 27 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
Ireland
Asp.Net User
'read only' version12/3/2007 6:17:13 PM

0/0

 

Hi,

I am using master pages and I want to add a 'read only' set of users.  I have the users in the db and can check whether the current user is one of them.  So now i'm thinking of removing the edit and the delete button from the datagrids if the user is logged as a 'read only' user.  That will suffice as read only.

How can i do this from the master pages...i was thinking of using the rowdatabound to hide the two columns for edit and delete repectively but the datagrids are named differently.

Can anyone see a good way to achieve this.

Thanks..

ecbruck
Asp.Net User
Re: 'read only' version12/3/2007 7:07:02 PM

0/0

First of all, I'm not exactly sure what MasterPages have to do with your situation. It sounds like you simply want the ability to hide multiple columns of one or more DataGrids depending on the result of  a specified condition. Is this what you are trying to attempt?


Thanks, Ed

Microsoft MVP - ASP/ASP.NET

Please remember to 'Mark as Answer' if this post answered your question!
Ireland
Asp.Net User
Re: 'read only' version12/4/2007 10:10:20 AM

0/0

 

Thanks for feedback...

Yes but I have multiple pages...with Gridviews on many of those pages. I thought it easier if i could put the code into the master page rather than going to invidiual pages...as i would be using the master page i then relaised that i couldnt use the events of the gridview to hide the edit and delete column as the gridviews have different names.

ecbruck
Asp.Net User
Re: 'read only' version12/4/2007 1:13:26 PM

0/0

That's not what MasterPages are to be used for. They're actually only glorified UserControls so that's not where you'd want to do this.


Thanks, Ed

Microsoft MVP - ASP/ASP.NET

Please remember to 'Mark as Answer' if this post answered your question!
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Webmaster in a Nutshell: A Desktop Quick Reference Authors: Stephen Spainhour, Robert Eckstein, Pages: 561, Published: 2003
JavaScript: The Definitive Guide Authors: David Flanagan, Pages: 994, Published: 2006
Digest of Papers: IEEE Computer Society International Conference Authors: Alan G. Bell, IEEE Computer Society, IEEE Computer Society., Institute of Electrical and Electronics Engineers, Pages: 0, Published: 1986
Upgrading and Repairing PCs Authors: Scott Mueller, Pages: 1608, Published: 2003
Information Security Management Handbook Authors: Harold F. Tipton, Micki Krause, Pages: 3231, Published: 2007
Learning the Bash Shell Authors: Cameron Newham, Bill Rosenblatt, Pages: 333, Published: 2005
Networking for Dummies Authors: Doug Lowe, Pages: 432, Published: 2007
Dynamic HTML: The Definitive Reference Authors: Danny Goodman, Pages: 1307, Published: 2007
Programming ASP.NET: Building Web Applications and Services Using C and VB.NET. Authors: Jesse Liberty, Dan Hurwitz, Pages: 988, Published: 2003

Web:
The VP Debate: The Read-Only Version - PostPartisan - Quick takes ... Oct 3, 2008 ... The VP Debate: The Read-Only Version. Having just had the surreal experience of watching snippets of the Biden-Palin debate on a BlackBerry ...
Enterprise Architect - Free UML Tool Downloads for OOA/D Software ... The EA Viewer is a read-only version of EA intended for distribution with UML models, to staff or to customers. The read-only version supports all viewing ...
ea list in excel Read Only Version.xls CLERK AND RECORDERS ONLY. Linda M Ladvala. Carbon. Box 887. Red Lodge MT 59068. 466-1220. Ruth E Hodges. Lake. 106 4th Avenue East. Polson MT 59860 ...
EmpTech: Product Details: Kurzweil 3000 Read Only Version Image of Kurzweil 3000 Read Only Version. Kurzweil 3000 Read Only Version. Description: The Learn Station version has all the attributes of the scanning ...
Read only version of movies - Alice Community Junior Member. Status: Offline. Posts: 10. Join Date: Jan 2006. Default Read only version of movies - 02-13-2006, 04:43 PM ...
MSDN SharePoint - InfoPath Forms Services ReadOnly Version of ... ReadOnly Version of InfoPath Form. Hi Wong. I dont think we can assess the infopath form items in the 'actions' of the workflow steps. ...
userlocal.com: Forums Slackware resources, Slackware Linux help and news, Slackware forums.
Descargar Awakening Mind 1 E-Book (Read-Only version) pdf Descargar Awakening Mind 1 E-Book (Read-Only version) pdf.
SmartFTP Forums -> Bug Reports - Version 2.x (Read Only) Forum Home, Search, Help, SmartFTP Client, |-- Announcements, |-- Bug Reports - Version 3, |-- Bug Reports - Version 2.x (Read Only) ...
DDR - Read Only Version DDR - Read Only Version. Quick Search | Advanced Search. Only APPROVED Data Definitions have been authorised for use by the UK Ministry of Defence. ...

Videos:
Naruto Sadness And Sorrow PIANO ONLY VERSION This is a video of me playing Sadness and Sorrow Piano version only. Hope you enjoy. Those of you asking for music sheets, I don't have any. I c...
Why Ron Paul will win (PLEASE READ THE VIDEO DESCRIPTION!) ==== High Quality version of the vid: http://www.youtube.com/watch?v=l_bRQl-UYUY VOICE ONLY version: http://www.youtube.com/watch?v=rHFmE3WbVCc A...
World Rally Championship (WIP Version) PLEASE READ ALL.This is the WIP Version (Work in Progress Version) of my World Rally video. You will note the sound cuts out twice during the video a...
Build a mini Guillotine, the Text Only Version My animated video has a problem sounding clear on some sound systems and so here is a reading version for those few left that have krappy audio but c...
McFly - Lies (With Lyrics!) (Corrected Mistake, Sorry! Read Description) I KNOW IT'S 'I GUESS I CAN FILL A BOOK', I FOUND THAT OUT AFTER I MADE THIS VIDEO ... WHEN I MADE THIS IT WAS LITERALLY JUST COMING OUT AND EVERYWHER...
From the Wilderness - The CIA Connection Michael Ruppert is the author of Crossing The Rubicon: The Decline of the American Empire at the End of the Age of Oil. Published in September 2004 a...
READ DESCRIPTION! Come on Get Higher - Ichigo Kisshu Aoyama THE SONG THAT I HAVE IS A COVER BY SUGARLAND AND IT IS LIVE!!!!!! I'm so sry, the only version of the song i have is this one by sugarland. The origi...
Why Ron Paul will win (PLEASE READ THE VIDEO DESCRIPTION!) Kopie von boratFAN999 http://www.youtube.com/watch?v=Pda-rT1sf2M&NR=1 High Quality version of the vid: http://www.youtube.com/watch?v=l_bRQl-UYUY ...
How to find bigfoot in GTA Version II (PC Only) READ THIS BEFORE COMMENT. You have to rename the 'modelli' folder into 'Models'
Emily Osment - I Don't Think About It - Movie Full Version READ DESCRIPTION Uploaded by StewieJr. I do not own the video itself, but you can at least credit me for being the uploader since thia is probably t...




Search This Site:










is nothing

retrieving datetime values and inserting them into sql

object reference error

testing if a cast is possible

calendar control custom validation

request pages on server

i deleted the asp.net user account...computer won't start

bookmarking with hyperlinks

regarding css

.net environmental mess

passing querystring variable to openread method

how to implement windows services like thread in asp.net?

regex question

how do i access the server controls in a usercontrol??

load and stress testing - sockets and threads

sorting active directory search

application variables

narrowing conversion.. please help.

getting the username on a webform

"object reference not set to an instance of an object."

button control with curve border

control id: ctl00_ctl00

get file_structure of the file_server for asp.net client

call function from an .aspx page

msgbox vs javascript alert

what does args.isvalid = true/false really mean?

hooking it together

tracing the referring site.

app settings ie macintosh

system.net.mail question

  Privacy | Contact Us
All Times Are GMT