Help!!! Using Frames ASP.NET...

C

chrisgirl77

Hello All,

I have used frames in html. I badly need to know how to use frames in
..NET. Looked around internet, but couldnt find an appropriate answere
to my question.

1. Is there a direct way to use frames? ie. not jumping from ASP.NET,
to html, javascript etc..

2. Ne good links for tutorials in frames, and other ASP.NET (using
VB.NET)?

Thanks in Advance..
 
D

Dave Fancher

ASP.NET is a server-side technology whereas frames are a client-side
technology. Frames can be likened to having multiple independent browser
windows. Since ASP.NET is a server-side technology, it is completely
unaware of most things on the client and is unable to manipulate things like
other frames and windows. Manipulating frames and windows is the
responsibility of the client.

You can use a few tricks like setting the form target to another frame or
setting the Target attribute on a HyperLink to point to another frame but
even in these cases, ASP.NET is not targeting another frame, the browser is.

As for not wanting to jump from ASP.NET to HTML, this is unavoidable.
ASP.NET pages are XHTML pages that stream HTML to the browser. You still
need HTML in order to display your pages. JavaScript is highly useful for
manipulating client side objects and, in many cases is preferred to a
server-side solution because it eases the burden on the server by reducing
the number of requests that the server needs to process and by moving some
of the processing load to the client.

You may want to consider a UserControl based solution instead of frames.

HTH
 
K

Kevin Spencer

1. Is there a direct way to use frames? ie. not jumping from ASP.NET,
to html, javascript etc..

This question doesn't seem to make much sense on the face of it. First, what
do you mean by "direct?" You can certainly use a Frameset with ASP.Net pages
in it. Why, you could use an ASP.Net Page as the Frameset itself. And what
do you mean by "not jumping from ASP.Net to html, javascript etc." ? ASP.Net
is all about HTML, JavaScript, etc. ASP.Net generates HTML, JavaScript, etc.

Perhaps you need to understand more about what ASP.Net is, and what it does.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven
 
C

chrisgirl77

Thanks guys for the informations.. Well, am a newbie in ASP.NET..

what I meant was:

For eg:
http://msdn.microsoft.com/asp.net/learn/default.aspx

opens a window, on left is the list of all the items (which remains
constant), and on the right side pages change as per selection on left.

also the extention of the link is .aspx

I need to do something similiar.

Thanks again..
 
K

Kevin Spencer

That's not a frameset. That's a page with a navigation menu on the left.
When you click on a menu item, a new page with the same navigation menu on
the left opens. You would do it by creating a custom Control for the
navigation menu. As for doing something similar, and being a newbie to
ASP.Net, it's kind of like a newbie artist saying "I want to do something
similar to DaVinci's Last Supper." You'll have to work your way up to it.
There are no short cuts. Or, as Ringo Starr used to sing, "You've got to pay
your dues if you want to sing the blues, and you know, it don't come easy."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top