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





Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/11/2008 6:44:46 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 18 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
apollolax123
Asp.Net User
Master Page's Page Load firing twice on events called from other Page events3/11/2008 6:44:46 PM

0/0

I have numerous pages tied to my MasterPage that controls 2 Always visible extenders for User Reminders and a Counter. I would like them to only fire on a Page_Load once, not twice. I have read a million posts about AutoEventWireupset to false, but on all my pages it is set to true and on those pages the events only fire once. The Master page is giving me problems on events firing twice. Any suggestions? here is some code...

protected void Page_Load(object sender, EventArgs e)

{

if
(!Page.Master.IsPostBack)

{

 I call 2 stored procedures here that should only fire once on a Page_Load

}

}


If you get an answer to your question, please mark it as 'Answer' Smile


www.lymanlax.com | www.possumslax.com | www.teamfloridalax.com | www.thefreightrateco.com


Hulkamania!
apollolax123
Asp.Net User
Re: Master Page's Page Load firing twice on events called from other Page events3/12/2008 12:14:48 PM

0/0

I have resolved my issue with the Master Page firing the Page_Load event twice:

Here is the solution:

1. Make sure all you IMG tags have a SRC assigned to them. (i.e. <IMG SRC="~images/foo.jpg" />) *This cannot be blank or null...it will cause the Page_Load to be called twice

2. Check your <TABLE /> tags and make sure you have  bgColor="#f8f7ee" NOT background="#f8f7ee". This will also cause the Page_Load to fire twice.

3. I was using AJAX Collabsible Panel Extender controls and not setting the image src on the load and letting the control do that dynamically for me. Rather you should set the image src on that control to the image you want displayed whether or not the panel is collapsed or expanded. (i.e. if the panel is collapsed, the expaned image should be set and shown first etc...)

Any questions please post to this thread and I will check it regularly. I know this is a hassle for some developers and GOOGLING "Master Page events Firing Twice" or something similar does not return friendly results.

 


If you get an answer to your question, please mark it as 'Answer' Smile


www.lymanlax.com | www.possumslax.com | www.teamfloridalax.com | www.thefreightrateco.com


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



Search This Site:


Meet Our Sponsors:



Other Resources:

ng.asp-net-forum.asp-net_ajax-asp-net_ajax_ui - Web Programming Newsgroups ScriptManager on Master page, Update Panel on Content page, not firing ? 3. 5 ... Can a modal popup be called from another modal popup? 5. 6. 5/15/2008 9:20:54 PM ...
STS-39 observations of other targets, including three CRO subsatellites to be released from Discovery. ... The Hitchhiker payload for STS-39 is called Space ...
STS-7 ... Facility on April 26 for integration with other STS-7 ... Edited by Richard W. Orloff, 01/2001/Page 39. Edited by Richard W. Orloff, 01/2001/Page 40 ...
The Corvette the master's mate who appeared on deck and bid him a loud. and jolly ... Page 39 of 39. The officers proceeded on deck several minutes after the. midshipmen. ...
Olaudah Equiano, b. 1745. The Interesting Narrative of the Life of ... ... or district on the other, to obtain prisoners ... our time, and foretold events, as their name imported, for we called them ... Page 39. applied to her) ...
The Philippine Islands, 1493–1803: explorations by early navigators ... ... on Cebú in the preceding autumn, and briefly mentioning some other Page 6matters. ... from Legazpi to the king (July 25, 1570) outlines the events of ...
New AKC Proposed Working Dog Sport ... 33 34 35 36 37 38 39. 40 41 42 43 44 45 46 47 48 49. 50 51 52 53 54 55. Page 1 2 ... these exercises facets of other AKC events including Obedience Agility and ...


 
All Times Are GMT