Click here to Skip to main content
15,902,732 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: The name '###' does not exist in the current context - error Pin
Richard Deeming4-Nov-13 1:38
mveRichard Deeming4-Nov-13 1:38 
Your GetData method does not contain a variable or parameter called name, and your _Default class does not contain an accessible field or property called name. Therefore, the compiler doesn't know what you mean by "name", and cannot compile your code.

Assuming you want to pass the name you're looking for to the method, you need to introduce a parameter:
C#
public static List<Data> GetData(string name)
{
   ...
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: The name '###' does not exist in the current context - error Pin
miss7864-Nov-13 3:38
miss7864-Nov-13 3:38 
GeneralRe: The name '###' does not exist in the current context - error Pin
Richard Deeming4-Nov-13 4:38
mveRichard Deeming4-Nov-13 4:38 
GeneralRe: The name '###' does not exist in the current context - error Pin
miss7865-Nov-13 0:54
miss7865-Nov-13 0:54 
GeneralRe: The name '###' does not exist in the current context - error Pin
Richard Deeming5-Nov-13 1:17
mveRichard Deeming5-Nov-13 1:17 
GeneralRe: The name '###' does not exist in the current context - error Pin
miss7865-Nov-13 1:56
miss7865-Nov-13 1:56 
GeneralRe: The name '###' does not exist in the current context - error Pin
Richard Deeming5-Nov-13 2:04
mveRichard Deeming5-Nov-13 2:04 
GeneralRe: The name '###' does not exist in the current context - error Pin
miss7865-Nov-13 2:56
miss7865-Nov-13 2:56 
GeneralRe: The name '###' does not exist in the current context - error Pin
Richard Deeming5-Nov-13 3:13
mveRichard Deeming5-Nov-13 3:13 
GeneralRe: The name '###' does not exist in the current context - error Pin
miss7865-Nov-13 3:47
miss7865-Nov-13 3:47 
GeneralRe: The name '###' does not exist in the current context - error Pin
Richard Deeming5-Nov-13 4:14
mveRichard Deeming5-Nov-13 4:14 
GeneralRe: The name '###' does not exist in the current context - error Pin
miss7865-Nov-13 4:28
miss7865-Nov-13 4:28 
GeneralRe: The name '###' does not exist in the current context - error Pin
Richard Deeming5-Nov-13 4:34
mveRichard Deeming5-Nov-13 4:34 
GeneralRe: The name '###' does not exist in the current context - error Pin
miss78611-Nov-13 3:28
miss78611-Nov-13 3:28 
QuestionASP Buttons event not firing Pin
Blikkies3-Nov-13 19:18
professionalBlikkies3-Nov-13 19:18 
AnswerRe: ASP Buttons event not firing Pin
Joshua Omundson4-Nov-13 4:16
Joshua Omundson4-Nov-13 4:16 
GeneralRe: ASP Buttons event not firing Pin
Blikkies4-Nov-13 5:06
professionalBlikkies4-Nov-13 5:06 
GeneralRe: ASP Buttons event not firing Pin
Joshua Omundson5-Nov-13 12:28
Joshua Omundson5-Nov-13 12:28 
GeneralRe: ASP Buttons event not firing Pin
Blikkies5-Nov-13 21:00
professionalBlikkies5-Nov-13 21:00 
QuestionNeeds help for DirectoryEntry.Invoke ("ChangePassword","Old_Pass","New_Pass") method Pin
tiyyob2-Nov-13 0:42
tiyyob2-Nov-13 0:42 
Questionpc-phone,mobile dialer Pin
kalaiselvansurya2-Nov-13 0:14
kalaiselvansurya2-Nov-13 0:14 
AnswerRe: pc-phone,mobile dialer Pin
Mycroft Holmes2-Nov-13 1:10
professionalMycroft Holmes2-Nov-13 1:10 
QuestionDelegate Pin
Member 103756361-Nov-13 21:42
Member 103756361-Nov-13 21:42 
AnswerRe: Delegate Pin
Richard MacCutchan1-Nov-13 23:49
mveRichard MacCutchan1-Nov-13 23:49 
AnswerRe: Delegate Pin
Bernhard Hiller4-Nov-13 3:13
Bernhard Hiller4-Nov-13 3:13 

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.