467,905 Members | 1,863 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,905 developers. It's quick & easy.

Server side menu problem

Hi,

I have a frameset page that contains two frames:
1. the first frame, an aspx page, contains a menu for navigating in the
website.
2. the second frame contains content, pdf, html or other aspx files
The problem is that the menu activates a server-side methods when the user
clicks on one of the menu items.
However, from the server side I cannot control in which frame the content
will appears, it will always be in the menu frame itself.
So, how can I control from a server side function the frame to display the
content?
Is it even possible?
If not, how to avoid it without using client-based menus?

Thanks, Ohad

--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: oh****@bgumail.bgu.ac.il
Nov 18 '05 #1
  • viewed: 1511
Share:
3 Replies
Ohad,

How does your server-side menu navigate to another page? In other words,
when you click on a menu item, what component originates postback? This
component should have property "target" where you can specify the frame
name.

Eliyahu

"Ohad Young" <oh****@bgumail.bgu.ac.il> wrote in message
news:O4**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have a frameset page that contains two frames:
1. the first frame, an aspx page, contains a menu for navigating in the
website.
2. the second frame contains content, pdf, html or other aspx files
The problem is that the menu activates a server-side methods when the user
clicks on one of the menu items.
However, from the server side I cannot control in which frame the content
will appears, it will always be in the menu frame itself.
So, how can I control from a server side function the frame to display the
content?
Is it even possible?
If not, how to avoid it without using client-based menus?

Thanks, Ohad

--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: oh****@bgumail.bgu.ac.il

Nov 18 '05 #2
Frames, by their nature, are client side objects.

What is your reasoning for wanting navigation to occur on the server? Which
controls are you using in the menu? If I'm following that correctly then
this architecture doesn't make sense to me since navigation itself is also
really a client side operation in that the client requests the page to
navigate to and the server merely provides it back to the client.

If you're doing some type of processing then calling Response.Redirect() or
Server.Transfer(), couldn't you create a redirection page that performs the
appropriate processing then redirects and link to the redirection page? If
you're not doing any processing other than a redirect you should just link
directly to the desired file. In either case, just set the target attribute
to the appropriate frame.

You could probably also get away with setting the target attribute of the
form to the desired frame...

If you're still against using a client based mechanism, then your option
becomes convert the menu to a WebControl and ditch the frames.

Anything you can do to reduce the number of round trips to the server will
improve your application's performance. Doing a postback then
Response.Redirect() results in two round trips. Requesting a redirection
page and calling Response.Redirect results in two round trips. Linking to
the page directly or using Server.Transfer() results in one round trip.

"Ohad Young" <oh****@bgumail.bgu.ac.il> wrote in message
news:O4**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have a frameset page that contains two frames:
1. the first frame, an aspx page, contains a menu for navigating in the
website.
2. the second frame contains content, pdf, html or other aspx files
The problem is that the menu activates a server-side methods when the user
clicks on one of the menu items.
However, from the server side I cannot control in which frame the content
will appears, it will always be in the menu frame itself.
So, how can I control from a server side function the frame to display the
content?
Is it even possible?
If not, how to avoid it without using client-based menus?

Thanks, Ohad

--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: oh****@bgumail.bgu.ac.il

Nov 18 '05 #3
hi ohad, did you find the answer?
i have the same problem as well.
10x, alon.

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by HarveyB | last post: by
4 posts views Thread by Curt Emich | last post: by
1 post views Thread by Dan Brussee | last post: by
1 post views Thread by server side menu problem2 | last post: by
6 posts views Thread by Dave | last post: by
2 posts views Thread by Mike Dobson | last post: by
6 posts views Thread by SlashDrew | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.