Click here to Skip to main content
15,887,444 members
Home / Discussions / C#
   

C#

 
GeneralRe: Throttling web service calls on different threads Pin
Gareth H10-Sep-10 1:26
Gareth H10-Sep-10 1:26 
GeneralRe: Throttling web service calls on different threads Pin
Ian Shlasko10-Sep-10 1:46
Ian Shlasko10-Sep-10 1:46 
GeneralRe: Throttling web service calls on different threads Pin
Gareth H10-Sep-10 1:50
Gareth H10-Sep-10 1:50 
AnswerRe: Throttling web service calls on different threads Pin
Luc Pattyn9-Sep-10 11:12
sitebuilderLuc Pattyn9-Sep-10 11:12 
GeneralRe: Throttling web service calls on different threads Pin
Gareth H10-Sep-10 1:37
Gareth H10-Sep-10 1:37 
AnswerRe: Throttling web service calls on different threads Pin
Abhinav S9-Sep-10 17:30
Abhinav S9-Sep-10 17:30 
GeneralRe: Throttling web service calls on different threads Pin
Gareth H9-Sep-10 21:07
Gareth H9-Sep-10 21:07 
Questionsearch and save to SQL using LINQ in C# Pin
navidsoft9-Sep-10 6:07
professionalnavidsoft9-Sep-10 6:07 
hi all.
i have a little Problem that need a help in my program.
I want to search for a field "Name" in the table "Person" of my SQLdatabase and save its ID in another table "Personel".

i do this through this code:

linqDataContext obj = new linqDataContext();<br />
var per = obj.persons.Where(item => item.Name == personCombo.Text).Select(item => item.Id);<br />
obj.PersonelSave(System.Convert.ToInt32(per.ToString()));<br />


I should say that Personel save is a procedure in my linq.dbml file

ALTER PROCEDURE dbo.PersonelSave @PersonId int<br />
AS<br />
	insert into personel values (@PersonId)<br />
	RETURN



and the error for my code is: "Input string was not in a correct format."

please help me to solve this problom.
AnswerRe: search and save to SQL using LINQ in C# Pin
Ian Shlasko9-Sep-10 10:42
Ian Shlasko9-Sep-10 10:42 
GeneralRe: search and save to SQL using LINQ in C# Pin
navidsoft9-Sep-10 21:21
professionalnavidsoft9-Sep-10 21:21 
GeneralRe: search and save to SQL using LINQ in C# Pin
Ian Shlasko10-Sep-10 1:43
Ian Shlasko10-Sep-10 1:43 
QuestionCasting ItemsControl.ItemsSource to Generic Collection Pin
Jammer9-Sep-10 5:11
Jammer9-Sep-10 5:11 
AnswerRe: Casting ItemsControl.ItemsSource to Generic Collection Pin
#realJSOP9-Sep-10 7:29
mve#realJSOP9-Sep-10 7:29 
AnswerRe: Casting ItemsControl.ItemsSource to Generic Collection Pin
Ian Shlasko9-Sep-10 10:51
Ian Shlasko9-Sep-10 10:51 
GeneralRe: Casting ItemsControl.ItemsSource to Generic Collection Pin
Jammer9-Sep-10 23:53
Jammer9-Sep-10 23:53 
AnswerRe: Casting ItemsControl.ItemsSource to Generic Collection Pin
Paul Michalik10-Sep-10 9:30
Paul Michalik10-Sep-10 9:30 
Questionwhat is advantges of using interface reference instead of class refernce Pin
am 20098-Sep-10 23:11
am 20098-Sep-10 23:11 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
DaveyM698-Sep-10 23:14
professionalDaveyM698-Sep-10 23:14 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
OriginalGriff9-Sep-10 0:22
mveOriginalGriff9-Sep-10 0:22 
AnswerRe: what is advantges of using interface reference instead of class refernce [modified] Pin
Pete O'Hanlon9-Sep-10 1:44
mvePete O'Hanlon9-Sep-10 1:44 
GeneralICheck Pin
Paul Michalik9-Sep-10 20:23
Paul Michalik9-Sep-10 20:23 
GeneralRe: ICheck Pin
Pete O'Hanlon11-Sep-10 2:16
mvePete O'Hanlon11-Sep-10 2:16 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
PIEBALDconsult9-Sep-10 4:03
mvePIEBALDconsult9-Sep-10 4:03 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
Pete O'Hanlon9-Sep-10 4:47
mvePete O'Hanlon9-Sep-10 4:47 
AnswerRe: what is advantges of using interface reference instead of class refernce Pin
Paul Michalik9-Sep-10 21:05
Paul Michalik9-Sep-10 21:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.