.net

.NET 3.5 and SP1 install question - single installer

Does this install .NET 3.5 and SP1? http://www.microsoft.com/downloads/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en or is there no single installer yet? ...

How to tell who is in SQL Server

I am designing an application and I'm looking for the best way to tell who is currently logged into SQL server. I will use the Activity Monitor built into SSMS, which shows a list of all processes accessing the server - very cool. However, if in my .NET code it uses a separate connection each time I access the database then how will I b...

Barcode 128 size restrictions. Most compact barcode font?

I am generating a barcode label and sending it to the user as a .pdf (this is a web app). The user has already purchased barcode labels that are only 2 inches wide. I want to use an image so that I don't have to install fonts on all of the users machines that will be using the web site. I am able to get the barcodes small enough if I...

Trouble sending messages via MSMQ from a windowsmobile device

Hi, I am attempting to send a message using MSMQ from a mobile device to a remote private queue on a server. Whats happening? I do not experience any errors when the mobile code sends the message. If I look at the msmq folder on the mobile device it has indeed created a .oq (outbound queue) file for the remote that it is sending to. I...

Talk to Exchange 2003 from Java

What choices might I have for talking to an Exchange 2003 server from a Java application? I've heard a few references to projects that offer some .NET services to Java. I think I've also heard something about Exchange 2007 exposing web services, but I'm not sure if that's available in 2003. Has anyone done this? Any suggestions? Edi...

Addhandler is not firing off in rowdatabound

I am creating a dropdown list in code for a gridview. I want to create an addhandler so I can have access to the selectedvalue. However, here (Rowdatabound) the add handler does not get fired off. How should I go about this? Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEven...

WinForms TreeView - "Selected Node" indicator

What is the best way to leave some indicator of which TreeNode is selected in a TreeView on a WinForm? ...

ProcessStartInfo print verb does not exist for .tif images

We have a piece of software that attempts to print .tif images using a ProcessStartInfo object. It sets the Verb property to "print" and the FileName property to the path of the image. It then sets the UseShellExecute property to true and executes the Process.Start() method. However, nothing happens. I created a small test program to...

Get DLL list functions

I'm building a project. It's a application that users can add their extensions (dll). To manage this extension, I need to get its list classes, functions... Is there a code for doing it? Please, help me. Thank you! Note: Using C# ...

Nested UpdatePanel Behavior

I am using a Wizard control in an UpdatePanel. Some of the Wizard Steps have UpdatePanels nested inside. Both the outer and inner UpdatePanels have their own Trigger collection. All of the events fire as intended. However, the triggers for the outer UpdatePanel do not set off the UpdateProgress control. The inner ones all do. I'm...

How to resize image in C# without smoothing

How do you re-size a black and white image without any smoothing affect? I have a BarCode that is an image that is too big. I need to resize the image but with one caveat. The resulting image needs to be the same proportional size and the black and white bars can not turn into black,grey and white bars(which I believe is due to some ...

Encrypting connection strings so other devs can't decrypt, but app still has access

I have a database that I want to access via a .NET web application. I can encrypt the connection string in web.config easily enough, but any developer with access to the box can decrypt it with a few lines of code - they have access to the box, so therefore have access to the encryption key stored in machine.config. While I can lock peo...

Could not load file or assembly

I'm working on a system to use a SqlServerCe with NHibernate. From my driver program, if I add the System.Data.SqlServerCe assembly as a reference, I can create and run queries against a database just fine. When trying to use NHibernate, though, I get the following exception: A first chance exception of type 'System.IO.FileNotFoundExc...

How to render HTML chunk?

What's the best way to render a chunk of HTML in an application? We have a rich text editor control (from Karamasoft) in a web page, and need to generate a PDF with records saved from the control (with custom page headers, page footers, and record headers) so I need to be able to render the html so it can be "drawn" onto the page to be s...

Clear cache in SqlDataSource

I need to manually clear the cache on a SqlDataSource with caching enabled. I've tried setting EnableChaching = false, and CacheDuration = 0 (as well as = 1) and none seem to expire the content already in the cache - although they do seem to prevent new SELECTs from being cached. How do I manually expire that cache? Thanks. ...

Math.Pow vs multiply operator (performance)

Anyone knows if multiply operator is faster than using the Math.Pow method? Like: n * n * n vs Math.Pow ( n, 3 ) ...

Correct useage of OnClick vs. MouseClick events in Winforms using C#

I have a custom control I'm currently developing and realized that my code was being ran twice. Not really a huge issue (it is only a Focus method call) however I would like to understand it. From reading the MSDN description it states that: Fires when the user clicks the left mouse button on the object. So I added the OnClick e...

LINQ to Entity Framework Eager Loading issue

I have the following query: var MyQuery = from e in ContractContext.Equipments.Include("Manufacturers") where e.Customers.ID == customer.ID select e; And everything works, I get my Equipments and it loads the Manufacturers table correctly (eagerly). But when I try to do the following many-to-many query: v...

Nullable value types

If a value type is declared nullable, how should I take precautions for this? I.e. if in the constructor I have: public Point3 ( Point3 source ) { this.X = source.X; this.Y = source.Y; this.Z = source.Z; } would it fail, if source was null? ...

How to run .exe file by my Webservice ?

Duplicate: http://stackoverflow.com/questions/717657/is-it-possible-to-run-an-executable-from-a-web-service Hi I have Webservice, and I want to run exe file through this Webservice the Webservice and the exe file are on same computer How can I do it ? thank's in advance ...