Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Initiating save event in iframe from parent

Reply
Thread Tools

Initiating save event in iframe from parent

 
 
jkeel@charter.net
Guest
Posts: n/a
 
      05-09-2006
Here's what I'm trying to do (any opinions whether this is OK or plan
stupid are appreciated):

I have a parent web page that will contain a Page Title at the top and
a save and probably a cancel button at the bottom.

The body of this page will be an iframe that will contain an asp.net
page.

How can I initiate the save event in the iframe for the asp.net page
from the parent page?

Jason

 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      05-09-2006
Jason,

Technically, it can be programmed on client side.

The page in the iframe will have a javascript function

function saveEvent(){
myForm.inhAction.value="SAVE";
myForm.submit();
}

where

<input type=hidden runat=server id=inhAction />

is used for passing info from client to server.

The parent page would need to make a javascript call
myParentForm.myFrame.contentWindow.saveEvent();

Did you consider other solutions? Master pages? User controls?

Eliyahu

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Here's what I'm trying to do (any opinions whether this is OK or plan
> stupid are appreciated):
>
> I have a parent web page that will contain a Page Title at the top and
> a save and probably a cancel button at the bottom.
>
> The body of this page will be an iframe that will contain an asp.net
> page.
>
> How can I initiate the save event in the iframe for the asp.net page
> from the parent page?
>
> Jason
>



 
Reply With Quote
 
 
 
 
jkeel@charter.net
Guest
Posts: n/a
 
      05-09-2006
Thanks for the quick response.

As far as master pages goes, that is really what I want to accomplish.
We are currently using some third party software (stellant) as a
content manager. What we want to accomplish is a uniform look and feel
to the webpages, but without losing the custom menus that stellant
offers. The workaround was to have an iframe inside their html pages
with our asp.net pages inside the iframe. As we went from page to page
the asp.net pages would change in the iframe, but nothing else.

How would user controls be beneficial in this situation?

thanks
Jason

 
Reply With Quote
 
Eliyahu Goldin
Guest
Posts: n/a
 
      05-10-2006
Ok. User controls could be useful for placing the same controls on every
page. Apparently it is not for you.

Eliyahu

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Thanks for the quick response.
>
> As far as master pages goes, that is really what I want to accomplish.
> We are currently using some third party software (stellant) as a
> content manager. What we want to accomplish is a uniform look and feel
> to the webpages, but without losing the custom menus that stellant
> offers. The workaround was to have an iframe inside their html pages
> with our asp.net pages inside the iframe. As we went from page to page
> the asp.net pages would change in the iframe, but nothing else.
>
> How would user controls be beneficial in this situation?
>
> thanks
> Jason
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
Targeting a parent iframe from a sub-iframe albanitus@yahoo.com HTML 0 11-15-2006 04:40 PM
Set Parent Scroll Position - parent page and iframe on seperate domains PD Javascript 6 05-09-2006 03:37 PM
Need to pass a value from an IFrame to its parent to its parent PKalos@gmail.com Javascript 0 02-02-2006 10:02 AM
Save contents of iframe from parent's save button user ASP .Net 1 04-04-2005 07:44 PM



Advertisments