473,503 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Module in Project

I have a module in my asp.net application. How can I access the
Request.Servervariables collection from within this module?

Thanks,

Jason MacKenzie
Nov 18 '05 #1
2 1160
System.Web.HttpContext.Current.Request

note that HttpContext.Current might be null if this isn't a web application
so you might wanna check for that

HttpContext current = System.Web.HttpContext.Current;
if (current != null){
//you can access current.Request safely
}

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Jason MacKenzie" <jm**********************@formet.com> wrote in message
news:Oe**************@TK2MSFTNGP09.phx.gbl...
I have a module in my asp.net application. How can I access the
Request.Servervariables collection from within this module?

Thanks,

Jason MacKenzie

Nov 18 '05 #2
Thank you sir.

"Karl" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in
message news:eV**************@TK2MSFTNGP15.phx.gbl...
System.Web.HttpContext.Current.Request

note that HttpContext.Current might be null if this isn't a web
application
so you might wanna check for that

HttpContext current = System.Web.HttpContext.Current;
if (current != null){
//you can access current.Request safely
}

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Jason MacKenzie" <jm**********************@formet.com> wrote in message
news:Oe**************@TK2MSFTNGP09.phx.gbl...
I have a module in my asp.net application. How can I access the
Request.Servervariables collection from within this module?

Thanks,

Jason MacKenzie


Nov 18 '05 #3

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

Similar topics

0
2719
by: F. GEIGER | last post by:
py2exe and datetime -> No module named datetime I've begun to use the stdlib module datetime instead of my home brewn classes. Since then a py2exe app doesn't run anymore: Traceback (most...
2
2567
by: | last post by:
Hi, This does sound like a bit of a weird thing to ask so I will state my question and then further down explain why I am trying to do it. So if you have the answer then reply! Or if you...
2
2742
by: Mythran | last post by:
I'm trying to add a module template to a project programmatically. I've tried many documented (w/o examples) ways of doing it to no avail. For example, I tried using...
4
1593
by: Ron | last post by:
Hello, I have added a Namespace to my vb.net project. The namespace is the name of the project. Then I start the project from Sub Main Module1 Sub Main() Application.Run(New MyProj.Form1)...
7
1061
by: Just Me | last post by:
I have a project that contains a usercontrol, some forms and a module. The only thing in the module is one variable that is there so that it can be used by the control and all the forms. ...
10
5470
by: Bonzol | last post by:
vb.net Hey there, could someone just tell me what the differnce is between classes and modules and when each one would be used compared to the other? Any help would be great Thanx in...
6
4002
by: JonathanOrlev | last post by:
Hello everyone, I have a newbe question: In Access (2003) VBA, what is the difference between a Module and a Class Module in the VBA development environment? If I remember correctly, new...
1
1723
by: Thammarat charoenchai. | last post by:
Are visual basic have something like Data Module in Delphi? that i can drop component to data module and can call to use that component any where in project Thanks you very much.
3
1212
by: RP | last post by:
I have a module written using VB 2005 which contains many ready to use functions. For some specific reasons, I cannot make it a DLL. Can I integrate this module in my C# project? If yes, how.
6
2243
by: dudeja.rajat | last post by:
Hi, I found on the net that there is something called module initialization. Unfortunately, there is not much information for this. However, small the information I found module initialization...
0
7202
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,...
1
6991
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
7458
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
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
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.