OneMansQuestToLearnDotNet

I'm writing a web app and I would like to use a bottom frame for user errors. Example "You have entered an incorect number". I have a top, left, right,and a bottom frame defined in a web page called defaults.htm.

Defined Below: How would I update bottom.aspx and keep it in that frame.

</head>

<frameset cols="140,*" frameborder="NO" border="0" framespacing="0">

<frame name="left-frame" scrolling="no" src="left.aspx">

<frameset rows="110,*,50" frameborder="NO" border="0" framespacing="0">

<frame name="top-frame" scrolling="no" src="top.aspx">

<frame name="right-frame" src="defaults.aspx">

<frame name="bottom-frame" scrolling="no"

src="bottom.aspx">

</frameset>

<noframes>

<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>

</noframes>

</frameset>



Re: Internet Explorer Web Development How to update frames?

Kenny99

Not entirely sure what you mean by updating, but I assume its to put text in the bottome frame;

However, for various reasons I believe frames are *bad* and shouldnt really be used..

I dont really know the best way to acheive what your looking for, but I would use a server control (text box etc)

and wrap a div around it for formatting (i.e for positioning at the bottom).

To maintain a consistent look across the application use a masterpage with content pages (assuming VS 2005).

sorry if I've missed something, hope this somehow helps,

km





Re: Internet Explorer Web Development How to update frames?

H. Tony

I think he means to refresh the frame when there's new data, I dont know how to do that though.

as far as I know, <div> seems to be more w3c compliant for web programming





Re: Internet Explorer Web Development How to update frames?

Kenny99

yeah.. sorry, thought I was in a different forum altogether; hence talking about asp.net server controls..

will pay more attention next time..





Re: Internet Explorer Web Development How to update frames?

H. Tony

find this

try this out:

parent.frames['yourFrameName'].location.reload();






Re: Internet Explorer Web Development How to update frames?

OneMansQuestToLearnDotNet

Thanks. Javascript to the rescue.. That does exactly what I wanted to do. I was able to set a session variable and updated the page in the page_load event.