473,322 Members | 1,314 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,322 software developers and data experts.

2.0 Masterpage events before OnLoad?

how can I set events other than Page_OnLoad for masterpage in 2.0? Because I
need to have some code being run before the content page OnLoad event is
run...
Nov 19 '05 #1
3 3024
You can't, but here's something that can help:

http://staff.develop.com/ballen/blog...c-13818fd75a56

-Brock
DevelopMentor
http://staff.develop.com/ballen
how can I set events other than Page_OnLoad for masterpage in 2.0?
Because I need to have some code being run before the content page
OnLoad event is run...


Nov 19 '05 #2
hmm, well if I used a user control instead? Since it's not actually
neccesary to have this code in the masterpage
"Brock Allen" <ba****@develop.com.i_hate_spam_too> wrote in message
news:87*********************@msnews.microsoft.com. ..
You can't, but here's something that can help:

http://staff.develop.com/ballen/blog...c-13818fd75a56

-Brock
DevelopMentor
http://staff.develop.com/ballen
how can I set events other than Page_OnLoad for masterpage in 2.0?
Because I need to have some code being run before the content page
OnLoad event is run...


Nov 19 '05 #3
actually... until now I've only found one way to run code before content
page's OnLoad - using global.aspx but it's no good because it only runs on
session_onstart!

"Daves" <db****@simnet.is> wrote in message
news:ug**************@TK2MSFTNGP14.phx.gbl...
hmm, well if I used a user control instead? Since it's not actually
neccesary to have this code in the masterpage
"Brock Allen" <ba****@develop.com.i_hate_spam_too> wrote in message
news:87*********************@msnews.microsoft.com. ..
You can't, but here's something that can help:

http://staff.develop.com/ballen/blog...c-13818fd75a56

-Brock
DevelopMentor
http://staff.develop.com/ballen
how can I set events other than Page_OnLoad for masterpage in 2.0?
Because I need to have some code being run before the content page
OnLoad event is run...



Nov 19 '05 #4

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

Similar topics

1
by: Brian Genisio | last post by:
Hello all, In IE, when an event occurs, as long as it returns true, and cancelBubble is not set, the event will bubble up through the elements in the DOM tree. Though, there is at least one...
1
by: Daves | last post by:
I am using 2.0 masterpages. All content pages use some common variables, for example the DB connection string. Also some pages return links which are located in a "sublink" area in the masterpage....
2
by: Stan SR | last post by:
Hi, I use a masterpage for all my project. For some pages I have some external javascript file that I would like to include. How can I do this action from the content pages ? Stan
3
by: Mike Cain | last post by:
Hi I have a JS library that I want others in my company to use that uses AttachEvent (etc) to add a method to the onLoad event so that it is called. Using this approach of course is good because...
4
by: m0nkeymafia | last post by:
I read about this technique to basically allow you to have a file with behaviours and javascript events that attach to various dom objects and events but are not done inline. so its basically a...
6
by: Michael Landberg | last post by:
Hi is it possible to load multiple onload events in the body tag? Regards
1
by: =?Utf-8?B?Sm9obg==?= | last post by:
I have a dropdownlist in masterpage and a big table in contentpage. When ddl selection changes, I want to move a specific row of the table to the top of the contentpage. Can I do something like <a...
3
by: jobs | last post by:
Hello. How can a set the Body onload from a content page since Body is on the masterpage? on my master page: <body runat="server" id="Body" > How can I reference Body. on the content...
4
by: faraz | last post by:
I have a javascript function that i want to call masterpage load method called. I cant add onLoad event of body or table in master page. I have put the call to script function in <form>, it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.