DotNet Get User Operating System (HTTP_USER_AGENT)?

Mar 14, 2010

I'm looking at building an exhaustive function that returns a friendly name for the Users Operating System.

I think I have most of the Windows stuff down, but I'm not sure about Linux, OSX, and others.

Does anyone know where I can find an exhaustive list of HTTP_USER_AGENT's

'Gets the users operating system
Public Shared Function GetUserOS() As String
Dim strAgent As String = HttpContext.Current.Request.ServerVariables("HTTP_USER_AGENT")
'Windows OS's
If InStr(strAgent, "Windows NT 6.1") Then : Return "Windows 7"
ElseIf InStr(strAgent, "Windows NT 6.0") Then : Return "Windows Vista"
ElseIf InStr(strAgent, "Windows NT 5.2") Then : Return "Windows Server 2003"
ElseIf InStr(strAgent, "Windows NT 5.1") Then : Return "Windows XP"
ElseIf InStr(strAgent, "Windows NT 5.0") Then : Return "Windows 2000"
ElseIf InStr(strAgent, "Windows 98") Then : Return "Windows 98"
ElseIf InStr(strAgent, "Windows 95") Then : Return "Windows 95"
'Mac OS's
ElseIf InStr(strAgent, "Mac OS X") Then : Return "Mac OS X"
'Linux OS's
ElseIf InStr(strAgent, "Linux") Then : Return "Linux"
Else : Return "Unknown"
End If

End Function 'GetUserOS

I basically want to return better results for Mac OS and Linux OS's. It's better in my opinion to say OSX Snow Leopard or OSX Tiger rather than just Mac OS X.

View 1 Replies


Similar Messages:

SQL Bulk Insert And Operating System Error 3

May 14, 2010

I have two servers. One is a web server and one is a sql server. What I'm trying to do is as follows: User uploads a document to a web site. File is stored on a web server in a directory, verified that it's a certain type of file, and saved. When the user presses a submit button, the page is uploaded and the Onclick event triggers a sql bulk insert (not on the same web server.) That's it in a nutshell. The basics of this page are done. The file can be saved but for whatever reason, I'm getting a Operating system error code 3(The system cannot find the path specified.) I've modified the machine.config on the web server to impersonate another user. I've made sure that the directory in question can be reached from both servers (and it can.) I can open/edit/delete the file from the directory from both sides, but evidently that's not the issue.

View 2 Replies

Find Out Users Browser And Operating System?

Sep 29, 2010

Is there a way in ASP.Net to find out the browser and operating system of the user?

View 1 Replies

DataSource Controls :: Operating System Error Code 3?

May 7, 2010

I'm doing a bulk insert to a sql server and when I do so, the SQL server connection string I have is logged in as admin, but when I press the "submit" button I'm getting this error. The file that I'm trying to open is in a folder with admin read/write access and as I said the SQL connection string is for the admin account. Anyone have any idea what causes this?

View 1 Replies

Develop IVR System In Dotnet / Which Type Of  Hardware And Software We Need

Jan 6, 2010

I want to develop IVR System for my company application. Actually I just need to Receive the calls and the IVR system have to give the repose accroding to customer choice and send SMS to customer.I have idea about SMS but don't about IVR IVR system with ASP.NET .

My Query is that

1. Which type of hardware and software we need?

2. Can we implement IVR in our company or we need to tie-up with other service provider?

2. Any 3-part components require for this ?

3. From where can I get an exact idea on IVR system development in .NET !!

View 1 Replies

Access :: Error "Selected Collating Sequence Not Supported By The Operating System."?

Mar 2, 2011

here's hte problem I have.

I create a simple page inserting data to Microsoft access 2007. On my local computer, I have no problem inserting both arabic and english. but after i upload the app on production server. its not working.

heres' the error message "

Selected collating sequence not supported by the operating system.

After hours searching on google, alot ppl said its version issue, but I have english access 2007 installed on my computer and admin told me they have english access 2007 installed on the server too.

what else should i check?

View 4 Replies

Visual Studio :: Online Source Safe Control System For DotNET?

Dec 8, 2010

I am in need for a little advice and I hope you can guide me in the right direction.

View 3 Replies

Installation :: Need To Install Dotnet Framework 2.0 If Dotnet Framework 3.5 Is Already Installed?

Jan 6, 2011

I have two questions, could anybody please answer to those:1) Do I need to install Dotnet framework 2.0 if dotnet framework 3.5 is already installed on the same server?2) Also do I need to install "ASP.NET 2.0 AJAX Extensions 1.0" if higher version is installed on the same server?

View 8 Replies

Use DotNet OpenID Together With Membership?

Sep 13, 2010

I would like to know if is possible to use DotNet OpenID together with ASP.NET membership. Or other way or allow OpenId account in ASP.NET membership.

View 1 Replies

C# - What Should Layers In Dotnet Application

Apr 19, 2010

I am using layered architecture in dotnet (mostly I work on web projects). I am confuse what layers should I use ?

I have small idea that there should be the following layers.

user interface
customer types (custom entities)
business logic layer
data access layer

My purpose is sure quality of work and maximum re-usability of code.

some one suggested to add common types layer in it. Please guide me what should be layers ? and in each layer what part should go ?

View 5 Replies

Security :: Can Make Own SSL In Dotnet

Jun 4, 2010

can we make our own SSL or SSL macanism in SSL? Or please advice if there is any way that we can provide such security to web applicaiton without getting services from other companies ?

View 1 Replies

.net - Creating Websites Using Dotnet?

Dec 21, 2010

I am intend to create a web application and host it.But i want to develop something fresh in the internet world, buti feed the ideas are saturated for me though it is not.Any guys who have any idea can share with..[If u dont mind]Also refer me URL's that are already implemented with really good ideas.I tried but i was not creative enough to think something different :)

View 2 Replies

Multithreading In Dotnet Apps?

Sep 30, 2010

Multithreading in dotnet apps?

View 3 Replies

Create Web Chat With Dotnet Framework 3.5

Jan 19, 2010

I need to create chat application in asp.net.But I don't need to store chat messages in database. Only I retrieve user list from database. I have to create group chat also. I have to show list users but online user's image in green color offline user image in red color for differentiating people.

View 7 Replies

Convert Linq Code To Dotnet 2.0?

Mar 17, 2011

string pdfpath = Server.MapPath("images");
string imagepath = Server.MapPath("Images");
using (Stream inputPdfStream = new FileStream(pdfpath + "\NLI_Filled_out.pdf", FileMode.Open, FileAccess.Read, FileShare.Read))
using (Stream inputImageStream = new FileStream(imagepath + "\sign2.gif", FileMode.Open, FileAccess.Read, FileShare.Read))
using (Stream outputPdfStream = new FileStream(pdfpath + "\NLI_Filled_output.pdf", FileMode.Create, FileAccess.Write, FileShare.None))
{
var reader = new PdfReader(inputPdfStream);
var stamper = new PdfStamper(reader, outputPdfStream);
var pdfContentByte = stamper.GetOverContent(3);
iTextSharp.text.Image image = iTextSharp.text.Image.GetInstance(inputImageStream);
image.ScalePercent(24f);
image.SetAbsolutePosition(100, 130);
pdfContentByte.AddImage(image);
stamper.Close();
}

I have the above code in 3.5 using linq..i want to convert it into dotnet 2.0..

View 1 Replies

Web Forms :: Add New Admin Tab In Dotnet BlogEngine?

Jun 24, 2010

how i can add new admin tab in BlogEngine?and refer to sample page

View 2 Replies

Can Different Versions Of Dotnet Framework Co - Exist In Same Machine

Feb 8, 2010

can different versions of dotnet framework co-exist in a same machine ? will it have any impact while developing ? can we choose required framework within VS2005 IDE as and when needed?

View 7 Replies

Architecture :: What Is Component Based Development In Dotnet

Feb 19, 2010

1. Can you explain me what is component based development ? What I am already doing is using layers (user interface, custom types, data access layer and busines logic layer). For example for filling a drop down list with countries what I do is getting data from DAL using custom types in my BLL and BLL return a list of countries to user interface. Now in my opinion it is a plug-able component that I can use anywhere. Should it be called a component ?

2. What is a component a method ? or class or a assambly ?

3. Can components be like that (methods and assemblies) or they are services to embed ?

4. Actually I never have used services, if component can be in both ways (services & classes and assemblies) than what approach is better, should component be made in form of assemblies or services ?

5. Without being so technical any general rules on making re-usable components ?

View 2 Replies

Configuration :: How To Force Dotnet To Look For An Assembly In BIN Folder Instead Of GAC.

Dec 12, 2010

I had accidently moved a dll which sits in the BIN directory from my local machine to Production server. Later I realised that the same dll exists in the production server in it's GAC. Now I do not have ermissions to delete that dll from the bin directory on the production server. I am planning to use assemblybinding codebase and redirect attributes to make the application to search for the dll in the BIN directory instead of the in the GAC

I get the following error

The type 'myassembly' exists in both 'c:WINNTMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Filesdw82f12d83c45d61ceassemblydl3e45c2bc4�06e4169_8855cb01myassembly.DLL' and 'c:WINNTassemblyGAC_MSILmyassembly3.1.21.0__7780ffc6c71e90a4myassembly.dll

how I have use this assemblybinding attribute in Web.Config to point to the dll in the bin directory.

View 2 Replies

DataSource Controls :: Connect Database.mdf File With Dotnet?

Feb 16, 2010

I don't know how to connect datbase.mdf file with dotnet.

View 2 Replies

Databases :: Convert Totalseconds To Hh:mm:ss By Converting It With Timespan Function Of Dotnet?

Nov 16, 2010

I have a column as totalsecond in my database i take a avg of tht totalsecond column for the particular parameter and condition and when i come on my aspx page i show that data as hh:mm:ss by converting it with timespan function of dotnet and show this in datagrid but while doing this calculation in DataGrid_ItemDataBind it take so much time and the user have to wait for long time for the result after clicking button show when there is large amount of data.

How can i reduce the time of waiting for the user with some coding logic that speed up the calculation time.

View 4 Replies

Web Forms :: Clear IE Browser Pagesetup - Header And Footer Using 1.1 Dotnet Framework

Aug 16, 2010

I like to clear the IE Pagesetup--> header and footer using Asp.net 1.1 , I have tried in 2.0 Dotnet it works fine it is not working in 1.1 and its urgent too this is the code i tried ...........

public void IESetupFooter()

View 2 Replies

Forms Data Controls :: GridView1_RowDataBound - Not Firing / Upgrade To DOTNET V4 With Appropriate AJAX Dll's

Jun 24, 2010

My aspx page contains "OnRowDataBound="GridView1_RowDataBound"" call, which I'm trying to call when I move my mouseover a databound row. Thus changing the background colour of the row.

When I move my mouse over the row it seems to bypass the OnRowDataBound call and proceed directly to the "mouseover" function which proceeds to error as the "(row.style.background == row.basecolor)" is undefined.

This has previously worked under older versions of AJAX and DOTNET. I've upgraded to DOTNET v4 with appropriate AJAX dll's.

View 4 Replies

Shutdown User System When Open Any Name?

Mar 19, 2010

turn off user system when he open the anyname.aspx page in browser or power off the moniter or stop (off )the cpu fan or controling speed of fan... or something like this?

View 12 Replies

Need The System To Be Able To Let The User Choose The Time Of Email?

Feb 25, 2010

I'm only a novice asp.net developer and have never done this before. I have a developer working on a new web application for me. Part of the application allows the user to select a time when they receive an email, containing information collected throughout the day. The user can select a time, e.g. 5pm, then at 5pm every day they receive an automated email of information from the system. They can log in to their control panel and change this time.My developer says there is only two ways to schedule this batch, but it's not possible to let the user select a time. They have suggested:

a) Using a console application that will trigger the event everyday and send the batch update
b) Using a Windows Service that will deploy on your server and do the operation.


I really need the system to be able to let the user choose the time of their email. I hoped this would be possible with ASP.NET. Is it? If so, how?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved