HttpContext.Current causing an error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fuhrer
    New Member
    • Dec 2006
    • 30

    HttpContext.Current causing an error

    Hi all,

    i'm having a serious problem when i' trying to use "HttpContext.Cur rent".
    What i' trying to do is to get a querystring value by:
    "HttpContext.Cur rent.Request.Qu eryString["..."]" (in my page base class)

    But i got this error:
    "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack"(please see attached image)

    What could be causing this problem???

    Thank you for your help
    Attached Files
  • semomaniz
    Recognized Expert New Member
    • Oct 2007
    • 210

    #2
    Please post your code.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Have you tried just:
      HttpContext.Cur rent.Request.Qu eryString.ToStr ing

      ?

      -Frinny

      Comment

      Working...