.net

.NET decimal.Negate vs multiplying by -1

Are there any differences between decimal.Negate(myDecimal) and myDecimal * -1 (except maybe readability)? ...

Appfabric and WCF

Hi, I need to know whether it is rule of thumb to use WCF webservice inorder to use appfabric. Actually we have lots of files to be download from a IIS server to iphone. The thing is like we all have WCF services and we are actually avoiding MTOM stuff as it is little complicated to process the filedownload on iphone. So we thought of u...

Typed Dataset, Linq-To-Sql, Entity Framework, MVC are new to me. What among them to start with on new project

I am from a world where people dont want to come out of there comfort zone to learn new technologies and I am among them as an exception looking for something different. Since I am not getting any learning opportunities and hence decided to create an application. Here are my details. I have to create a new web application for personnel ...

certified pdf C#

How can i create certified pdf with c#? ...

Convert pdf to Word document

Hi all.. Thanks for the answers that you all given... Here I would like to ask one more question : What is the best way to convert PDF document to Word document in .net? ...

Convert somebody's local time to the UTC time

Hi, i'm a little lost in the timezone :) I have data stored with the time in UTC. The server is in the Netherlands, so we live in utc+1 (now, with daylightsavingtime, in utc + 2) Now a client says: give me the data from august 5th. So i have to calculate the utc time from 'his time'. For that i have to know: what is your utc offset...

Best practice to create ADO.NET DataService client

I have windows forms app and server side services based on ADO.NET dataservice. Is it a bad practice to create and initialize one static dataservice client in windows app and use it across the program? For example i can use it in all opened forms(which have bindings to service's datacontext's objects) to call SaveChanges() and not loose...

Converting a List<> to an Array - I get "Attempted to access an element as a type incompatible with the array."

I'm trying to walk through a bunch of items, each item has an array of List<> objects that I want to convert to an array of arrays.. Here's the code to do that: foreach (IngredientNode i in _snapshot._ingredientMap.Values) { for (int c = 0; c < NUM_TAGS; c++) { if (i.RecipesByTag[c] == null) continue; i.RecipesByTag[c...

problem in publishing a webservice

i am new to web services. i have created a web service in .net. it's working fine but i am bit confused about the publishing procedure. it's not working when i publish it to localhost's inetpub.i get some error messages like access denied or location not found. i wanna know the procedure to publish my webservice and make it public. th...

Windows Report (rdlc) How to filter a grouping by the count of the child items?

I have a simple report, one field as row, one field as value. The data is grouped by the row field. I want to display only the rows where there are more than 1 value items (thus hiding where there is only 1 value item). Anyone knows how to do it? If more details are needed ask away ...

LINQ extension method help sought

Hi all, this is by far my toughest question yet and I'm hoping someone has stumbled upon this issue before and found an elegant answer. Basically, I've got a few linq extension methods (which just happen to be in subsonic but would be applicable in any linq derivative) that are working perfectly (extensions for .WhereIn() and .WhereNotI...

Mirroring Server in EPiServer

Anybody knows what properties are available as folder names when using Mirroring Service to HTML in EPiServer 4? (Dont know if this is different from newer versions) When using the 'PageName' property the service breaks because the length of the fully quilified directory path exceeds 260 characters (Limited by the Windows filesystem) ...

How to simulate Paste in a WPF TextBox?

I have a TextBox in my WPF application which I've added a Paste event to using: DataObject.AddPastingHandler(elm, new DataObjectPastingEventHandler(OnPaste)); Now I want to trigger the OnPaste event from C# code. How can I do this? I tried calling the Paste() function on the control. The text is pasted in the control, but the OnPaste...

What are the differences between Mono's and Microsoft's ASP.NET implementations?

Hi Everyone, I'm about to launch an ASP.NET web site which will be running on a Linux server using Mono. First I would like to do some testing on my own machine. I have heard lots of info about Mono, but this is the first time I actually use it for a project. So far, I have only deployed my applications on IIS servers. I would like to ...

What is the difference between C# & CLI when it comes in with value types and constructors?

I read recently that the C# and CLI standards define different ways to handle value types and constructors. According to the CLI specification value types can't have parameterless constructors, whereas in the C# specification value types have a default parameterless constructor. If, according to the CLI specification, you need to create...

Silverlight open file from server

I have task to give in my application possibility to open document that is located on server, but I dont know at all how to implement this. Please give the main idea how can i do this? ...

How to get a previous page value.

Using C#, I want to get a value from previous page. For example, In a page A i have the textbox value like "apple", i want to get the same value in page B Page A Code. <a href="javascript:void(0)" onclick="window.open('pageB.aspx', 'Add','width=700,height=400')"> Add</a> Above Code is linking a Page B from Page A Ho...

How can I find the active child window?

How can I find the active child window (like focus Edit in modal dialog). I know how to enumerate child windows, but I don't know how to detect if a child window is active (focus). ...

Error : An existing connection was forcibly closed by the remote host in FTP In C# ?

hi, When I am trying to do multiple upload i am getting the above error In FTP i have two classes one is for FTPdatatransfer and other is FTPcommand And in my main mage i am doing something like this FTPCommand ftpcommand = new FTPCommand(ServerAddress, UserName, Password); ftpcommand.Login(); ftpcommand.sendCommand("CWD ", "/home/prav...

Value was either too large or too small for a Decimal.

I have the following piece of code: double shortfall = GetSomeNumber(); //3.3588548831176006E+29 if (shortfall > 0) { returnValue = Convert.ToDecimal(shortfall); } That generates the above error. Can anyone help me with it please? ...