Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C Sharp
Request.ServerVariables("HTTP_USER_AGENT")
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Moiseszaragoza
New Member
Join Date:
Feb 2007
Posts:
5
#1
Request.ServerVariables("HTTP_USER_AGENT")
Dec 23 '08, 04:43 PM
I am wondering what is the equivalent of
Request.ServerV ariables("HTTP_ USER_AGENT")
in C#?
Thanks
Curtis Rutland
Recognized Expert
Specialist
Join Date:
Apr 2008
Posts:
3264
#2
Dec 23 '08, 05:20 PM
That would be:
Code:
Request.ServerVariables["HTTP_USER_AGENT"];
C# uses square brackets [ ] for array indexes rather than the parenthesis ( ) that VB.NET uses.
But an easier way to do the same (in either language) is:
Code:
Request.UserAgent;
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment