.net

UI and Application relationship

Hi All, I've read a lot of articles about the UI ,buisness logic ,WCF ,IoC, but still, one thing is missing from my mind. I build a winforms application and a console app. the Console App is the brain. Now, in all the client-server architecture the client "know" the server , send him request and get the answer. My qestion is as follow: ...

upload an image and get its bytes

I have such a form <form name="" method="post" action="Save" enctype="multipart/form-data"> <div id="dialog" title="Upload files"> <input type="file" id="Image" name="fileUpload" size="23"/> </div> <input type="submit" value="Create" /> </form> how sould i get the get the images bytes in ...

Is it possible to make a webHttpBinding WCF service to answer binary?

I implemented this contract [OperationContract] [WebGet(UriTemplate = "{parameter}", BodyStyle= WebMessageBodyStyle.Bare)] byte[] Operation(string parameter); But, when I called the implementation, all I got was something like this: <base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/"&gt;dGVzdA==&lt;/base64Binary...

good c# learning book

hey, i want to start learning c# in the near future and i want to get a pretty updated book , so i can get a book that covers all the new features on the language and the .net framework. (don't see a point learning c#2 while there are new versions) i do have a pretty good background in c++. any recommendation ? searching amazon i cam...

Listen for SysLog in .NET

Does anyone know how to listen for SysLog connections and deal with input using .NET? I'm currently using Wallwatcher but it truly sucks. I'd really like to build a nice simple Syslog interface for my home network as well as my ASSP server. Thanks in advance. ...

How can I get my TCP listener service to terminate correctly?

I'm writing a Windows service which starts a TCP listener. The core code works fine, but I'm having several problems with the mechanics of a Windows service. Right now, when my service starts up, it creates a thread and starts the TCP listener in the thread. Then, when the service stops, it terminates that thread: Public Class txnSoc...

System Design Document

I did some searching on the site for an answer to help guide me, but my efforts netted 0 results. I need to write a system design document for a client that is bringing their entire operation in house. At the current moment they have outsourced all of their programming to offshore developers, and I fear that many of the issues with o...

How to make up for changed Sql Server database password

There is a website made using .net, the maker has gone and we can't find him. For a long time we don't know the password of the sql server database, today I tried to reset the password and then found the website can't connect to the database! However I've got the .cs and .aspx and .dll files, I checked the code and find it getting connec...

Search a Custom DataClass for Results

I have built a custom Data Class that stores IP Address Details. Public Class IPAddressDataItem Private _ID As Integer Private _IP As String Private _Name As String Public Property ID() As Integer Get Return _ID End Get Set(ByVal value As Integ...

Visual Studio 2010 - Cannot add assembly references from the GAC

Hi, I have now gone over to Visual Studio 2010 Beta 2 I have used it for a few days, but now I can no longer add references from the GAC. (http://bildr.no/view/549966) Sorry since this is not directly a development question, but I was not sure where to ask. Does someone know how to fix this? ...

What is the _xcode field of the .NET Exception type?

Dear ladies and sirs. In my unit tests I need to perform deep equality tests of two objects, which are expected to be identical. During the tests I discover some interesting fields in system types that break my code. Exception._xcode is the most recent one. Here are a couple of facts about this field: It is initialized to -532459699 i...

Reason for asp.net website error in one server and not in other server

I have a asp.net website which is deployed in a server A and same code has been deployed in server B. The website in server A has problems while in website in Server B doesn't have any problems. The problem is the sequence of order that the page is navigating is wrong while clicking on next button. Its obvious that there is no problem...

Best Way to send message to thread c# .net (inter-thread communication)

Hi , What is the most efficient and fastest way to send message to a thread(not process) that run in while(1) loop in c#/.net : 1) Using a synchronized queue (such in http://www.geekscafe.net/post/Blocking-Queues-Threade28099s-Communication-in-C.aspx) 2) Running a message loop Using Application.Run of systems winforms in the thread co...

how pick data in listbox from db?

i am developing software using VS 2008 and at back end Oracle 10g. my first question is: can i use LINQ for oracle? or/and is there a way without using LINQ can i join more than one source to collect result. e.g. i have two dataset one is for category named cat_set and 2nd for product named prd_set now i want to list the product on the...

Drag & drop of a dynamically created shortcut

I have a C# application that creates shortcuts to launch other programs with specific arguments and initial directories. I would like the user to be able to drag a shortcut from the Windows form and drop it anywhere relevant like the desktop, the start menu, and so on but I don't really know how to handle that, could anyone point me in t...

Best way to escape javascript string? (json?)

Using C# .net I am parsing some data with some partial html/javascript inside it (i dont know who made that decision) and i need to pull a link. The link looks like this http:\/\/fc0.site.net\/fs50\/i\/2009\/name.jpg It came from this which i assume is javascript and looks like json "name":{"id":"589","src":"http:\/\/fc0.site.net\/fs...

how do I create an uninstall file for my windows application

I would like to create an uninstall file for my windows application but I am having a difficult time finding information on them. Could sombody breifly explain the workings of a uninstall file and/or provide me with a link to a walkthrough. vs2008,c#, .net ...

Are there any library in .Net to do some basic audio editing?

What I need to do is insert silences in an audio, insert other audios, mix other audios (insert them with an overlapping section) and so on. Are there any libraries for .Net (I'm using C#) that could do such a thing? ...

How to run over cells on Excel in C#?

How i can run over cells in Excel (not .csv) and read the cell values? I need to run all the cells. Thanks in advance. ...

Linq 'equals' keyword Revisited - Does it compare values and references to objects?

This question is a follow on to link text hence the revisited in the title. I raise this as a new question as the accepted answer and comment made under the original question both suggest that the equals keyword used in the join query refers to only value types within the comparison. I believe this is misleading as follows. Behind the s...