In a .net 2.0 C# application I use the following code to detect the operating system platform:
string os_platform = System.Environment.OSVersion.Platform.ToString();<br/>
This returns "Win32NT".
The problem is that it returns "Win32NT" even when running on Windows Vista 64bit.
Is there any other method to know the correct platform (32 or 64bit)?
Note that it should also detect 64bit when run as 32bit app on Windows 64bit.
I am developing asp.net mvc web app with MongoDB as the data storage.
I want to know others opinion about what drivers to use.
Should I use C# drivers which is supported by community?
Or, should I go to use Javascript driver which is supported by Mongo. How stable is javascript driver?
Thanks in advanced..
Does anyone have an example of how to use MS Sync framework with .NET webservices? I have SQL Server 2008, which is exposing data to BlackBerry devices through webservices using regular web methods. Can I use the Sync Framework to expose data through Web Services and to save it back to the database?
I need to be able to make a program that looks through a mailbox of bounced messages, where the messages come back with the initial message in a .msg attachment, and open the .msg attachment for processing in ASP.NET 2.0. Is there any sort of code that might help in this? I've been looking at http://stackoverflow.com/questions/44383/reading-email-using-pop3-in-c as a starting point, but can't figure out how best to open the attachment from there, or if there's some easier way I'm missing.
I have seen demos of ComponentArt's and Telerik's toolsets.
I am interested mainly on finding a grid control, a tabstrip control, a menu control and a treeview control
Do you know any company besides the forementioned that offers ASP.NET MVC controls solutions?
Which one do you think is the best/most reliable?
Hi,
I'm working on an internal web app and I need to get a directory path from the user. I (obviously) can use the asp:FileUpload to get a file but I can't find anything to just get a directory path.
Is there any (preferably simple) way to have a directory-chooser dialog in asp.net? I haven't been able to find any solution on Google or SO yet...
Thanks
Looking for resources having objective technical details about application pools and .NET memory management, for the purpose of configuring many apps.
Many suggestions exist but I am specifically looking for reasons to back up any suggestions.
how to get varchar as byte[] data using DataReader in Ado.Net? We have tried the following code.
if (!objDataReader.IsDBNull(i))
{
long len = objDataReader.GetBytes(i, 0, null, 0, 0);
byte[] buffer = new byte[len];
objDataReader.GetBytes(i, 0, buffer, 0, (int)len);
}
But the above code gives the error ("Unable to cast object of type 'System.String' to type 'System.Byte[]'.")
hi folks,
Good morning!
I would like to ask some help from you guys on how do i do this problem. I'm using asp.net and my problem is on getting the list of filename inside the folder. Is there a function on this? I tried this on console apps there's a function like GetFileName. Hope somebody could help me on this.
Thank you so much.
Regards,
How can I detect if .Net 2.0 SP1 is installed from my installer msi, and abort the install if it is not present?
I know how to do this in code, but it seems cleaner do it in the vdproj. It feels more declarative.
I know that .NET assembly is self-descriptive because of the metadata. Now suppose I have a black-box assembly which I know nothing about. Could I find out the types contained in it and use their methods and pass arguments? How? Sampe code snippets will be deeply appreciated.
Many thanks.
Can we Get those Values which is in Session directly in asp.net MVC Views?
I have tried it in Controller it Works,I can easily get & set the Value,
But how to Get value directly from Session in Views?
Is there a library for .NET that does parenthesis or expression reduction and optimization?
Something that would take an expression such as (A & (((B) | (C)) | D))) and return
A & (B | C | D)
But also take (A & A) and return A
I have a scanned driver license file in bmp format,is it possible to read license information in vb.net.
Please help me,how to read drver license OCR details?
I have some old code in Javascript that interfaces to Java DWR. I'm looking to port the back-end to .NET/C# possibly, and I was just wondering if there was an equivalent AJAX framework that would work in the same manner as the DWR framework in Java.
I'm using Protobuf-net. Suppose I have a list of Gizmo objects serialized and that each gizmo object reference a Gazoo object. The Gazoo object might be the same object referred by several Gizmo objects.
How would deserialization work in this situation?
Would I get more than one copies of Gazoos for the same referred one in the gizmo objects?
What I would expect would be one copy of Gazoo for all the duplicates in the serialized data.
The .NET WebClient class is nice and all, but it doesn't parse the JavaScript in the page.
What I mean is, sometimes a page is forwarded to a different page via JavaScript, or sometimes DOM elements get added to the page via JavaScript with an onload event. I need to deal with both of these situations.
What can I do to deal with this? I'm using WPF if that matters.
Does anyone know of any tools for generating ASP.NET MVC CRUD User Interfaces (E.g. the controllers and views for Admin tools), given:
A set of model objects.
A set of repositories for retrieving those objects.
Thanks
Mathematically I suppose it's possible that even two random GUIDs generated using the built in method in the .NET framework are identical, but roughly how likely are they to clash if you generate hundreds or thousands?
If you generated one for every copy of Windows in the world, would they clash?
The reason I ask is because I have a program that creates a lot of objects, and destroys some too, and I am wondering about the likelihood of any of those objects (including the destroyed ones) having identical GUIDs.
Which control should i use?
I don't want the records to be displayed on the Windows Application list in the same way records displayed in database as this:
I want the records to be displayed statically and a user when right click a record, he/she gets Edit and Remove choices. Of course there has to be static headers at the top.
I hope my request is clear.
I'm using C#.NET - VS 2008
can we get the multiple values from a select tag through Ajax script in controller in asp.net MVC?
I Have tried for Single Value that I have done by .val Function..
But not for Multiple Values
Any suggestion Please Help