Just keep in mind that a Session variable exists only at the server, in your
codebehind code. You can choose to put this value into the page, in a label,
or even a hidden formfield, so that you can get at it via HttpWebRequest or
XMLHTTP "Webscraping". However, unless your GET url contains name/value pairs
on the querystring, or your POST method contains formfields and the page is
wired up to retrieve these and store them in session state, that's about it.
Usually, there are other ways to accomplish what you want to do.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"(E-Mail Removed)" wrote:
> Thanks.Just to close the case in a lot of cases you want to extract
> existing pieces of HTML code that reside in different pages and do not
> want to recreate or modify them. A good example is a shopping cart
> where the state of the cart depends on several Session Variables like
> CustomerID, Language, Locale, etc. And each page is built dynamically
> based on these values. According to your post that means I can't use
> HttpRequest unless I modify the whole shopping cart structure to
> support post and Querystrings?
>
> Rod
>
>