Via C# Code-Behind files, how can I retrieve information about the client
computer viewing my pages. I'm looking to gather information such as:
Windows User Name
Computer IP Address
Computer Name
Current Web Page being viewed
Previous Page visited.
Are Cookies Enabled?
Current Browser
Browser Version
etc.
I know I can get some information using Simple Binding(?), such as
<%# Request.Browser.Browser %to get info about the browser, but I'm
looking for Windows and Machine specific information instead and via the
Code-Behind file.
I want to gather this information because I'm going to be logging this
information into a database to gather statistics on who is visiting my
web-site, what pages, how long, etc. I know there are Internet Hit Counters,
but I have had no luck finding something I can using internally on our
Intranet.
And, also, is there a simple way via Code-Behind files to identify each
control on my page, get it's name, it's type (asp:label, asp:textbox, etc)
and the value in the controls?
Thanks,
Greg 2 1315
On Oct 8, 9:36*am, Greg <AccessVBA...@newsgroups.nospamwrote:
Via C# Code-Behind files, how can I retrieve information about the client
computer viewing my pages. I'm looking to gather information such as:
Windows User Name
Computer IP Address
Computer Name
Current Web Page being viewed
Previous Page visited.
Are Cookies Enabled?
Current Browser
Browser Version
etc.
I know I can get some information using Simple Binding(?), such as
<%# Request.Browser.Browser %to get info about the browser, but I'm
looking for Windows and Machine specific information instead and via the
Code-Behind file.
I want to gather this information because I'm going to be logging this
information into a database to gather statistics on who is visiting my
web-site, what pages, how long, etc. I know there are Internet Hit Counters,
but I have had no luck finding something I can using internally on our
Intranet.
And, also, is there a simple way via Code-Behind files to identify each
control on my page, get it's name, it's type (asp:label, asp:textbox, etc)
and the value in the controls?
Thanks,
Greg
Some of them can be addressed through WindowsIdentity class
WindowsIdentity.GetCurrent().Name
please explore more on the same http://msdn.microsoft.com/en-us/libr...f1(VS.71).aspx may help
-Cnu
On Oct 8, 12:36*pm, Greg <AccessVBA...@newsgroups.nospamwrote:
Via C# Code-Behind files, how can I retrieve information about the client
computer viewing my pages. I'm looking to gather information such as:
Windows User Name
Computer IP Address
Computer Name
Current Web Page being viewed
Previous Page visited.
Are Cookies Enabled?
Current Browser
Browser Version
etc.
I know I can get some information using Simple Binding(?), such as
<%# Request.Browser.Browser %to get info about the browser, but I'm
looking for Windows and Machine specific information instead and via the
Code-Behind file.
I want to gather this information because I'm going to be logging this
information into a database to gather statistics on who is visiting my
web-site, what pages, how long, etc. I know there are Internet Hit Counters,
but I have had no luck finding something I can using internally on our
Intranet.
And, also, is there a simple way via Code-Behind files to identify each
control on my page, get it's name, it's type (asp:label, asp:textbox, etc)
and the value in the controls?
Thanks,
Greg
you can use request.browser and any other properties of request from
the code behind.
Also you have access to Request.Form[].
You can enemerat that and get all form variables with values.
also you can use getControl and create a recursive function to get all
controls on a page. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bob Everland |
last post by:
I have an application that is ISAPI and the only way to
secure it is through NT permissions. I need to have a way
to login to windows authentication so that when I get to
the ISAPI application no...
|
by: Christian McArdle |
last post by:
REQUEST FOR DISCUSSION (RFD)
unmoderated group comp.os.ms-windows.programmer.64bit
This is a formal Request For Discussion (RFD) to create
comp.os.ms-windows.programmer.64bit as an unmoderated...
|
by: ThunderMusic |
last post by:
Hi,
How can I get if the Windows running is a server version?
Is there a property somewhere that can tell me if the Windows version is a
server edition (including server, advanced server, web...
|
by: Phil Stanton |
last post by:
When designing a new form or report, the Default ForeColor is often
something like -2147483640 which is the colour of Windows text (possibly
black) and the default backColor is -2147483643...
|
by: RAJ |
last post by:
hi
plz tell me how to know "how window is going to close"...
i have to right code for X button of forms...
plz telll me
thanks
bye
|
by: Raed Sawalha |
last post by:
i have a windows form(Main) with listview, when click an item in listview i
open other window form (Sub) which generate the selected item from parent
window in as treeview items when click any item...
|
by: Rod Gill |
last post by:
Hi,
I have a form that when opened in the designer appears of the screen. The
form selector can't be dragged (or resized) and if I scroll right and down
to centralise it the form simply jumps...
|
by: Chris Paul |
last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows.
I've set this up countless times on BSD (piece of cake) but I'm trying
to do this on Windows now so that my developer can work...
|
by: AmberJain |
last post by:
Windows Autorun FAQs: Programs dealing with autoruns
Linked from the Original article- "Windows Autorun FAQs: Description".
Que: Can you list programs that help me to view/modify the autoruns...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
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,...
|
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$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
| |