.net

Why .NET and Java on server side?

Java and .NET are two languages targeted at removing platform dependence. This is achieved by adding a virtual machine/framework between the code and the OS. So, what is the point in using it on the server side, as all websites are accessible via browser, and that is platform independent? Is there any special reason for using them? ...

What is the different of abstract class and interface in .NET?

abstract class can inherits by other class , and force people to override the abstract function, abstract property etc.. interface also can implements by other class, also force people to implements the function, property,indexers etc.. the only different i found is visual studio is smart to auto generate the nessesary member of this i...

How to trap delete row ( from keyboard ) in datagridview?

Background I have a custom collection that is binded to the datagridview this.datagridview.DataSource = mycollection I have a delete button on the user interface . User can click on the delete button to delete the selected DX Directory. Some entried cannot be deleted so I Enable and Disable "delete button". It works fine in case use...

.NET Development In a Team

Hi everybody I'm starting a .NET project and my developers have their own laptops. How can I prevent the developers from taking the source with them out of the company? Edit: Can I setup Team Foundation Server in such a manner that every uer have only access to some source code files? ...

Block Control+Alt+Delete

Hi, I'm doing an Online Quiz project in C#. The test client is a Windows Desktop Application running on Windows XP. I need to block the control+alt+delete key combination to prevent students from minimizing/closing the application. I know this question has been asked a million times, but I'm simply unable to find a working solution. Usin...

Limited user premissions in team foundation server

Can I setup Team Foundation Server in such a manner that every uer have only access to some source code files? ...

How to debug a linq to sql InsertOnSubmit statement?

The following code seased to work. db.DBUsers.InsertOnSubmit(new DBUser { AllTheStuff = valuesBeyondYourWildestDreams } ); db.SubmitChanges(); My guess is something changed at the database and the submit is failing because the mapping is off. As the linq visualiser isn't working for me (bonus points for fixing that) I want to find...

What is the difference between LocalUserAppDataPath and UserAppDataPath?

In System.Windows.Forms.Application there are two properties called LocalUserAppDataPath and UserAppDataPath. On this computer (running Vista) these corresponds to C:\Users\UserName\AppData\Local\CompanyName\ProductName\ProductVersion and C:\Users\UserName\AppData\Roaming\CompanyName\ProductName\ProductVersion What is the difference bet...

C#: Why is Application in System.Windows.Forms?

The Application class in System.Windows.Forms have a some properties that can be quite useful. For example: ProductName ProductVersion CompanyName ExecutablePath StartupPath CommonAppDataPath CommonAppDataRegistry UserAppDataPath UserAppDataRegistry LocalUserAppDataPath Why are these in in a class in System.Windows.Forms? What if I w...

How to read copied html text from clipboard with its html tags?

Hi, When a user selects and copies a text from a web page, I need to get that text with all the html tags included so that I can select some specific attributes etc. Is it possible to read it from .NET application? thanks ...

XmlDocument vs XmlWriter

I see you can create xml files using XmlDocument or XmlWriter. Are there any benefits of using one method over another? ...

Is there a viable counterpart to DCOM in .NET?

I know .net has WCF, which I believe was touted as the replacement for COM when it was codenamed Indigo(?) - but is it actually suitable for use in a .NET app, providing the same functionality as a C++/DCOM application? A DCOM app on a client-server system can be a pain, but I think it's quite efficient compared to other options like we...

Can I get a breakdown of memory use?

Can I get a better breakdown of memory use from within my app than GC.GetTotalMemory? For example per-assembly or per-module? Does that even make sense? ...

turn off soap extension on webmethod

It possible turn off soap extension on webmethod ? Something like this : [WebMethod] [SoapExtensionClass] public void func() { if(b) { // turn off soap extension on web method } } ...

Linq's InsertOnSubmit not added to changeset

Related to http://stackoverflow.com/questions/1660200/how-to-debug-a-linq-to-sql-insertonsubmit-statement I Execute the following bit of code: db.DBUsers.InsertOnSubmit(new DBUser { Id = id, BrandCode3 = brandCode3.ToLower(), LoweredUsername = username.ToLower(), Username = username, CreationDate = date, Salt = salt, Pas...

Creating background/throttled thread

I'm trying to execute a long-running piece of code in a "background" thread and by "background" I mean low-priority thread not .NET background term. I created a thread, set its priority to Lowest and still 100% CPU is used if no other threads are running. The situation improves when I manually call Thread.Sleep(1) but I don't want to cha...

How Do I Intercept Outbound and Inbound Soap Messages from C# Client Side Web Proxy

I'm writing UI to test an asmx web service. Server and client are .NET. Client proxy has been generated using wsdl.exe. I would like to intercept and store a string representation of outgoing and incoming SOAP messages generated as a result of calling methods on the web proxy, so I can add a feature to the UI which will show the message...

Exporting data to Excel

I need to export data to a formatted Excel document. Basically, a non-technical person should be able to create (or just modify) an Excel document that will be the template for the export process. The template should describe headers, used fields, etc. Knowing the template I have to export data to this document. Basically, it will look...

C# / .NET GUI development utils

Hello, Does anyone know about any API's, IDE's or such that simplifies the development of user interfaces? What I'm after is easy positioning and displaying of text, shapes, simple graphics and so on. It should also allow a rather dynamic aproach (easy to move things around, draw new shapes and objects etc post-initiated EDIT: As commen...

How to Customize a .NET Build?

I want to customize a .NET build process so that I can run an executable (a Javascript minimization program) across all my Javascript files before deployment. I've searched on the web, and I am not seeing a good way to do something like this. Can someone point me in the right direction? Thank you. ...