Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating frames in ASP.NET?
Message
De
24/03/2003 13:22:24
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00769227
Message ID:
00769351
Vues:
17
Stephen,

The Frameset is merely a container for the pages that will be assigned to each frame. The individual pages remain autonomous, self-contained aspx pages. In the server-side code, they are blissfully unaware of the other frames.

The main reason for avoiding framesets in your ASP.NET application is that controlling one frame from a different frame requires javascript or vbscript code and is browser-dependent (see the Document object in the IE programming help file). Also, passing data between frames is cumbersome and requires a post-back.

You may want to consider using tables instead of frames. The only thing you can do with a frameset that you can't do with tables is interactive sizing and independent scrollbars.

-OR-

You could rename your Frameset1.htm page to .aspx and use it like any other aspx page. However, there is nothing in the documentation about this and I don't know what problems it may lead to down the road.

>Sorry for the quick send!
>
>This was the code that was sending everything needed on the MAIN section:
>string ptMake = MmDropDownList1.SelectedItem.Text ;
>string ptModel = MmDropDownList2.SelectedItem.Text ;
>string ptOpening = MmDropDownList3.SelectedItem.Text ;
>int lco= (MmDropDownList2.SelectedIndex);
>Models oModels = (Models)this.RegisterBizObj(new Models());
>DataSet dsGetModels = oModels.GetModels(MmDropDownList1.SelectedItem.Text);
>string ptPage = (dsGetModels.Tables["depindx"].Rows[lco]["pi_applpg"].ToString());
>string ptOpeningNum = MmDropDownList3.SelectedIndex.ToString();
>string strURL = String.Concat("PtoFrameSet.htm?ptoapp=", ptPage ,"&ptoMake=", ptMake,"&ptoModel=", ptModel,"&ptoOpening=", ptOpening,"&ptoOpeningNum=", ptOpeningNum );
>Response.Redirect(strURL);
>
>I have put PtoFrameSet.htm inplcae of ptos.aspx.
>
>The Main section is bombing becasue it's lost all references to ptMake, ptModel, ptOpening and ptOpeningNum seems thay are not there.
>
>any ideas?
>
>TIA
>
>
>
>
>>>Stephen,
>>>
>>>You can create a New Frameset page in the IDE by right-clicking the project, then choose Add New Item/Frameset.
>>>
>>>>I was just asked to do Top Frames for notes in this app.
>>>>
>>>>I see reference to a Frame object. Is there a way to set on in the IDE, or am going to the HTML section to put one in?
>>>>
>>>>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform