473,382 Members | 1,752 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,382 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 1330
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...

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.