Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > submit another page before event button click fires

Reply
Thread Tools

submit another page before event button click fires

 
 
Robin
Guest
Posts: n/a
 
      04-26-2005
Hi,

I have a question: If I have a frameset, frame1 and frame2.
On frame2 I have a datagrid, on which I can add/update/delete rows.

If I submit that page, I catch these changes in events and update my
objects with it.

Now do I want a button in frame1, which does save. The problem is that
I first want to submit the page in frame2 to update my objects, before
the onClick event of my button occurs, which does the save of my
objects to the database.

So what I want is:
1 - CLick on button in frame1
2 - submit page frame2
3 - process events of page in frame2
4 - process events of page in frame1

Can anyone help me with this?

Gr.,

Robin
 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      04-26-2005
this must all be done with client script.

1) on button click in frame 1 force submit of frame 2
2) in top frame catch body load of frame 2 and notify frame 1
3) in frame 1, when notified of frame 2 load, submit frame 1 form

its all pretty easy. its best to put all the controlling code in the
frameset page.

-- bruce (sqlwork.com)

"Robin" <> wrote in message
news: om...
> Hi,
>
> I have a question: If I have a frameset, frame1 and frame2.
> On frame2 I have a datagrid, on which I can add/update/delete rows.
>
> If I submit that page, I catch these changes in events and update my
> objects with it.
>
> Now do I want a button in frame1, which does save. The problem is that
> I first want to submit the page in frame2 to update my objects, before
> the onClick event of my button occurs, which does the save of my
> objects to the database.
>
> So what I want is:
> 1 - CLick on button in frame1
> 2 - submit page frame2
> 3 - process events of page in frame2
> 4 - process events of page in frame1
>
> Can anyone help me with this?
>
> Gr.,
>
> Robin



 
Reply With Quote
 
 
 
 
Robin
Guest
Posts: n/a
 
      04-28-2005
Bruce,

you make it sounds soooooo easy, but I really have no idea how to do
that... Can you give me an example?

Thanks,

Robin

 
Reply With Quote
 
Patrick Olurotimi Ige
Guest
Posts: n/a
 
      04-28-2005
Must you use FRAMESET?
Patrick


*** Sent via Developersdex http://www.developersdex.com ***
 
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
When user press F5 after a button click event, the click event fires again! Max2006 ASP .Net 2 09-19-2007 05:37 AM
image button click event fires before click event of button Purvi T ASP .Net 0 10-19-2004 06:19 AM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net Building Controls 1 05-28-2004 06:23 AM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net 2 05-25-2004 11:45 PM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net Datagrid Control 0 05-25-2004 01:45 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57