passing the request object to the middle layer

  • Thread starter Thread starter Nalaka
  • Start date Start date
N

Nalaka

Hi,
From the "Default.aspx.cs" I call a "someCode.cs"......
What I need to do is have access to the "Request object" in this second
code.

in the aspx.cs I can access using Request....

Can I access "Request object" in the second file without passing it using a
parameter?

many thanks for any help......


Thanks
Nallaka
 
System.Web.HttpContext.Current.Request

This is a static call, so just use that entire line the same way you'd
normally use Request/Response/Server/etc
 
thanks...


RCS said:
System.Web.HttpContext.Current.Request

This is a static call, so just use that entire line the same way you'd
normally use Request/Response/Server/etc
 
If this is really in the middle layer, make sure you're not coupled to
the interface. Use a delegate.
 

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

Back
Top