Ashx file: Request.QueryString and other problems ...

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

In an .ashx file I tried to use the following two code lines:

1 .Me.GetLocalResourceObject("MyImageImageUrl").ToString()

which gave me the error "GetLocalResourceObject is not a member
of News". News is my class.

2. Request.QueryString("Culture")

which gave me the error "Request is not declared".

Could you tell me how to solve this?

Thanks,

Miguel
 
shapper,
For #1, GetLocalResourceObject gets a page-level resource, and in an ashx
you do not have the Page class as in an ASPX page. For #2, you probably will
need to use HttpContext.Current.Request in order to gain access to the
current Request.
Peter
 
Back
Top