473,503 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

passing the request object to the middle layer

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
Dec 9 '05 #1
4 1169
RCS
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

"Nalaka" <na******@nospam.nospam> wrote in message
news:ed*************@TK2MSFTNGP09.phx.gbl...
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

Dec 9 '05 #2
thanks...
"RCS" <rs****@gmail.com> wrote in message
news:%x**************@newssvr30.news.prodigy.com.. .
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

"Nalaka" <na******@nospam.nospam> wrote in message
news:ed*************@TK2MSFTNGP09.phx.gbl...
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


Dec 9 '05 #3
If this is really in the middle layer, make sure you're not coupled to
the interface. Use a delegate.

Dec 10 '05 #4
hi...
No, not really the middle layer... still front-end... but separate code.

<ag******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
If this is really in the middle layer, make sure you're not coupled to
the interface. Use a delegate.

Dec 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9815
by: Catherine Lynn Smith | last post by:
I am creating a webpage with dhtml <DIV> layers and I want a link on one layer to modify the content on another but I seem to keep running into errors. Basically I create a layer in the middle...
11
3159
by: Arsen Vladimirskiy | last post by:
Hello, If I have a few simple classes to represent Entities such as Customers and Orders. What is the proper way to pass information to the Data Access Layer? 1) Pass the actual ENTITY to...
25
5024
by: Stuart Hilditch | last post by:
Hi all, I am hoping that someone with some experience developing nTier apps can give me some advice here. I am writing an nTier web app that began with a Data Access Layer (DAL), Business...
3
2670
by: Marc Castrechini | last post by:
First off this is a great reference for passing data between the Data Access and Business Layers:...
22
25548
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
7
1473
by: Brett Romero | last post by:
I'd like to copy a object1 into object2 so object2 can be manipulated. Object1 is coming form the middle layer into the UI layer. I'd like to rename a field in Object2 from "somethingID" to just...
46
10369
by: ahmed.maryam | last post by:
Hi all, I have 2 C# applications that I need to pass data between. Specifically XML information such as a document or node name. How can I do that? Thanks in advance! ~ Maryam
8
1743
by: Charles Law | last post by:
This is a sort of pattern question, but relating to how components are coupled in a three-tier system. I have a presentation layer, business layer and data access layer, the first is the EXE,...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.