.net

When sending data larger than the SendBufferSize, how will the data be received?

I just asked a question on how to send data larger than the SendBufferSize and the answer was that is would be send in a couple of parts. My second question is how will this data be received? Will it be complete in the network stream or will it get it divided. the first question: http://stackoverflow.com/questions/3097695/can-you-send-...

.NET website: Get the output of .ascx from jQuery

In MVC .NET application we can easily use PartialView to print the output of an ASCX file. For example, I have Book.ascx file, I could have this in the controller public ActionResult Book(int id) { BookModel model = new BookModel() { bookId = id }; return PartialView("Book", model); } which returns the output of Book.ascx Is the...

What else could I use Silverlight for besides Windows Phone 7 Apps?

One of the reasons why I don't want want to go the iPhone development path is because there isn't much to do with Objective-C language. You either develop iPhone or Mac apps with it. If I go the Windows Phone 7 development path, can I apply my Silverlight skills in other areas besides the mobile phone development? Is Silverlight useful ...

Why is System.Version in .NET defined as Major.Minor.Build.Revision?

Why is System.Version in .NET defined as Major.Minor.Build.Revision? Almost everyone (including me) seems to agree that revision belongs in third place, and "build" or whatever you'd like to call it belongs last. Does Microsoft even use the numbers in this haphazard way, e.g. 3.5.3858.2, or are the names themselves just backwards? For e...

C# on program close

I have a project that requires that I run some code when the application closes. The application is only a single form that hides itself almost immediately after execution, so the only way it can be closed is by manually terminating it with the task manager. If I use the onclose event, will it be called in this case? Also, can someone p...

Where to create an RSS feed for dynamic website

Hi everyone, I'm currently creating a website a little bit like Digg.com. There are different category like "Technology", "Sports", etc.. I want to create an RSS feeds for my website and while doing research on this, I have question that I can't find the answer. First, this is what I have: -I have the .NET code in C# that create a fi...

NHibernate: Simple way to treat default values as null (or vice versa)

Does anyone know of a quick way to have NHibernate insert default values for value types as null into the database? For example: public class Foo { public int SomeProperty { get; set; } } By default, int is 0. When it goes into the database, I would like it to go in as null. I know I could do this by changing SomeProperty to a nu...

.NET Web Service: .asmx?WSDL vs .wsdl

This is probably a stupid question. I don't know anything about Web Service but I have to work on this existing web service. What is the difference between club.asmx?wsdl vs club.wsdl ? I noticed they are similar, but club.wsdl has more stuff in it. Aren't they generated automatically from the .cs code? ...

Are there more jobs in .NET or in Java?

If possible, please quote any resources or link to any industry studies showing whether there are more .NET or Java jobs and also, which do you think is more in demand? ...

.Net Framework Installation

I had developed an application using .NET 2.0 and database as Sql Server 2005. When I installed my application in another PC, it asks for ".NET framework required". Is it important to have .NET Framework or else without .NET Framework shall we install ? ...

Communicate Sql Server over http

Hi, I just wanted to have some suggestions here. Right now, I have a client server application, using a windows application (.net) as a client and SQL server 2005 as a database server. The application is working fine and they are using within their intranet network; but suddenly a change comes in and they are saying that they would l...

Is there a .NET library or example code out there that is useful for optimizing points on a line or decimation?

I have a large set of datapoints (all 2D that represent a edges of a shape) where there exists many that all line up in straight lines a series of many points (pixels) I would like to optimize the data by removing the points that make up straight lines (same vector) and leave only the last two end points of the series to define the line ...

Why does my Client Server Socket Connection Keep Disconnecting

Hi All, I have a client server application writter in C# .NET using Sockets. I often get log messages (say about 4 per hour) saying this message, An existing connection was forcibly closed by the remote host In this case here the error is occuring on the 'server' side. I decided to use wireshark to analyse what is occuring, and I g...

Convert several thousands Word doc into single PCL file

Our customer has tens of thousands of correspondence letters in Word 2007 format. They need to combine all the letters into a single large PCL file, which is then sent to the print vendor for bulk printing. From what i understand PCL content is generated by a specific printer driver. So whether interactively or programmatically with VBA...

User targeting algorithm

I have an application that visitors come and go. I m working with a data provider that gives me information about users such as their gender, age, location, and information about their personalities etc. Now, i d like to target these users with appropriate content. In short, I have content and users with their personality information...

how to connect microsoft crm with delphi?

hi i want connect to microsoft crm with delphi 7 or 2007 wsdl = http://crm/mscrmservices/2007/crmservice.asmx my code token := CrmAuthenticationToken.Create; token.OrganizationName := 'test'; token.AuthenticationType := 0; service := GetCrmServiceSoap(); customer := contact3.Create; customer.salutation := 'test'; custome...

Postsharp Unhandled exception simply by adding a reference

I started playing with Postsharp but cannot get past the first step. Someone else reported on their forums at http://www.sharpcrafters.com/forum/Topic4817-18-1.aspx but was wondering if anyone has come across this and perhaps have a solution. Am using VS2008 and have .net3.5SP1 installed. (Posting here as there is more activity than th...

MySQL interpreting special characters in generated query

I am trying to migrate the database layer of our framework from SQLServer to MySQL using MySql.data.dll . I have the following generated query in MySQL: select * from `user` where `user_domainname` = 'domain\beth'; MySQL is interpreting the '\b' in the above string as an bell character whereas SqlServer does not interpret any such esc...

Right justified combobox in C#

Hello By default the items in the C# Combobox are left aligned. Are there any options available to change this justification apart from overriding DrawItem method and setting the combobox drawmode --> DrawMode.OwnerDrawFixed? Cheers ...

Theoretically speaking, I can use IronRuby to write all apps that c# can write, right?

Hi guys, I know some ruby language. Now I need do some .net development. I don't want to learn a new language. So, after googling I got IronRuby. Now my question is Can I use IronRuby to write all apps that c# can write? Thanks. ...