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

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top