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: 1/4/2006 3:31:38 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 28 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
axy108
Asp.Net User
Master Page???1/4/2006 3:31:38 PM

0/0

    Hi, I'm new in ASP.NET I have a problem:

I'm using master page, but in the master page I have a buttom that is used for log-out from my page, when i run the application and haven't other buttom in the contentplaceholder any problem happen, but when I use another buttom in the ContentPlaceHolder tha buttom that i use for logOut form my page don't work, this buttom (logOut) works as the buttom of the form.

I hope that someone help me

Thanks.

PD. Sorry about the English but the English isn't my native language
ResinMC
Asp.Net User
Re: Master Page???1/5/2006 8:17:28 AM

0/0

Hi

From what you've written I would assume that you are handling your Log Out event by check IsPostBack in the Page_Load method on your masterpage. This would not be the correct way to go about it, as it now hijacks all button clicks.

Instead rather wire up the button to a specific event handler in your master page code behind.

For example:

MasterPage:

<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />

MasterPage code behind:

protected void Button1_Click(object sender, EventArgs e)

{

//Run your log out code in here

}

This should prevent your master page for hijacking your other button click events. Hope this helps.

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
XML in a Nutshell: A Desktop Quick Reference Authors: Elliotte Rusty Harold, W. Scott Means, Pages: 689, Published: 2004
The Complete Works Authors: William Shakespeare, Stephen Orgel, A. R. Braunmuller, Pages: 1754, Published: 2002
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Sundrye Strange and Inhumaine Murthers, Lately Committed the First of a Father that Hired a Man to Kill Three of His Children Neere to Ashford in Kent, the Second of Master Page of Plymouth, Murthered by the Consent of His Owne Wife: The First of a Father that Hired a Man to Kill Three of His Children Neere to Ashford in Kent, the Second of Master Page of Plymouth, Murthered by the Consent of His Owne Wife : with the Strange Discouerie of Sundrie Other Murthers, Wherein is Described the Odiousnesse of Murther, with the Vengeance which God Inflicteth on Murtherers Authors: unknown, Pages: 0, Published: 1591
Administrative Assistant's & Secretary's Handbook Authors: James Stroman, Kevin Wilson, Jennifer Wauson, Pages: 556, Published: 2004

Web:
ASP.NET Master Pages Overview ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard ...
ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps Apr 11, 2006 ... master page masterpages asp.net 2.0. ... NET web form using a master page, the content page (.aspx) and master page (.master) merge their ...
Master Pages In ASP.NET 2.0 Jul 18, 2005 ... A master page looks very similar to an ASPX file, ... Just like any ASPX form, our master page can contain code in a




Search This Site:










how to get the username, login name and e-mail in windows authentication

unicode web textbox

asp.net theme based on type of browser

web site administration tool time out

asp.net buttons w/ word wrap

a simpler method of displaying data inputed by a check box

some problem to get value back

list box is populated with data belongs to another user

does dnn paging control force a tab/page reload?

help: problem viewing asp pages in design view for web projects created w/ 3rd party tools

can i run two instances of dnn2 on the same server?

user security update e-mail

exporting results (of a datagrid) to a ms word or ms excel document

dnn3 web cam module

trying to share authentication cookies across asp.net v1.1 and asp.net v2.0 applications

referencing a scalar variable in page_load ...

how can i hide/show a node(and childs) in a sitemap dynamically?

prompt to download from a gridview hyperlink

trying to use css styling with validation controls throws off my forms

problem with dynamically creating webparts

accssing a control in a repeater without knowing the field type

can i get the kit ouside the msi so i can work in win 98?

add records?

inserting a flash object into the page

asp.net and iis question

membership and custom profile provider

personalization with sql server

portal failed to install

a problem about ip access control in iis

what is enu disk1 ??

 
All Times Are GMT