Click here to Skip to main content
15,861,168 members
Home / Discussions / C#
   

C#

 
Questionscraping C# Pin
jojoba2026-Aug-14 10:23
jojoba2026-Aug-14 10:23 
AnswerRe: scraping C# Pin
Dave Kreskowiak26-Aug-14 12:13
mveDave Kreskowiak26-Aug-14 12:13 
SuggestionRe: scraping C# Pin
jojoba2027-Aug-14 6:59
jojoba2027-Aug-14 6:59 
QuestionObject Reference Error Pin
Member 914293626-Aug-14 7:29
Member 914293626-Aug-14 7:29 
AnswerRe: Object Reference Error Pin
OriginalGriff26-Aug-14 8:17
mveOriginalGriff26-Aug-14 8:17 
GeneralRe: Object Reference Error Pin
Member 914293626-Aug-14 19:17
Member 914293626-Aug-14 19:17 
AnswerRe: Object Reference Error Pin
Richard Deeming26-Aug-14 9:21
mveRichard Deeming26-Aug-14 9:21 
GeneralRe: Object Reference Error Pin
Member 914293626-Aug-14 19:02
Member 914293626-Aug-14 19:02 
Hi Richard,

I Changed the to Static GetDetailID, I am now getting a compiler error.

The error is "Cannot implicitly convert type 'string' to 'int'"

Now I have the DetailID declared as a string in GRHolding.cs Model, and my in my sql table, Details, DetailID is a int. The code causing the error is as follows:

C#
return context.Session[DetailsSessionKey].ToString();


My declaration value is
C#
public const string DetailsSessionKey = "DetailsID";


I thank you very much for the help with original compiler error, that seems to solve compiler error, but now I have another problem with the conversion of a string to an int on a return value.

Do you have any ideas, it would be appreciated.

Regards

Anthony
GeneralRe: Object Reference Error Pin
Bernhard Hiller26-Aug-14 21:05
Bernhard Hiller26-Aug-14 21:05 
QuestionSpeech recogination of specific language Pin
frech8726-Aug-14 1:16
frech8726-Aug-14 1:16 
AnswerRe: Speech recogination of specific language Pin
Pete O'Hanlon26-Aug-14 1:44
subeditorPete O'Hanlon26-Aug-14 1:44 
GeneralRe: Speech recogination of specific language Pin
frech8726-Aug-14 1:48
frech8726-Aug-14 1:48 
GeneralRe: Speech recogination of specific language Pin
ZurdoDev26-Aug-14 1:56
professionalZurdoDev26-Aug-14 1:56 
GeneralRe: Speech recogination of specific language Pin
GuyThiebaut26-Aug-14 3:40
professionalGuyThiebaut26-Aug-14 3:40 
GeneralRe: Speech recogination of specific language Pin
Pete O'Hanlon26-Aug-14 3:55
subeditorPete O'Hanlon26-Aug-14 3:55 
GeneralRe: Speech recogination of specific language Pin
GuyThiebaut26-Aug-14 4:05
professionalGuyThiebaut26-Aug-14 4:05 
GeneralOT Pin
Keith Barrow26-Aug-14 4:34
professionalKeith Barrow26-Aug-14 4:34 
GeneralRe: OT Pin
Chris Quinn26-Aug-14 5:09
Chris Quinn26-Aug-14 5:09 
AnswerRe: Speech recogination of specific language Pin
Duncan Edwards Jones26-Aug-14 4:51
professionalDuncan Edwards Jones26-Aug-14 4:51 
GeneralRe: Speech recogination of specific language Pin
Pete O'Hanlon26-Aug-14 5:57
subeditorPete O'Hanlon26-Aug-14 5:57 
GeneralRe: Speech recogination of specific language Pin
Duncan Edwards Jones26-Aug-14 6:02
professionalDuncan Edwards Jones26-Aug-14 6:02 
GeneralRe: Speech recogination of specific language Pin
Pete O'Hanlon26-Aug-14 6:05
subeditorPete O'Hanlon26-Aug-14 6:05 
GeneralRe: Speech recogination of specific language Pin
Duncan Edwards Jones26-Aug-14 6:43
professionalDuncan Edwards Jones26-Aug-14 6:43 
GeneralRe: Speech recogination of specific language Pin
Pete O'Hanlon26-Aug-14 22:36
subeditorPete O'Hanlon26-Aug-14 22:36 
GeneralRe: Speech recogination of specific language Pin
Duncan Edwards Jones26-Aug-14 22:46
professionalDuncan Edwards Jones26-Aug-14 22:46 

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.