Showing posts with label menu. Show all posts
Showing posts with label menu. Show all posts

Saturday, March 31, 2012

Server side control that maintains viewstate for client-side javascript variables?

I have some client-side javascript for that I use for dhtml stuff such as
hiding div tags based on user menu selections, etc. I need a way to maintain
the state of javascript variables across postback. Are there any server side
controls that can be used as a container for client-side javascript
variables? If not, how do other developers approach this issue?

Thanks,

Keihtjust use hidden fields

-- bruce (sqlwork.com)

Keithb wrote:

Quote:

Originally Posted by

I have some client-side javascript for that I use for dhtml stuff such as
hiding div tags based on user menu selections, etc. I need a way to maintain
the state of javascript variables across postback. Are there any server side
controls that can be used as a container for client-side javascript
variables? If not, how do other developers approach this issue?
>
Thanks,
>
Keiht
>
>

server side menu problem

hi,
in my site there r 2 frames:
1.menu frame
2.application display
the menu is based on <A HREF=...> because I need to direct the pages to
the application display frame.now I need to cuach a session before I redirect
the page and <AHREF=...> is not build for that.I need un aspx control that has
the property "target" so Icould redirect the page to the write fame.
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?
how can I cuach the session without aspx control?Not clear what's the problem. When you navigate to another page from the
client, the session persists.

Eliyahu

"server side menu problem2" <server side menu
problem2@.discussions.microsoft.com> wrote in message
news:7FB9586D-9492-4F26-9585-AF9FEDB17E78@.microsoft.com...
> hi,
> in my site there r 2 frames:
> 1.menu frame
> 2.application display
> the menu is based on <A HREF=...> because I need to direct the pages to
> the application display frame.now I need to cuach a session before I
redirect
> the page and <AHREF=...> is not build for that.I need un aspx control that
has
> the property "target" so Icould redirect the page to the write fame.
> 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?
> how can I cuach the session without aspx control?

Thursday, March 29, 2012

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: ohadyn@dotnet.itags.org.bgumail.bgu.ac.ilOhad,
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" <ohadyn@.bgumail.bgu.ac.il> wrote in message
news:O4PqPK2XEHA.3044@.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: ohadyn@.bgumail.bgu.ac.il
>
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" <ohadyn@.bgumail.bgu.ac.il> wrote in message
news:O4PqPK2XEHA.3044@.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: ohadyn@.bgumail.bgu.ac.il
>
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...

server side menu problem

hi,
in my site there r 2 frames:
1.menu frame
2.application display
the menu is based on <A HREF=...> because I need to direct the pages to
the application display frame.now I need to cuach a session before I redirec
t
the page and <AHREF=...> is not build for that.I need un aspx control that h
as
the property "target" so Icould redirect the page to the write fame.
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?
how can I cuach the session without aspx control?Not clear what's the problem. When you navigate to another page from the
client, the session persists.
Eliyahu
"server side menu problem2" <server side menu
problem2@.discussions.microsoft.com> wrote in message
news:7FB9586D-9492-4F26-9585-AF9FEDB17E78@.microsoft.com...
> hi,
> in my site there r 2 frames:
> 1.menu frame
> 2.application display
> the menu is based on <A HREF=...> because I need to direct the pages to
> the application display frame.now I need to cuach a session before I
redirect
> the page and <AHREF=...> is not build for that.I need un aspx control that
has
> the property "target" so Icould redirect the page to the write fame.
> 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?
> how can I cuach the session without aspx control?
>

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: ohadyn@dotnet.itags.org.bgumail.bgu.ac.ilOhad,

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" <ohadyn@.bgumail.bgu.ac.il> wrote in message
news:O4PqPK2XEHA.3044@.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: ohadyn@.bgumail.bgu.ac.il
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" <ohadyn@.bgumail.bgu.ac.il> wrote in message
news:O4PqPK2XEHA.3044@.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: ohadyn@.bgumail.bgu.ac.il
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...