I am a beginner of ASP.net. I have some problem with comparing the sql query with my value from Label.
For example my query is
SqlCommand query = new SqlCommand("SELECT [ID], [TEXT], [OptionA], [OptionB], [OptionC], [OptionD] FROM [Question] WHERE ([SurveyID] = Label.Text)", conn);

Label.Text is the value which I want to compare with SurveyID.. What is the correct syntax if I want to compare it with SurveyID from my Database... Please give me the example in C#.. Thank you very much for reading this question.