Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > sending form variables to a different frame

Reply
Thread Tools

sending form variables to a different frame

 
 
Wee Bubba
Guest
Posts: n/a
 
      05-10-2004
my page is split into 2 frames. my upper frame contains a data entry
form consisting of asp.net textbox server controls. my lower frame
displays rows of data.

when a user clicks the submit button in the upper frame I want the
textfield contents to be validated then I want to send the form
variables to the page in my lower frame forcing it to refresh. my
lower frame will then get these variables, use them to insert a new
row then will redisplay showing the newly inserted rows.

can anyone help me out with the best most efficient way to transfer my
form variables from my upper frame to my lower frame refreshing the
lower frame page

thanks

 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      05-10-2004
Complications like this are why you should try to avoid frames.
Usually you can structure your program better by segmenting sections of your
page into user controls.
If you must keep the frames you can use some client side javascript to
handle the situation. Here are some examples:

parent.FRAMENAME.document.form1.myhiddentextbox.va lue='test';
parent.FRAMENAME.location.reload(true);

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"Wee Bubba" <(E-Mail Removed)-spam.invalid> wrote in message
news:409fa967_2@127.0.0.1...
> my page is split into 2 frames. my upper frame contains a data entry
> form consisting of asp.net textbox server controls. my lower frame
> displays rows of data.
>
> when a user clicks the submit button in the upper frame I want the
> textfield contents to be validated then I want to send the form
> variables to the page in my lower frame forcing it to refresh. my
> lower frame will then get these variables, use them to insert a new
> row then will redisplay showing the newly inserted rows.
>
> can anyone help me out with the best most efficient way to transfer my
> form variables from my upper frame to my lower frame refreshing the
> lower frame page
>
> thanks
>



 
Reply With Quote
 
 
 
 
Wee Bubba
Guest
Posts: n/a
 
      05-10-2004
> Usually you can structure your program better by segmenting sections
of your page into user controls

i want my users to do data entry without having to wait whilst the
data is redisplayed each time. this is why i thought of using frames.
if i use user controls instead would there be a sacrifice in terms of
speed over the web.
i.e. i do not wanty my users to have to wait after submitting each
form as they will have lots of data entry to do

thanks for any more advice

 
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
target form field in iframe w/in frame from other frame starman7@hotmail.com Javascript 2 05-27-2005 10:25 AM
Breaking a frame from a different frame Rob Gordon Javascript 0 10-17-2004 07:12 AM
Set focus on a form element in one frame from a different frame Arvin Portlock Javascript 4 07-12-2004 09:33 PM
Using form data from one frame in another frame Kathryn ASP General 4 11-07-2003 02:22 PM
Submit form in different frame to different server Jim Mesara Javascript 0 08-27-2003 08:10 PM



Advertisments