Consume REST WCF Service in Console application in c#
Hi All,I am consuming a REST WCF service in console application and want to display all information according to URL,BODY,METHOD like below. REST Service...
View ArticleEntity Framwork Primary Key Violation on Update
I'm trying to do a simple update using EF 4.0 public static void Update(Guid g, bool reported) { var alert = ( from a in entities.FAL...
View ArticleNeed help changing the value of a variable
Hello guys,In my application I have to insert colors into a Access database, which I receive from an Excel sheet. I put all these colors into a variable first, then I insert them into the access...
View Articleoperator overload casting a value
here is this piece of coding:- // C# 4 Wrox , Page 122 // using generic structures , using Nullable<T> // casting Nullable<T> to T using operatoe overloads public struct Nullable<T>...
View ArticleWhat is the difference between .dll and .exe ?
Hi Could any body tell please tell me the difference between .dll file and .exe file ?Thanks,
View ArticlePlease help me in understanding the C# code.
I couldn't understand what this piece of code means in the below image?ShoppingCart cart=new shoppingCart(calc){Products=products}Can anyone help me with the concept.Thanks in advance.I hope it...
View ArticleExtracting Part of JSON object from JSON String
Hi,Can someone help in explaining how to extract the nested object(s) "event" from the following JSON.{"jsonrpc":"2.0","result":[{"event":{"id":"27060267","name":"Southampton v West...
View ArticleEctract xml from Pdf ( xfa)
Hello,I have problem, I would like extract xml from pdf (xfa) by Itext or another solve? Do you have some ideal about it? Or code example?Thank you MArek
View Articleabout SSD and vusial studio 2012
my C disk is intel SSD 330 series 120Gi just begin to practice using Visual C#i found that everytime i open VS, it increased 0.06GB in total LBAs written that testing by intel SSD toolboxand it...
View ArticleDetermine a sentence structure using C#
Good day, everyone.I'm having problems on how to determine a sentence structured base on a sentence given by a user. Anyone knows how to give some algorithm to solve this problem? Your help is highly...
View ArticleVisual C# sharp task
Print numbers from 1 to 100, such like print "Three" for multiples of 3 and "Five" comes for multiple of 5, instead of their original values. if both (Three, Five) comes in the place 15 should come...
View ArticleConvert short month to integer month
Any function to convert string Jan..... Dec to interger value 1....12? Thank you.
View ArticleXml Databinding doesn't work on some computers
I've wrote some code with a xml databinding. On one machine with win7 32 bit it works perfectly, but on another with win7 64 bit not.using System.Windows.Forms; using System.Xml; namespace...
View ArticleGenerate new GUID in Model and save to Database
Hello all.I have created the following Model: public class UserProfile { [Key] [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] public int UserId { get; set; } public string UserName {...
View ArticleCleaning up BackgroundWorker threads
I've looked at a lot of examples of BackgroundWorker usage and I think I'm missing something fundamental. All the examples show creating the worker, hooking up the events and no form of cleanup. If I...
View ArticleC# Books for absolute beginner
Hello guysIm looking for a good book for my friend, he is an absolute beginner. Ive looked at different books, but im not sure which one to pick.How is this:...
View ArticleHow to Connect to the Ultimate SSH by providing only Private Key without any...
Hi,Can anyone please tell me how to connect to sftp server by using ultimate ssh and wihtout using the password but using only the private key by using ultimate ssh trial version 5.2.8221?Thanks.
View ArticleWSE910: An error happened during processing of the response message
Client is hitting request to my service url and receiving xml response, however they are not able to intercept the response and getting "WSE910: An error happened during processing of the response...
View ArticleTransfer the Winform Radio Button,check box data to Html Radio Button,check box
I am trying to implent send data from windows form Radio button , check box control to HTML Radio button , check box,Scenario: My windows form in C# having various Radio button , check box and one...
View ArticleMailbox unavailable. The server response was: 5.7.1 Unable to relay
i have a program That Call Desktop NewsLetter Application it Run on My Localhost(Local Machine) When I Run Server 2008 or Windows 7 Or Other Machine it will Error Mailbox unavailable. The server...
View Article