ASP.NET Forms + Frames

This is a discussion on ASP.NET Forms + Frames within the Inetserver forums in Microsoft Tools category; Not sure if this is the right group for this question, but here goes: I have a page containing 2 frames. In the top frame, I have an ASP.NET form and 2 combo boxes, selecting an item from the first combo causes a postback to the same page, where in the SelectedIndexChanged event I fill the second combo. The Target property of the form is set to the bottom frame. I have a submit button in the form, the PostBackUrl property of which is set to a different page that writes the output I want in the bottom frame. Whenever ...

Go Back   Application Development Forum > Microsoft Tools > Inetserver

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-20-2008, 02:09 PM
John
Guest
 
Default ASP.NET Forms + Frames

Not sure if this is the right group for this question, but here goes:

I have a page containing 2 frames.

In the top frame, I have an ASP.NET form and 2 combo boxes, selecting an
item from the first combo causes a postback to the same page, where in the
SelectedIndexChanged event I fill the second combo.

The Target property of the form is set to the bottom frame.

I have a submit button in the form, the PostBackUrl property of which is set
to a different page that writes the output I want in the bottom frame.

Whenever I select an item in the first combo, I get a copy of the top
frame's content appearing in the bottom frame (WITH the correctly populated
2nd combo). This is as I expect, as the form is posting back but the output
target is the bottom frame.

Clicking the submit button does put the correct output in the bottom frame.

My question is, how can I update the combo box contents on the form via
postback, and also redirect the submission output of the form to a different
frame?

Do I need to have 2 forms?

Can the form for the submit button be nested within the server form, if so,
how?

I'm sure there must be a simple solution to this!

Any help greatly appreciated.


Reply With Quote
  #2  
Old 05-20-2008, 02:29 PM
Bob Barrows [MVP]
Guest
 
Default Re: ASP.NET Forms + Frames

John wrote:
> Not sure if this is the right group for this question, but here goes:
>
> I have a page containing 2 frames.
>
> In the top frame, I have an ASP.NET


There was no way for you to know it (except maybe by browsing through
some of the previous questions before posting yours - always a
recommended practice), but this is a classic (COM-based) asp newsgroup.
ASP.Net is a different technology from classic ASP. While you may be
lucky enough to find a dotnet-savvy person here who can answer your
question, you can eliminate the luck factor by posting your question to
a newsgroup where the dotnet-savvy people hang out. I suggest

microsoft.public.dotnet.framework.aspnet.

There are also forums at www.asp.net where you can find a lot of people
to help you.

HTH,
Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:35 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.