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: 11/12/2007 4:21:01 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
duynnh
Asp.Net User
Call functions many times in my pages!!!11/12/2007 4:21:01 AM

0/0

Hi All!

In my Application, Pages have structure as follows:

- Master page

     - My Aspx page

         - My ascx page

In my ascx page i have 3 functions and in page load Event i call it but when debug i see it call 3 functions 2 times so this page is loaded slow. Please help me to solve this problem.

Thanks & Regards,

mgodoy_desenv
Asp.Net User
Re: Call functions many times in my pages!!!11/12/2007 11:12:15 AM

0/0

I already saw the same problem.

naturehermit
Asp.Net User
Re: Call functions many times in my pages!!!11/12/2007 11:33:44 AM

0/0

Perhaps a code sample will be helpful, however there are many ways to avoid that, i.e. using statics or singleton pattern or checking for stuff before entering a code block.


Please Mark Post that helped you as answer, also include a summary of what solved the problem as it helps others in similar situations
simonl1980
Asp.Net User
Re: Call functions many times in my pages!!!11/12/2007 11:39:16 AM

0/0

It could be that you have AutoEventWireup="True" in your ascx markup (at the top) and you are also wiring up the Page_Load event manually.  If that is the case, then the Page_Load method will be called twice.

To fix it, just change AutoEventWireup to "False".

 Simon.

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


Free Download:

Books:
PHP and MySQL Web Development Authors: Luke Welling, Laura Thomson, Pages: 871, Published: 2003
Special Edition Using Microsoft FrontPage 2002 Authors: Neil Randall, Dennis Jones, Pages: 914, Published: 2001
How to Start a Home-Based Web Design Business Authors: Jim Smith, Jim Smith, Jr., Pages: 244, Published: 2007
UNIX Shell Programming Authors: Lowell Jay Arthur, Ted Burns, Pages: 528, Published: 1997

Web:
A page about call/cc To the best of my knowledge, these are the only languages with a full-fledged call/cc function. Many other languages (notably Java, CAML or C++) incorporate ...
call a function in Page_Load event of all of my pages - ASP.NET Forums I have an application with 135 asp.net pages. I want to call a shared function each time my pages load. One way is copying the function in ...
Functions | create custom JavaScript methods || HTMLSource ] We can call this function in the course of a normal embedded script, like so .... document.write("Welcome to my page" ); ...
Executing JavaScript on page load I tried to call a function just before the body tag, like ..... using a dynamic language tocreate the pages, not nowing how many times I include the script. ...
How to call functions of another controller | CodeIgniter Forums This topic should be a ‘sticky’ - it comes up so many times! hmmm ... is to use PlugIns as a repository for all of my function libraries and ...
MySQL :: MySQL 5.0 Reference Manual :: 11.6 Date and Time Functions I wanted to make a "active users" on my page, but I found out that I ...... to use to days and std time functions to calculate the difference in one call. ...
Test Run: AJAX Test Automation I use this variable to keep track of how many times I've entered the delay ... My delay function is not quite recursive because it doesn't call itself ...
ASP.NET - Function Called With Same Arguments Many Time ... I have an algorithm that has to call a function f(x1,x2,x3,....,xn) with 25000- 50000 sets (x1,...xn). It happens many times that the same set of values may ...
Intermitent load issue with I.E. 6 andersen: I changed my page according to your advice. .... is there a way to generically call the functions so that it doesn't have to be different per ...
Functions: Parameters [Archive] - kirupaForum e.g. if you want to call this function for 12 times for 12 swfs, ... Ahhh I C. Basically I have a page on my site that contains 18 staff ...

Videos:
EarningsCast - Google Q2 2006 Earnings Call in Full. EarningsCast creates Podcasts of Company Earnings Calls. You can see the full complement at http://www.earningscast.com. This is the Q2 2006 Google e...
Roland S-330 used as an advanced virtual analog synth The Roland S-330 is an old digital sampler (1986) and is quite a piece of useless gear today, infact it's being sold for a few dimes on ebay and on t...
Liver Transplant Part 4 Liver Transplant Part 4 My beautiful wife Anita is the biggest reason besides God that I made it through this. She spent countless weeks/days/hours...
Dreamweaver: Multimedia Becoming a power user with Dreamweaver includes understanding and mastering it to include multimedia functions.
I Must Be High- Spm (With Lyrics) South Park Mexican Myspace Page http://www.myspace.com/spmheaven I'm damned if I do and damned if I don't Holla fuck the world with my chest full of smoke I choke on ...
CNN: Mr. Bush Blasts Obama, Hussein Obama Cries Foul President Bush launched a sharp but veiled attack Thursday on Sen. Barack Obama and other Democrats, suggesting they favor "appeasement" of terrorist...
The Paradox of Choice - Why More Is Less Google TechTalks April 27, 2006 Barry Schwartz
Keeping Kids Healthy: How to Cope with ADHD How do you tell the difference between an ordinary rambunctious kid and one who has ADHD? And what do you do about it? If your child seems very hype...
YouTube Player APIs and Tools Tutorial Stephanie Liu gives a short tutorial on the basic functionality available in the JavaScript and Flash player APIs, as well as the Chromeless Player. ...
The Last Lecture - Love Story of Your Life Professor Randy Pausch's inspiring last lecture at Carnegie Mellon about living life to the fullest struck a chord with people all over the country. ...




Search This Site:










tree node lines

ie web controls reference pages unavailable on msdn?

problem with binding 1000+ nodes

i need the microsoft.web.ui.webcontrols.dll

problems

ie tabcontrol problem

toolbar: onclick prompt for toolbar buttons? (or even during code behind) ?

treeview how to?

how to deploy ie web controls in client machine

treeview missing images / taking forever to load

treecontrol - server - side event handling

error while running build.bat

treeview: load not from an xml file from hard drive, but from an object, like xmldocument, or xmlnode?

tabstrip - inconsistent errors

a question about install the controls

internet explorer - save as

how to bind the treeview control to multiple xml files

cannot move focus to the control because it is invisible...

expand treeview node

toolbar - style

after enabling autopostback the tree multiples on each click event for treeview in ie7

big trouble with web controls and the treeview control

if i want to be compatible, shoudl i bother with these?

subclassing treenode

installation problem of ie webcontrols

no dll

internet explorer web controls

treeview navigation

dataset and treeview

how can i obtain the microsoft.web.ui.webcontrols.dll?

  Privacy | Contact Us
All Times Are GMT