.net-3.5

How do I install and use the ASP.NET AJAX Control Toolkit in my .NET 3.5 web applications?

How do I get it to work with my project? http://ajax.asp.net/ http://www.codeplex.com/AjaxControlToolkit/ ...

Autocomplete Dropdown with Linkbuttons - or "AJAX gone wild"

Ok, so I want an autocomplete dropdown with linkbuttons as selections. So, the user puts the cursor in the "text box" and is greated with a list of options. They can either start typing to narrow down the list, or select one of the options on the list. As soon as they click (or press enter) the dataset this is linked to will be filtered ...

How are partial methods used in C# 3.0?

I have read about partial methods in the latest C# language specification, so I understand the principles, but I'm wondering how people are actually using them. Is there a particular design pattern that benefits from partial methods? ...

Where to start with Entity Framework

Anyone know a good book or post about how to start in EF? I have seen the DnrTV any other place? ...

IList.Cast<typeof(T)>() returns error, syntax looks ok

public static IList<T> LoadObjectListAll<T>() { ISession session = CheckForExistingSession(); var cfg = new NHibernate.Cfg.Configuration().Configure(); var returnList = session.CreateCriteria(typeof(T)); var list = returnList.List(); var castList = list.Cast<typeof(T)>(); return castList; } So, I'm getting a bui...

What happened to to the .Net Framework Configuration tool?

Older versions of the .Net Framework used to install "Microsoft .NET Framework v1.0 / v1.1 / v2.0 Configuration" in the Control Panel, under Administrative Tools. I just noticed that there isn't a v3.0 or v3.5 version of this. Is this functionality now hiding somewhere else, or do I have to use the command-line tools instead? ...

C# .Net 3.5 Code to replace a file extension using LINQ

I've written this very simple function to replace a file extension using LINQ in C#.NET 3.5 however I have a feeling that there's a more elegant way to do this. (I'm not committed to using LINQ here - just looking for a more elegant approach.) Ideas? private string ReplaceFileExtension(string fileName, string newExtension) { ...

How to parse a string into a nullable int in C# (.NET 3.5)

I'm wanting to parse a string into a nullable int in C#. ie. I want to get back either the int value of the string or null if it can't be parsed. I was kind of hoping that this would work int? val = stringVal as int?; But that won't work, so the way I'm doing it now is I've written this extension method public static int? ParseNull...

How to do Streaming read of a large XML file in C# 3.5 ...

How can you do a streaming read on a large XML file that contains a xs:sequence just bellow root element, without loading the whole file into a XDocument instance in memory. ...

I need help with a MenuStrip Error

My users are having an intermittent error when using a Windows Forms application built in VB.NET 3.5. Apparently when they click on the form and the form re-paints, a red 'X' will be painted over the MenuStrip control and the app will crash with the following error. Has anyone seen this before? Can someone point me in the right direction...

.Net 3.5, most secure way to pass string between processes

I'd like to be able to pass a SecureString (a cached passphrase) to a child process in C# (.Net 3.5), but I don't know what the most secure way is to do it. If I were to convert the SecureString back to a regular string and pass it as a command-line argument, for example, then I think the value may be prone to disk paging--which would ma...

What are some good LINQ resources?

I have just finished reading "LINQ in Action" which I have found to be a great resource. What are some other resources available? ...

.Net 3.5 silent installer?

Is there a redistributable .Net 3.5 installation package that is a silent installer? Or alternatively, is there a switch that can be passed to the main redistributable .Net 3.5 installer to make it silent? ...

Targeting with VS 2008 after installing SP1 of .NET 3.5

How do I target .NET 3.5 alone after installing SP1 in VS2008? This is because VS 2008 lists only .NET 3.5, .NET 3.0 & .NET 2.0 and does not specifically show .NET 3.5 SP1. ...

linq - how do you do a query for items in one query source that are not in another one?

If I have 2 query sources how do I find ones that are in one that are not in the other? example of join to find items in both: var results = from item1 in qs1.Items join item2 in qs2 on item1.field1 equals item2.field2 select item1; So what would the linq code be to return the items in qs1 that are not in qs2? ...

Wait until file is unlocked in .Net

What's the simplest way of blocking a thread until a file has been unlocked and is accessible for reading and renaming? EG: Is there a WaitOnFile() somewhere in the framework? I have a service that uses a FileSystemWatcher to look for files that are to be transmitted to an FTP site, but the File Created event fires before the other proc...

ASP.NET 3.5 Without Microsoft SQL Server - What do I lose?

I was just assigned to do a CMS using ASP.net 3.5 and MySQL. I am kind of new to ASP.NET development (quite sufficient with C#) and I am wondering what major ASP.NET and general .NET features I am losing when I don't have the option to use Microsoft SQL Server. I know already from quick Googling that I lose LINQ (and I was really lookin...

What is the Best Way to Populate a Menu Control on a Master Page

Database? Page variables? Enum????? looking for opionions here. ...

How to implement Repository pattern withe LinqToEntities?

How to implement Repository pattern withe LinqToEntities how to implement the interface ...

UI Thread Safety

Any suggestions on the best way to ensure thread safety when changing the properties on Form controls? I have been using Me.Invoke in the past, and I was wondering if you have pros/cons, comments, suggestions, etc. ...