473,386 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Page Load and webcontrol page load

Hi,

I have a question, i have a web control in my web page. Let say i have
page pag1.aspx and control.ascx and page1 contains control.
I have written code on the page load of page and also the control but
page1 page load is never called. Is there any reason or any setting i
need to do to ?
venky

Nov 19 '05 #1
5 1782
Venky:
something seems odd. No reason why you shouldn't see code from both events
(the Page_Load one first). Coud you provide some sample code of the
problem?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"venky" <ve************@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi,

I have a question, i have a web control in my web page. Let say i have
page pag1.aspx and control.ascx and page1 contains control.
I have written code on the page load of page and also the control but
page1 page load is never called. Is there any reason or any setting i
need to do to ?
venky

Nov 19 '05 #2
Is your event hook lost?
Event hook in your InitializeComponent() method commonly.Check that
method,It should look like:
private void InitializeComponent(){
this.Load += new System.EventHandler(this.Page_Load);// lost?
}
--
Help you,Help me.
"venky" wrote:
Hi,

I have a question, i have a web control in my web page. Let say i have
page pag1.aspx and control.ascx and page1 contains control.
I have written code on the page load of page and also the control but
page1 page load is never called. Is there any reason or any setting i
need to do to ?
venky

Nov 19 '05 #3
Hi Venky, following on from Marshals post, in VB the the signature for the
page load handler would be
Sub Page_Load(o as object , e as eventargs) handles mybase.load

HTH jd

"marshal" wrote:
Is your event hook lost?
Event hook in your InitializeComponent() method commonly.Check that
method,It should look like:
private void InitializeComponent(){
this.Load += new System.EventHandler(this.Page_Load);// lost?
}
--
Help you,Help me.
"venky" wrote:
Hi,

I have a question, i have a web control in my web page. Let say i have
page pag1.aspx and control.ascx and page1 contains control.
I have written code on the page load of page and also the control but
page1 page load is never called. Is there any reason or any setting i
need to do to ?
venky

Nov 19 '05 #4

NOpe, it didn't get lost. The event mapping is there but still page load
function is not called but the webcontrol page load is called.

venky
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #5
i am seeing the code for events, but event from the aspx page load is
not called, i mean if i put a break poing in the page, page load and
also on web control page load, only web control page load is called but
the page's page load is not called

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Brian F | last post by:
Exactly what the subject says. I have an ASP page that I want my C# windows application to open in Internet Explorer, and if possible have it send along a list of values from a list box. Thank you.
6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
3
by: spmm# | last post by:
Hi! Could someone please help me with the following; I have a WebControl that basically looks like this: public class LeftMenu : System.Web.UI.WebControls.WebControl { private string...
4
by: Support | last post by:
Hello: I have a aspx web page - let's call it main.aspx It contains a placeholder: Myplaceholder. I have a web control, lets call it webcontrol which has a code behind class called...
3
by: Tome73 | last post by:
Could someone give me a comprehensive order of events as they pertain to web controls within a page. The page events are: Page_Init Page_Load Page_PreRender Page_Unload Page_Disposed So...
4
by: jesper_lofgren | last post by:
Hi there, I have some webcontrols that i want to add dynamically on a page. I have stored the path / namespace in database (ex MyNameSpace.WebControls.Control1) to the class/webcontrol. Lets...
6
by: Dariusz Tomon | last post by:
Hi How can I get url of page so taht I can pass it to string varaible. I have got several urls in my IIS under one folder. I want to have one default.aspx where code under it recognize which...
5
by: studio60podcast | last post by:
I have been fighting with this for almost two days and I can't figure it out. I'm hoping someone can shed some light on my problem. I have a web user control (NewAccountHolders) that contains a...
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I'm trying to make my code as streamlined as possible, and add CSS file references dynamically when they are required, for example, if a page contains a webcontrol, then the related CSS...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.