.net-3.5

Cloud Hosting options for ASP.NET 3.5 and SQL Server 2008

I would like to get a list of good cloud hosting companies and what is offered by each. I specifically would like to focus on companies that can handle ASP.NET 3.5 and SQL Server 2008. Hopefully their are more options out there, other than Mosso. :) Edit 1 GoDaddy has a great deal, check out my post below. ...

How to determine from within Java which .NET framework is installed

From within my Java program I want to determine which .NET Framework is installed on the system. What is the best (and easiest) way to do this? Answer Thanks scubabbl! It worked to check the directory System.getenv( "WINDIR" ) + "\\Microsoft.NET\\Framework" for its directories starting with the letter "v". ...

Targeting .NET Framework 3.5, Using .NET 2.0 Runtime. Caveats?

I'm developing an application that is targeting the .NET 3.5 Framework. The application's setup installs the .NET 2.0 runtime on the target machine. So far I haven't had any issues with doing this, but I'm wondering what problems I'm going to have down the line. Do I need to be installing the 3.5 runtime? I must package the .NET runtime...

Tools for finding unused references

Are there any good tools or tricks for determining if there are any referenced but unused dependencies (such as dlls) in a project? My specific case is C# .net3.5. ...

How to join int[] to a character separated string in .NET?

I have a array of integers: int [] number = new int[] { 2,3,6,7 }; What is the easiest way of converting these in to a single string where the number are separated by a character (like: "2,3,4,7")? I'm in C# and .NET 3.5. ...

How do you define a type in a Linq 2 SQL mapping?

I'm trying to do my linq 2 sql objects manually, so I have the following code: var mapping = XmlMappingSource.FromXml(xml); using (DataContext ctx = new DataContext(conn_string, mapping)) { list = ctx.GetTable<Achievement>().ToList(); } and the XML looks like this: <?xml version="1.0" encoding="utf-8" ?> <Database Name="FatFight...

Abstracting storage data structures within XPath

I have a collection of data stored in XDocuments and DataTables, and I'd like to address both as a single unified data space with XPath queries. So, for example, "/Root/Tables/Orders/FirstName" would fetch the value of the Firstname column in every row of the DataTable named "Orders". Is there a way to do this without copying all of th...

NHibernate ICriteria - Does the sort allow for null?

Using NHibernate ICriteria and adding .AddOrder ... I want to sort by a property that is sometimes null with all the populated ones at the top. Will .AddOrder allow me to do this? If not is there an alternative? The sorting options for ILists leave a lot to be desired. ...

How do I get the Local Network IP address of a computer programmatically? (C#)

I need to get the actual local network IP address of the computer (e.g. 192.168.0.220) from my program using C# and .NET 3.5. I can't just use 127.0.0.1 in this case. What's the best way to do this? ...

How do I setup remote debugging from scratch for an Asp.Net app

I would like to be able to step through an application deployed to a remote location which as yet has nothing bar version 3.5 of the .Net framework. What steps do I need to go through to achieve this and how long would you envisage this taking? ...

Keeping in sync with database

The solution we developed uses a database (sqlserver 2005) for persistence purposes, and thus, all updated data is saved to the database, instead of sent to the program. I have a front-end (desktop) that currently keeps polling the database for updates that may happen anytime on some critical data, and I am not really a fan of database ...

.NET Framework platform support tradition

From the first days the .NET framework came out there was a minimum OS support: .NET 1.0 - Windows NT or higher (Windows 98/ME are also supported) .NET 2.0 - Windows 2000 or higher (Windows 98/ME are also supported) .NET 3.0 - Windows XP or higher .NET 3.5 - Windows XP or higher This minimum OS support made possible to ignore platfor...

LINQ query with multiple aggregates

How would I create the equivalent Linq To Objects query? SELECT MIN(CASE WHEN p.type = "In" THEN p.PunchTime ELSE NULL END ) AS EarliestIn, MAX(CASE WHEN p.type = "Out" THEN p.PunchTime ELSE NULL END ) AS LatestOUt FROM Punches p ...

Can I split a string in c# VB6-style without referencing Microsoft.VisualBasic?

Unfortunately, there seems to be no string.Split(string separator), only string.Split(char speparator). I want to break up my string based on a multi-character separator, a la VB6. Is there an easy (that is, not by referencing Microsoft.VisualBasic or having to learn RegExes) way to do this in c#? EDIT: Using .NET Framework 3.5. ...

Exception thrown in a referenced .dll how do I debug?

I'm using watermark extenders on textboxes and an exception is being thrown from the AJAX Control Toolkit .dll. It's strange because this just started happening. I tried debugging from the Ajax solution and Ajax examples (but with my code), but no dice. Is there a way to step into the Ajax .dll from my solution to see where this is ...

How do you update an object with Linq 2 SQL without rowversion or timestamp?

I'm trying to take a POCO object and update it with Linq2SQL using an XML mapping file... This what what I have: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Business.Objects { public class AchievementType { public int Id { get; set; } public string Name { get; set; }...

Explain x => x.ToString() //simplify so many calls

In a question answer I find the following coding tip:- 2) simple lambdas with one parameter: x => x.ToString() //simplify so many calls As someone who has not yet used 3.0 I don't really understand this tip but it looks interesting so I would appreciate an expantion on how this simplifies calls with a few examples. I've researched l...

.NET 3.5 published in 11/07 .NET 3.0 in 11/06. Why are most people still using .NET 2.0?

People have been developing own solutions to the following problems: Consistent messaging frameworks for remote information exchange (webservices,rpc,...) SDK's for state managements for things such as Finite State Machines and Workflows Authentication Frameworks And much more. For over two years now, Microsoft offers .NET 3.0 whic...

What is the best free, Ajax.NET (System.Web.Extensions 3.5) compatible Rich Text Box control?

I'm looking for a good ASP.NET RichTextBox component that integrates fairly easily with .NET Framework 3.5 Ajax, specifically one that can easily provide its values from inside an UpdatePanel. I got burned by RicherComponents RichTextBox which still does not reference the Framework 3.5. thanks! ...

Doing a Cast Within a LINQ Query

Is it possible to do a cast within a LINQ query (for the compiler's sake)? The following code isn't terrible, but it would be nice to make it into one query: Content content = dataStore.RootControl as Controls.Content; List<TabSection> tabList = (from t in content.ChildControls selec...