locked
Handler and Httpcontext RRS feed

  • Question

  • User419789063 posted

    Hello,

     In the Personal starter kit, there is a handler that receives the httpcontext and reads the querystring passed values to display photos.

    Is it possible for the handler to read from controls stored on the page instead of pulling values from the querystring?

    i.e.-Can a control on the page store the photo id and the handler pull from that.

    Thank you

    Saturday, June 16, 2007 9:54 AM

Answers

All replies

  • User-590788913 posted

    Querystring is one way to handle it. There's no other viable solution given if you don't want to change your current design. Maybe you can create some kinda data store to retrieve from there instead of trying to access the web control.

    Saturday, June 16, 2007 12:36 PM
  • User419789063 posted

    Thanks for the reply. 

    Is there any way to pull a controls value from httpcontext information besides using querystring?

    It may be a dumb question. I'm not familiar with httpcontext.

    Thanks

    Saturday, June 16, 2007 12:50 PM
  • User-590788913 posted

    About using HttpContext, here's an article: http://aspnet.4guysfromrolla.com/articles/060904-1.aspx

    You can also try caching: http://www.sql-server-performance.com/jk_asp_caching_ii.asp

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, June 16, 2007 3:08 PM
  • User419789063 posted

    Thanks Jack! I will take a look.

    Saturday, June 16, 2007 8:51 PM