473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Master pages....

Hi,

An easy question but I'm a newby.

I have a master page (.master) that has buttons on it. When clicked I
need these buttons to start up a web page (OnLoad()) method. How can
this be done?

Apr 10 '07 #1
3 981
"Steve Kershaw" <st***********@yahoo.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
I have a master page (.master) that has buttons on it. When clicked I
need these buttons to start up a web page (OnLoad()) method. How can
this be done?
What does this mean exactly...?

Presumably, this Page_Load method is in a content page which uses the
MasterPage with the button on as its MasterPage...?

In which case, you don't need to do anything... When you redirect to the
content page, its Page_Load method will run anyway...
Apr 10 '07 #2
// Put this code into the button's click event code block...
Response.Redirect(" http://clintongallagher.metromilwaukee.com/ ");
"Steve Kershaw" <st***********@yahoo.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
Hi,

An easy question but I'm a newby.

I have a master page (.master) that has buttons on it. When clicked I
need these buttons to start up a web page (OnLoad()) method. How can
this be done?

Apr 11 '07 #3
Hi,
If the form exists in the same folder as the current form, you only need
this:

Response.Redirect("openThisOtherForm.aspx");

HTH, Randy

"clintonG" <no****@nowhere.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
// Put this code into the button's click event code block...
Response.Redirect(" http://clintongallagher.metromilwaukee.com/ ");
"Steve Kershaw" <st***********@yahoo.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
>Hi,

An easy question but I'm a newby.

I have a master page (.master) that has buttons on it. When clicked I
need these buttons to start up a web page (OnLoad()) method. How can
this be done?


Apr 28 '07 #4

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

Similar topics

1
1284
by: Friso Wiskerke | last post by:
Hi All, We've got an VS.2003 ASPNET (VB) webproject which we would like to convert to VS.2005 so that we can make use of the Master Page feature. Converting the initial pages to 2005 is not such...
2
3720
by: dotnetjose | last post by:
Hi Folks, My subject message pretty musch explains it. By Default the Form definition sits at the Master Page file. Is there a way I can access the setting from my Content Page that uses a...
8
2376
by: otto | last post by:
Hi, all: I have a problem with the inclusion of .js files in mu .aspx pages when using Master Pages. I try to explain it. If I make a web project without master pages I simply put in the head...
0
814
by: maflatoun | last post by:
Hi everyone, I have placed a simple Web User Control (Response.Write("hello")) on my page which uses a Master Page to test this problem that we have. Every time I run the web app it displays...
0
1107
by: Nemisis | last post by:
I am creating a asp.net 2.0 website that can be accessed via a PDA. On the page i have a file upload .net control, which works fine on its own. I can check the HasFile property and upload the...
1
1748
by: Don | last post by:
I'm using master pages and have added some base functionality (public functions) into this class. I then create a new web form using the above as the master page. In the code of my new web form,...
0
1173
by: luminousc | last post by:
Hi guys, I've got a really annoying bug that I can't find a way around. I'm trying to rebuild our group's intranet. Which comprises of 4 individual companies, hence I want to use 4 different...
0
2734
by: dixonjm | last post by:
Hi, I have a master page & various pages that will use this master page. Each content page will have a CSS & JS file which will be named the same as the content page. When I try to load the CSS...
1
1596
by: dixonjm | last post by:
Hi, I am trying to develop an error handling in our asp.net web app. I'm pretty new to Master pages although the concept of master pages had been completed by someone else & works fine. What I...
1
1609
by: H F | last post by:
Hi all I created a user control that has a button and have added it to the Master page. When I click on the button, the onClick event handler in the user control is not fired. How do I reference...
0
7319
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,...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.