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!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 4/20/2006 3:03:48 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 >> >|
nisarkhan
Asp.Net User
why my code is executing twice?4/20/2006 3:03:48 PM

0/0

i have a master.page and in the master.page i have a page_load and i debug and found that its running twice, what may be the cause of that?

i do not have much in my page_load code but still executing more then 1?

protected void Page_Load(object sender, EventArgs e)

{

if (!Page.IsPostBack)

{

imgbtnCancel.Enabled =

false;

}

}


Its all about coding!
nisarkhan
Asp.Net User
Re: why my code is executing twice?4/20/2006 3:23:24 PM

0/0

after i debug thoroughly i found that, here are the steps that my app going through...

i have a master.page and i have a content.page (default.aspx)

when i run my app:

first it goes to default.aspx.cs page_load and i have code in my page_load

if (!Page.IsPostBack)
{
    this.Master.mstr_lbll.Text = this.TextBox1.Text;
}

then

it goes to Master.Page.cs page_load and i have code in my page_load

if

(!Page.IsPostBack)
{
    imgbtnCancel.Enabled = false;
    Response.Write(
"once");
    Response.Write(
"two");
}

then again

goes to default.aspx.cs page_load

then again

goes to Master.Page.cs page_load

no idea why is doing that?


Its all about coding!
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Embedded Systems Building Blocks: Complete and Ready-To-Use Modules in C Authors: Jean J. Labrosse, Pages: 611, Published: 1999
Oracle Built-in Packages Authors: Steven Feuerstein, Charles Dye, John Beresniewicz, Pages: 931, Published: 1998
Computer Science and Perl Programming: Best of the Perl Journal Authors: Jon Orwant, Pages: 737, Published: 2002
C++: A Dialog : Programming with the C++ Standard Library Authors: Steve Heller, Pages: 1122, Published: 2002
Programming Perl: There's More Than One Way To Do It Authors: Larry Wall, Tom Christiansen, Jon Orwant, Pages: 1067, Published: 2000
Oracle PL/SQL Programming Authors: Steven Feuerstein, Bill Pribyl, Pages: 1171, Published: 2005

Web:
why my code is executing twice? - ASP.NET Forums why my code is executing twice? Last post 04-20-2006 11:23 AM by nisarkhan. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Command Code Executes Twice : Adobe Flex 2, IE7, www.mdr.net Can anyone tell me why my command executes twice? I can provide additional code if needed. I am hoping someone knows of something obvious that I am simply ...
Re: SaveViewState executing twice working but I found that the SaveViewState was executing twice on load of ... Just to make sure my code was working correctly, I rewrote the class to ...
DataGridView as Custom Control with a default column: Code ... want, but I do not want the code in my class to be run in runtime. ... Control with a default column: Code executes twice...Code Example ...
aspx Page events execute twice after HTTP POST Talk about aspx Page events execute twice after HTTP POST. ... Im concentrating too much on my code rather than the HTML Output! ...
MSDN Visual C# General Thread executing twice I'm not calling RunWorkerAsync() that I know of, but the code inside the dowork block is executing twice. I thought it was something with my project, ...
How do I stop Drupal from running my callback twice? | drupal.org I'll have to go back and revisit my code and try that out. ... It was calling the callback twice, which would skew the conditionals in the ...
NET csharp DataGridView as Custom Control with a default column ... DataGridView as Custom Control with a default column: Code executes twice...Code Example - Claes Wedin. 07-Aug-07 06:37:04. Her is my code ...
RE: Why does my RPG program compile twice?: msg#00029 When I execute the CRTSQLRPGI with OPTION(*EVENTF) and there is an error in the source, ... To circumvent the problem, CODE compiles twice: once with ...
Code executed twice - ASP Free Code executed twice- ASP Development. Visit ASP Free to discuss Code ... is not "the same email being sent twice", but rather "my code executing twice". ...

Videos:
Beck Beercan Special Please subscribe Beck Beercan Alcohol on my hands I got plans to ditch myself and get outside dancing women throwing plates decapitating their laugh...
WoW Pre-Paid Generator 2 for 1 for patch 3.0.2 Use an UNUSED gamecard and send this script to the bot and Generate another unused code. It can take up to 24 hours to receive the generated code but...
WoW Prepaid Reloaded EU only The Title says it all! wow.card.reloaded@gmail No crap just pure RELOADED! Use an UNUSED gamecard and send this script to the bot and Generate a...
"Controlled Substance", VAC, NDP, pot, Mj. weed, drug war drug "original" Political Statement, Squeaky Wheel, Testimonial, or Just a long Music Video. What ever you would like to call it! Here it is! Hi; If you know this g...
Mystery Bus Adventure Sydney Australia If you love shows like The Amazing Race, The Mole or Survivor, then you will really enjoy this event. The goal is fun and adventure with detours, ro...
Disco Table Project vid4 Finally, my LED grid working on my coffee table! This particular vid shows the coffee table minus its frosted glass top, with a sheet of diffuser per...
Mac OS Automator: Doing things over and over is over. Google TechTalks June 27, 2006 Sal Soghoian ABSTRACT Mac OS X "Tiger" introduces Automator, a new application that automates anything on your compu...
World Of Warcraft GameCard Duplicater Hey guys. My cousin works for blizzard and he showed me how all of the staff gets free time for their accounts. I decided to release this video so th...
Mivtza Savta ("Operation Grandma") - מבצע סבתא Mivtza Savta ("Operation Grandma") - מבצע סבתא




Search This Site:










web.sitemap

strange problem with navigateurl in treeview

findcontrol, asp:content, and master pages

page in sitemap, but not on menu

sitemap roots

error at postback

object reference not set to an instance of an object.

asp.net 2.0 master page cannot implement an interface from separate assembly

master page and the mastertype and reference directives

treeview etc..

how embed a flash file into an aspx page child (using master pages)?

sitemap.sitemapresolve and treeview

paypal add to cart button not working with masterpage

creating and accessing objects from master pages

global.asax and master page question

making the menu within my master page unmovable

can't view any of the wizardsteps other than first from design view

sending back values to opener pages with master pages

detecting filename of content page from masterpage.master.cs?

menu view problem

styles not accessible in content page

multi row, multi level horizontal menu?

multiple master pages

tree view behaviour

wizard finish cancel not working

get the current page title from cahced page using a substitution control

browser rendering problems

xmlsitemapprovider more....flexible?

asp.net 2.0 treeview callback functionality

database sitemapprovider with enablelocalization, best practice?

  Privacy | Contact Us
All Times Are GMT