Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Control page flow in ASP.Net 1.0 and 2.0

Reply
Thread Tools

Control page flow in ASP.Net 1.0 and 2.0

 
 
Coleen
Guest
Posts: n/a
 
      08-31-2006
Hi All



I have a general question about controlling page follow and if there is a better way to do it than I am currently using in ASP.Net 1.0 - we are getting ready to move to 2.0, so if there's a better/easier way in 2.0 that's great.



What I'm doing is creating a Session variable for each page to identify that page when it is requested from a directory, I set the Session("page_name") for the page called and pass that to the next page until I need to call a different page and then change the page_name as needed.



I know that there has to be a better way to do this, and this leads to problems if the user wants to use the drop-down JavaScript menu instead of click on the Next buttons. I need a way to uniquely identify which page is called from where, and pass that ID depending on which page is called.



Any suggestions would be greatly appreciated, or if you can point me to where I can find good documentation on how to do this without using session variables, I would appreciate it. TIA,



Coleen



 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      08-31-2006
I'm not sure what is the exact problem. If this to have a convenient way to
get the current page, try Request.Path

--
Patrice

"Coleen" <> a écrit dans le message de news:
%...
Hi All



I have a general question about controlling page follow and if there is a
better way to do it than I am currently using in ASP.Net 1.0 - we are
getting ready to move to 2.0, so if there's a better/easier way in 2.0
that's great.



What I'm doing is creating a Session variable for each page to identify that
page when it is requested from a directory, I set the Session("page_name")
for the page called and pass that to the next page until I need to call a
different page and then change the page_name as needed.



I know that there has to be a better way to do this, and this leads to
problems if the user wants to use the drop-down JavaScript menu instead of
click on the Next buttons. I need a way to uniquely identify which page is
called from where, and pass that ID depending on which page is called.



Any suggestions would be greatly appreciated, or if you can point me to
where I can find good documentation on how to do this without using session
variables, I would appreciate it. TIA,



Coleen




 
Reply With Quote
 
 
 
 
Coleen
Guest
Posts: n/a
 
      08-31-2006
The problem is 1) using Session variables is resource consuming when you have to use lots of the (there are about 40 pages in this application) and every page has to have a page_name (ID); and 2) If the user tries to use the JavaScript dropdown menus instead of the Next button to navigate from page to page, the Session variable is not passed correctly causing a runtime error!



I need a way to pass the ID of a page (does a page automatically get some sort of ID in ASP.Net? I can't find any info on this in my reference books) and if it does, how can I pass that ID instead of using the session variable page_name that I have created?



What is Request.Path? Does it pass a page ID? Please let me know where I can find more info on this, and if it will do what I need...

Thanks!



Coleen




"Patrice" <> wrote in message news:%...
> I'm not sure what is the exact problem. If this to have a convenient way to
> get the current page, try Request.Path
>
> --
> Patrice
>
> "Coleen" <> a écrit dans le message de news:
> %...
> Hi All
>
>
>
> I have a general question about controlling page follow and if there is a
> better way to do it than I am currently using in ASP.Net 1.0 - we are
> getting ready to move to 2.0, so if there's a better/easier way in 2.0
> that's great.
>
>
>
> What I'm doing is creating a Session variable for each page to identify that
> page when it is requested from a directory, I set the Session("page_name")
> for the page called and pass that to the next page until I need to call a
> different page and then change the page_name as needed.
>
>
>
> I know that there has to be a better way to do this, and this leads to
> problems if the user wants to use the drop-down JavaScript menu instead of
> click on the Next buttons. I need a way to uniquely identify which page is
> called from where, and pass that ID depending on which page is called.
>
>
>
> Any suggestions would be greatly appreciated, or if you can point me to
> where I can find good documentation on how to do this without using session
> variables, I would appreciate it. TIA,
>
>
>
> Coleen
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query:difference between node flow and filter flow in java's I/O,system? Jack Dowson Java 0 05-07-2007 03:35 PM
question relates to block label and continue/break control flow Shawn Java 3 11-29-2006 09:31 PM
Flow control and multicast or broadcast traffic Rahan Cisco 0 08-07-2006 04:14 PM
Flow Control and traffic optimization Rahan Cisco 0 08-04-2006 04:04 PM
os.system and flow control Lad Python 3 10-15-2004 09:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57