.net-3.0

Calling a vb linkbutton’s(within a user control) click event from javascript

how can i call a VB function - deleteevent() in usercontrol.ascx.vb from a javascript function in clickhandler(e) in usercontrol.ascx. The call should cause a postback because i need the usercontrol to display the changes. i am currently trying to do it by using a linkbutton with style display:none, and calling its click event from the ...

Replace a collection item using Linq

How do I find and replace a property using Linq in this specific scenario below: public interface IPropertyBag { } public class PropertyBag : IPropertyBag { public Property[] Properties { get; set; } public Property this[string name] { get { return Properties.Where((e) => e.Name == name).Single(); } //TODO...

.NET 3.5 vs. .NET 3.0

I want to write a program in WPF but not sure should I target .net35 or .net30. The advantages of .net35 are obvious. But still, I see one major advantage of .net30 -- it's built into Vista, so, the people using Windows Vista will not have to download and install the framework. Do you think the advantages of .net35 outweigh the hassle o...

Differences between .NET 3.0 & 3.5?

What are the major differences between the .NET 3.0 & 3.5 frameworks? ...

Unable to call a WCF service directly (.NET 3.0)

I'm working with WCF (VS2005, .Net 3.0) and want to test out a service by directly calling it via a web browser instead of from code. I have one method decorated with the OperationContract attribute call GetTest(). I have the service behind a .svc file that I can access; however, when I go .../Test.svc/GetTest, only a blank screen come...

Is it even possible to do a JSON call in WCF (.NET 3.0)?

Looking over the web, I am finding no answer to this question. I see it being asked and a lot of people being referred to .Net 3.5; however, I am not seeing anything resembling an answer with in the restricted environment of WCF 3.0 (VS2005). Is it possible for me to do an AJAX/JSON call to a WCF 3.0 Web Service or is the only option t...

Does the .NET 3.0 SP1 installer also install .NET 2.0 and 3.0?

.NET 3.0 "wraps" .NET 2.0 so if I'm starting out with a clean Windows Server 2003 environment, will the .NET 3.0 SP1 installer also install .NET 2.0 and 3.0? What about .NET 2.0 SP1? Assume I don't want to install .NET 3.5 SP1 just yet. ...

ironpython installation problem

.net 3.0 is installed, but ironpython is still showing '.net 2.0 sp1 is required or later' ...

Download file from web to local file with progress meter in C#

I have a small app that downloads some files from a remote (HTTP) server to the users local hard drive, some of the files are large, but I don't know just how large at run time. Is there any method that will allow me download a file with some type of progress meter? This is a WinForms app, right now I'm using WebClient.DownloadFile() t...

ASP.NET 2.0 Website uses .NET framework 3.0 DLL

We are developing ASP.NET site in VS.NET 2005. This site is will be hosted on server which has .NET 3.0 installed and in IIS, ASP.NET 2.0 would be selected under ASP.NET tab. We would use external DLL which is being developed in VS.NET 2008 with .NET 3.0 as taraget framework. Here they are using .NET 3.0 / C# 3.0 features such as Lamda ...

how many people have .net framework 3.5 installed?

I am building a .NET application and considering deploying it through XBAP. This requires that the users have .NET 3.0 - 3.5 installed on their machine. Are there any kind of estimates of how many people have this? As a developer it's really hard to estimate. Any thoughts? ...

Does WCF require configuration to handle different methods of authentication?

A WCF service has been written and can be hosted in any web site. These web sites could use Windows, Kerberos, or Forms authentication. Is any particular configuration or development required within the service to handle these different authentication types? Or is authentication independent and the service doesn't need to worry about it...

User advantage for .NET 3.5 over .NET 3.0

I've seen many questions on SO about .NET 3.5 advantages, but these are more leaned towards language features and easier development. Are there any non-developer-wise advantages for using .NET 3.5? Bugs, fixes, advantages over time? Background: Desktop application that works in conjuction with a device driver. We wanted to support ...

ASP.NET - Learning .NET Framework 3.0 / 3.5

I would like to learn ASP.NET (Complete .NET Framework 3.0 / 3.5) and not getting time to attend training classes in any training center. Kindly let me know if you know if there are any other good alternates/options to learn. Kindly provide the details too. ...

Italicizing characters in a RichTextBox

I found how to make text bold in code: richTextBox1.Rtf = @"{\rtf1\ansi This is in \b bold\b0.}"; But I also need how to make text italic. Google doesn't give me much. I tried this (similar to bold, but with different character) but that doesn't work. richTextBox1.Rtf = @"{\rtf1\ansi This is in \i italic\i0.}"; Can someone help me...

Using MVVM design pattern in .Net 3.0

I have been looking into MVVM design patterns with WPF for a project. I have so far looked at MVVM light, MVVM Foundation, and the WPF Model-View-ViewModel Toolkit. I have a requirement to keep it to .Net 3.0 and not 3.5. I was wondering what frameworks outside of the MVVM Foundation samples use the design pattern or something similia...

What's the difference between IQueryable and IEnumerable

I'm confused as to the difference. Being fairly new to .Net, I know I can query IEnumerables using the Linq extensions. So what is this IQueryable and how does it differ? ...

What version of the .NET framework ahould I target?

I'm a desktop C# developer (that is not ASP) and am wondering about version targeting for small personal projects. These are, of course, trying to reach as wide an audience as possible, and so I've been targeting .NET 3.0 (which is the latest version on a Windows Vista system without any service packs) and 2.0 (which is simply the most ...

How to deploy ClickOnce .Net 3.5 application on 3.0 machine

I have .Net 3.5 SP1 WPF application which I'm successfully deploying to client computers using ClickOnce. Now I got new requirement - one of our clients need to run the application on machines equipped just with .Net 3.0 and it's entirely impossible to upgrade or install anything on the machines. I already tried to run the 3.5 applicatio...

Dispatcher.Invoke not working in .NET 3.0 SP1

I am developing a WPF windows application and am getting into a trouble running the app in .NET 3.0. Everytime that I try to access the System.Windows.Threading.Dispatcher.Invoke() method, I get a method-not-found error. Basically, I spawn a new thread from the main thread and try to change some UI properties (basically update a progres...