473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ASP.NET / windows client switch ?

How can I programatically determine (from some common library code) whether
the running environment is ASP.NET webforms or windows client ?
Nov 18 '05 #1
3 954
By passing a parameter to your code to say which one you
are using?

-----Original Message-----
How can I programatically determine (from some common library code) whetherthe running environment is ASP.NET webforms or windows client ?

.

Nov 18 '05 #2
Well obviusly yes, I can do, but I was hoping there would be some
environment flag that would enable me to just detect it - better design I
thought.

"Jon Paugh" <an*******@discussions.microsoft.com> wrote in message
news:05****************************@phx.gbl...
By passing a parameter to your code to say which one you
are using?

-----Original Message-----
How can I programatically determine (from some common

library code) whether
the running environment is ASP.NET webforms or windows

client ?


.

Nov 18 '05 #3
Hi Jeremy,

Your framework (Library Code) should be designed in a way that it wouldn't
make a difference where it's run.

What you could do is create a class in the Environment namespace with a
static method/member that is set at runtime by your application. But, I
don't think that's good design either.

Alex Papadimoulis

"Jeremy" <je*************@blueyonder.co.yk> wrote in message
news:O3**************@tk2msftngp13.phx.gbl...
Well obviusly yes, I can do, but I was hoping there would be some
environment flag that would enable me to just detect it - better design I
thought.

"Jon Paugh" <an*******@discussions.microsoft.com> wrote in message
news:05****************************@phx.gbl...
By passing a parameter to your code to say which one you
are using?

-----Original Message-----
How can I programatically determine (from some common

library code) whether
the running environment is ASP.NET webforms or windows

client ?


.


Nov 18 '05 #4

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

Similar topics

6
by: alanknipmeyer | last post by:
Hi, I`m in the process of migrating a Access 2002 (Run in 2000 mode) from Windows 98 to Win2K Server. It is a shared resource via a file share on the 98 Server. Client systems are Win98 with the...
7
by: lvpaul | last post by:
Hallo ! I am using IIS-Windows-Authentication in my intranet (web.config <authentication mode="Windows" /> <identity impersonate="true" /> How can I get the users (client) IP-Address ? I...
4
by: hzgt9b | last post by:
Using VS 2003, VB.NET and/or ASP.NET 2.0, BACKGROUND I have a window forms based application that contains a TreeView control and a WebBroswer (AxSHDocVw.AxWebBrowser) control. The TreeView is...
3
by: SA | last post by:
Hi, In my ASP.NET application I am using client IP, I was using "Request.ServerVariables" to get client IP. Now I moved my servers to under Cisco content switch for load balancing. Now...
18
zybernau
by: zybernau | last post by:
hi, here is my scenario i am having a array variable in javascript which contains data. while refreshing or postback these varibles got lost and i did'nt able to get those data in the variables...
8
by: jonmundsack | last post by:
I have an intranet site on my LAN which has "anonymous access" turned OFF, and "integrated Windows authentication" turned on. This allows me to access the "AUTH_USER" server variable, which I use...
3
by: Matt Lowrance | last post by:
I'm hoping someone can give me a little guidance. I have written a simple Windows Service that goes out and scrapes a few web pages and updates some data in an access database. The service works...
2
by: vhcp2006 | last post by:
Hi All, In my ASP.NET application I am using client IP, I was using "Request.ServerVariables" to get client IP. But my servers to under Cisco content switch for load balancing. Now...
20
by: macca | last post by:
Hi, I just started a new web developer job (my first actually) and the machine they gave me to use is a Mac. Two days in and I'm running a Win XP environment on my Mac at work (using VMWare), ...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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,...

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.