CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/18/2007 12:31:25 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 10 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Kaiser28
Asp.Net User
Master page question9/18/2007 12:31:25 PM

0/0

I have a master page, and in the navigation links of the master page there is a login button so that the user is redirected to a login page where he can sign in. How am i going to change that login button on the master page to be logout button upon the user logs in so that the user can log out? Thx
ca8msm
Asp.Net User
Re: Master page question9/18/2007 12:40:23 PM

0/0

You could create a Public Property on the Master Page which, when set, shows/hides the relevant controls. 


Mark,
http://aspnetlibrary.com
http://mdssolutions.co.uk - Delivering professional ASP.NET solutions
http://weblogs.asp.net/marksmith


Please remember to click "Mark as Answer" on this post if it helped you.
Amanda Wang - M
Asp.Net User
Re: Master page question9/24/2007 2:00:41 AM

0/0

Hi,

You can try to check wether the user log on in the master page's load event, then change the login button's visible according to the login status.

1. You can try to use the session, for example:

if (Session["Login"].ToString() == "Login") 
{ 
  btnLogin.Visible = false; btnLogout.Visible = true; 
} 
else 
{ 
  btnLogin.Visible = true; btnLogout.Visible = false; 
}

2. If you use the form validatem,  you can use request.IsAuthenticated to check the login status.

 

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
The Complete Works Authors: William Shakespeare, Stephen Orgel, A. R. Braunmuller, Pages: 1754, Published: 2002
Master the SAT Authors: PINE, Phil Pine, Pages: 720, Published: 2004
Adobe InDesign 2.0: Classroom in a Book Authors: Adobe Systems, Adobe Creative Team, Pages: 468, Published: 2002
The Merry Wives of Windsor Authors: William Shakespeare, Barbara A. Mowat, Paul Werstine, Folger Shakespeare Library, Pages: 320, Published: 2004
Master the LSAT Authors: Jeff Kolby, Scott Thornburg, Pages: 608, Published: 2005
The Riverside Shakespeare Authors: William Shakespeare, Gwynne Blakemore Evans, J J M Tobin, Pages: 2057, Published: 1997

Web:
MasterPage in MasterPage? : microsoft, visual studio, 2005 2008, .net Simply put - is there a way to have MasterPage's within ContentPlaceHolders? Question Stats. Zone: Programming. Question Asked By: luefher ...
Microsoft TechNet SharePoint - General Question and Answers and ... You can configure it in Site Settings > Site Master Page Settings. I have a master page question. I am sorry if I am asking very stupid questions. ...
Master Pages vs. Themes: Which Do You Choose? Over the last few months I have heard a lot of confusion and question about if a site should use a master page or a theme. In this post I am going to go ...
Data Tutorial #2: Building our Master Page and Site Navigation ... I have a question regarding master pages and using PostBackURL. When was trying to use PostBackURL from page1.aspx which is a content place holder from ...
Quark: Master pages: Frequently asked questions The following answers address some of the most commonly asked questions regarding master pages in QuarkXPress® software documents, including formatting, ...
.Net Interview Questions & Answers: What is the use of Master ... Net Interview Questions & Answers ... A master page in ASP.Net provides shared HTML, controls, and code that can be used as a template for all of the pages ...
Introduction to ASP.NET Master Pages With the inception of ASP.NET 2.0 with VS.NET 2005, a lot of new features have been introduced which make it possible to increase productivity and web ...
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps Apr 11, 2006 ... Here is one question that comes up: how do we specify a control skin so that the skin only applies to controls on the master page? ...
Sharepoint general Re: Master Page Question Master Page Question - Don. 09-Jan-08 09:53:56. Does any know where I can find a place to obtain pre-made master pages. I have been looking around and I can ...
Master Pages in ASP.Net 2.0 - An Advanced Look There is no question that Master Pages are my favorite new feature of ASP.Net 2.0. I hope you found this article interesting and informative. ...

Videos:
Master Gardeners of Burlington County A look at a program in which volunteer master gardeners help home garden enthusiasts with their questions.
Master Debaters America's oldest humorous debating society, The Master Debaters settle humanity's weightiest questions like: "Does smoking marijuana really make you ...
How to destroy a standee Michael and John present, how to destroy a theater standee the right way. The original standee video of the internet. If anyone has any questions f...
how to make a master chief costume this is the only video on youtube showing how to fully make youre own master chief costume out of resin and fiberglass. *EDIT* http://www.tamasoft....
Jhonen Vasquez ~ Master of Puppets! Please, just watch the video. Very few people rarely look into the description boxes, because they're too damn lazy. Hell, I'm one of those people....
Depeche Mode 1981 - 2006 For the people who don't know the band Depeche Mode yet. Or for people who just want to see it. But there's nothing new here. The new album is now pl...
Backlinks to #1on Google in 48hrs http://trafficcoleman.com/google.htm backlinks links exchange traffic free visitors http://trafficcoleman.com/google.htm It is out of question that ...
Check out our "Landing Page" & More for Abunza! Visit http://abunza.mobi to see our Custom Lead Capture Page, 15 Page Website, 100K Training & More for our Team Members Only! This video also cont...
Lage Raho Munna Bhai [ hindi film ] In this sequel to the highly successful and much appreciated Munnabhai MBBS , the affable goon Murli Prasad Sharma aka Munna (Sanjay Dutt) and his tr...
Greg McMahon [CarbonCopyPRO] Top Master Marketer http://LifestyleDesignMarketing.com?t=CCPMasterMarketer Greg McMahon is a Top Earner and Leader in CarbonCopyPRO and was recently awarded with the co...




Search This Site:










web controls not found

shared virtual folders

dnn2 module's pencil not displaying

license

delegates & events

meaning of fields on edit module definitions

custom role provider and menu control

need help coping with treeview/xml performance constraints

themes problem when localization

profile common

data provider: enterprise db

read static public property of dynamic user control class

excluding some pages from authorization

codebehind of nested masterpages

single membership provider but multiple profile providers and role providers...possible?

repopulate a gridview on separate tab

ms access database ???

error message on register wizard

cache dotnetnuke 3

asp.net 2.0 website administration tool

not able to run in other machine!! please help me out

reading a value from a dynamically loaded user control

dnn steals 100% cpu!

migrating asp to asp.net about sending email

cookies

check out this skin!

recently purchased visual studio 2005 professional!

page options module?

asp.net membership database connection string on the web

h2o 2.0 now available (custom forms, direct data access, free upgrade)

 
All Times Are GMT