473,407 Members | 2,676 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,407 software developers and data experts.

PLEASE HELP !! How To Reference Buttons in multiple ASPX pages IF

Can anyone please help me understand how to do the following:

I have an ASPX page that has a tabstrip and multipage. On the multipage,
each pageview has an IFRAME that has another ASPX page loaded in it. I have
a button, that when clicked, I would like the emmulate the user clicking the
first tab (tab index 0) on the tabstrip back on the main ASPX page.

I need to know how to call functions, reference data, etc. from one ASPX
page to another even if they are inside an IFRAME.

I am looking for VB code, not javascript or vbscript.

If anyone can help I would appreciate it very much.. I have been at this for
2 days now...
Jul 21 '05 #1
4 1333
If you just want to perform the logic contained in another page, you can
just create an instance of that page's class and call the method.

But if you expect to actually change the rendering of the parent page,
by triggering server-side events on that page from a different page,
WITHOUT javascript, you are out of luck. You are going to have to use
javascript.
ASP.NET is purely a server-side technology.
Bruce E. Pullum wrote:
Can anyone please help me understand how to do the following:

I have an ASPX page that has a tabstrip and multipage. On the multipage,
each pageview has an IFRAME that has another ASPX page loaded in it. I have
a button, that when clicked, I would like the emmulate the user clicking the
first tab (tab index 0) on the tabstrip back on the main ASPX page.

I need to know how to call functions, reference data, etc. from one ASPX
page to another even if they are inside an IFRAME.

I am looking for VB code, not javascript or vbscript.

If anyone can help I would appreciate it very much.. I have been at this for
2 days now...

Jul 21 '05 #2
I appreciate the reply... I believe the first option you mentioned will
work. You would not by any chance have an example of how to do this would
you? I am going to try and see if I can do this, however, I am new to .NET
and still learning the ins and outs..... Thanks again for your help...

"Bruce E. Pullum" wrote:
Can anyone please help me understand how to do the following:

I have an ASPX page that has a tabstrip and multipage. On the multipage,
each pageview has an IFRAME that has another ASPX page loaded in it. I have
a button, that when clicked, I would like the emmulate the user clicking the
first tab (tab index 0) on the tabstrip back on the main ASPX page.

I need to know how to call functions, reference data, etc. from one ASPX
page to another even if they are inside an IFRAME.

I am looking for VB code, not javascript or vbscript.

If anyone can help I would appreciate it very much.. I have been at this for
2 days now...

Jul 21 '05 #3
There isn't any trick to it. Page classes are just like any other
class. You can create an instance of them, and call public methods.
You could also expose the functionality as a static method, in which
case you could avoid creating an instance of the Page.

Add a public method to the Parent page.

From an event method on the child page:

ParentPage parentPage = new ParentPage();
parentPage.DoSomething();

or, if you create a static method:

ParentPage.DoSomething()

Bruce E. Pullum wrote:
I appreciate the reply... I believe the first option you mentioned will
work. You would not by any chance have an example of how to do this would
you? I am going to try and see if I can do this, however, I am new to .NET
and still learning the ins and outs..... Thanks again for your help...

"Bruce E. Pullum" wrote:

Can anyone please help me understand how to do the following:

I have an ASPX page that has a tabstrip and multipage. On the multipage,
each pageview has an IFRAME that has another ASPX page loaded in it. I have
a button, that when clicked, I would like the emmulate the user clicking the
first tab (tab index 0) on the tabstrip back on the main ASPX page.

I need to know how to call functions, reference data, etc. from one ASPX
page to another even if they are inside an IFRAME.

I am looking for VB code, not javascript or vbscript.

If anyone can help I would appreciate it very much.. I have been at this for
2 days now...

Jul 21 '05 #4
Cool... Thank you VERY much for your help....

"Joshua Flanagan" wrote:
There isn't any trick to it. Page classes are just like any other
class. You can create an instance of them, and call public methods.
You could also expose the functionality as a static method, in which
case you could avoid creating an instance of the Page.

Add a public method to the Parent page.

From an event method on the child page:

ParentPage parentPage = new ParentPage();
parentPage.DoSomething();

or, if you create a static method:

ParentPage.DoSomething()

Bruce E. Pullum wrote:
I appreciate the reply... I believe the first option you mentioned will
work. You would not by any chance have an example of how to do this would
you? I am going to try and see if I can do this, however, I am new to .NET
and still learning the ins and outs..... Thanks again for your help...

"Bruce E. Pullum" wrote:

Can anyone please help me understand how to do the following:

I have an ASPX page that has a tabstrip and multipage. On the multipage,
each pageview has an IFRAME that has another ASPX page loaded in it. I have
a button, that when clicked, I would like the emmulate the user clicking the
first tab (tab index 0) on the tabstrip back on the main ASPX page.

I need to know how to call functions, reference data, etc. from one ASPX
page to another even if they are inside an IFRAME.

I am looking for VB code, not javascript or vbscript.

If anyone can help I would appreciate it very much.. I have been at this for
2 days now...

Jul 21 '05 #5

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

Similar topics

5
by: PaulThomas | last post by:
Working with XP-Pro and VS.Net I have set my Start Page to "Home.aspx" but the application always starts the "Login" page - - - How can I change the start page to the Home.aspx??? On the login...
5
by: Lyn | last post by:
Hi, I hope someone can help. I have a main form which mostly fills the Access window. In the bottom half of this form I have a tab control to display various types of data related to the main...
4
by: Corey Dyke | last post by:
K here's what happened. For my English project at DeVry, I had to design a website for a company of my choice. So since my dad has been after me for years to do one for him, I decided to finally...
3
by: Bishoy George | last post by:
Hi, I want an asp.net code for redirection: I have multiple domains pointing to one page , let's call it page0.aspx I want to put a code in page0.aspx so when domain1 opens page0.aspx it...
16
by: Kent | last post by:
We have created several Assemblies that we add to the GAC on our web servers. In an ASP.NET app in VS2003, Adding a reference to strong named GAC'd Assembly meant that the web app would use...
4
by: Bruce E. Pullum | last post by:
Can anyone please help me understand how to do the following: I have an ASPX page that has a tabstrip and multipage. On the multipage, each pageview has an IFRAME that has another ASPX page...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
6
by: Terry | last post by:
Good morning! How do I determine which SELECT button was clicked in a GridView? The multiple SELECT buttons will be used for an application approval process. Thank you in advance for your...
5
by: Alex Maghen | last post by:
In ASPX 2.0 with MasterPages and all that, my entire page only has one actual <FORM>. But there are several different sections of the page that provide what are functionally separate forms with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.