Questions tagged [.net-3.5]

The 3.5 version of the .NET Framework, which is based on the 2.0 .NET Framework with extra assemblies (including 3.0). Use for questions specifically related to .NET Framework 3.0. For questions on .NET Framework generally, use the .net tag.

The 3.5 version of the Microsoft .NET Framework, which is based on the 2.0 .NET Framework. In addition, it installs .NET Framework 2.0 SP1, (installs .NET Framework 2.0 SP2 with 3.5 SP1) and .NET Framework 3.0 SP1 (installs .NET Framework 3.0 SP2 with 3.5 SP1).

What's New in .NET Framework 3.5
.NET Framework 3.5 System Requirements

Released by Microsoft Corporation
Version Number: 3.5.21022.8
Release Date: 2007-11-19

5938 questions
3
votes
4 answers

Array to List -- Cannot make AddRange(IEnumerable) work

I'm sorry about the naive question. I have the following: public Array Values { get; set; } public List CategoriesToList() { List vals = new List(); vals.AddRange(this.Values); return vals; } But this won't…
Dervin Thunk
  • 19,515
  • 28
  • 127
  • 217
3
votes
3 answers

Strange compiler behaviour - optional parameter

In my project some developer added method that has optional parameter in parameters list: public static string GeneratetPopupCall(string pageName,bool withEscapeChar = false) I know that optional parameters are part of C# 4.0. But our project is…
Marek Kwiendacz
  • 9,524
  • 14
  • 48
  • 72
3
votes
2 answers

How to go from a full SQL querying to something like a NoSQL?

In one of my process I have this SQL query that take 10-20% of the total execution time. This SQL query does a filter on my Database, and load a list of PricingGrid object. So I want to improve these performance. So far I guessed 2 solutions : Use a…
remi bourgarel
  • 9,231
  • 4
  • 40
  • 73
3
votes
4 answers

Generate Media RSS (MRSS) feed in ASP.NET 3.5

IN .NET 3.5 I know of the System.ServiceModel.Syndication classes which can create Atom 1.0 and RSS 2.0 rss feeds. Does anyone know of a way to easily generate yahoo's Media RSS in ASP.Net? I am looking for a free and fast way to generate an MRSS…
chrisg
  • 523
  • 3
  • 11
3
votes
1 answer

Configuring Entity Framework on a Database Undefined Foreign Key Relationships

For a variety of reasons the database that I'm working on (SQL Server 2005) doesn't have any relationships defined. Every table has a primary key. And most tables have at least one foreign key, however we've never configured the constraints. Can…
3
votes
1 answer

How to use ILMerge with SQL Server 2005 CLR assemblies plus an XmlSerializer

I have four assemblies (plus the .NET 3.5 system.core) that I am installing as unsafe CLR assemblies in a SQL Server 2005 database. Installing the assemblies in the correct order (based on their dependencies) works fine, and I am able to use the…
Andrew
  • 14,325
  • 4
  • 43
  • 64
3
votes
2 answers

How to render a data table with multiple rowspan columns with ListView

I need to display data from a database in a html table. I am currently using a ListView control. I want the final HTML table to render something like the following, where some rows have a rowspan attribute greater than one. The reason for this is…
Flash
  • 15,945
  • 13
  • 70
  • 98
3
votes
1 answer

How can I put WebBrowser display behind my control?

I am trying to make a menu on top of WebBrowser control, so when user select it, it will tell the WebBrowser to go centain page. So I did something like:
King Chan
  • 4,212
  • 10
  • 46
  • 78
3
votes
3 answers

Which one is performance wise to clear a string builder?

Q : Which one is performance wise : to clear a string builder AStringBuilder.Remove(0,AStringBuilder.Length); string theString = AStringBuilder.ToString(); ABuilder.Replace(theString,String.Empty); AStringBuilder.Length = 0; Note : I use…
Anyname Donotcare
  • 11,113
  • 66
  • 219
  • 392
3
votes
2 answers

Encrypt data prior to Serialization

I am trying to encrypt data that a serializable (xml) class contains. Here is a simple example: [XmlRootAttribute("FooClass")] public class FooClass { private string _personalData; public PersonalData { set { _personalData =…
Odys
  • 8,951
  • 10
  • 69
  • 111
3
votes
3 answers

How to specify a range of RGB values in C#

On a form I have a PictureBox, a button to load image in the picturebox and couple of more buttons to do some operations on the image loaded into the picturebox. I load a bitmap image into the picturebox and then I want to perform some operation on…
3
votes
2 answers

C# way to implement vertical auto-hiding tool bar

What I'm attempting to create is very similar to the "Toolbox" in VS 2008 and VS 2010. It will be on the left side of my MDI parent, and will pop out when the user hovers their mouse over it. Again, this is just like the VS Toolbox. My question is…
CODe
  • 2,253
  • 6
  • 36
  • 65
3
votes
3 answers

Will a VS2008 setup project update Net 3.5 SP1?

I just started using the WPF WebBrowser that is included in Net 3.5 SP1. I built my setup project (which I have been using prior to moving to 3.5 SP1) and installed it on a test machine but the WebBrowser was not available. What must I do to be…
Charley Rathkopf
  • 4,720
  • 7
  • 38
  • 57
3
votes
2 answers

How to interrupt a running thread and make it run another method?

I'm using .Net 3.5 (C#) and I have a class with Start and Stop methods. I'm using BackgroundWorker.DoWork in order to call the Start method from another thread. I want to be able to send a command from my main thread to that thread (the one running…
menacheb
  • 475
  • 1
  • 6
  • 17
3
votes
3 answers

How to get SQL query into LINQ form in C# code

How can I convert the following SQL queries into LINQ query form in C#, .NET 3.5 code: 1) select COUNT(distinct Skill_Name) from Table1 where Department = 'ABC' and Skill_Name is not null 2) select distinct location, country from Customer…
venkat
  • 5,648
  • 16
  • 58
  • 83