Click here to Skip to main content
15,906,766 members
Home / Discussions / C#
   

C#

 
GeneralRe: get a value from database into a variable. Pin
Nekshan7-Feb-07 18:42
Nekshan7-Feb-07 18:42 
GeneralRe: get a value from database into a variable. Pin
Christian Graus7-Feb-07 18:56
protectorChristian Graus7-Feb-07 18:56 
AnswerRe: get a value from database into a variable. [modified] Pin
B.A7-Feb-07 18:31
B.A7-Feb-07 18:31 
GeneralRe: get a value from database into a variable. Pin
Nekshan7-Feb-07 18:44
Nekshan7-Feb-07 18:44 
GeneralRe: get a value from database into a variable. Pin
Christian Graus7-Feb-07 18:55
protectorChristian Graus7-Feb-07 18:55 
GeneralRe: get a value from database into a variable. Pin
B.A7-Feb-07 19:04
B.A7-Feb-07 19:04 
GeneralRe: get a value from database into a variable. Pin
Nekshan7-Feb-07 19:36
Nekshan7-Feb-07 19:36 
GeneralRe: get a value from database into a variable. Pin
Christian Graus7-Feb-07 21:01
protectorChristian Graus7-Feb-07 21:01 
Nekshan wrote:
dashboardid.ToString() is giving error. after dashboardid. -> tostring option does not cum.


His advice is totally wrong. Don't follow it.


Nekshan wrote:
how can i convert a string type variable(having value int type) to integer?




string s = "10"
int n;

if (int.TryParse(s, out n))
{
// n now = 10
}
else
{
s was not a number
}

But, you won't get a single number out of the DB, you'll get a dataset, containing one data table, with a data row for each id that was returned.

Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: get a value from database into a variable. Pin
Christian Graus7-Feb-07 21:00
protectorChristian Graus7-Feb-07 21:00 
GeneralRe: get a value from database into a variable. Pin
Nekshan7-Feb-07 22:37
Nekshan7-Feb-07 22:37 
GeneralRe: get a value from database into a variable. Pin
Stefan Troschuetz7-Feb-07 22:56
Stefan Troschuetz7-Feb-07 22:56 
GeneralRe: get a value from database into a variable. Pin
Christian Graus7-Feb-07 23:25
protectorChristian Graus7-Feb-07 23:25 
AnswerRe: get a value from database into a variable. Pin
Dhaval Makhecha8-Feb-07 20:06
Dhaval Makhecha8-Feb-07 20:06 
GeneralRe: get a value from database into a variable. Pin
Nekshan8-Feb-07 22:18
Nekshan8-Feb-07 22:18 
QuestionHelp in implementing Cascaded style sheet in Visual studio.net 2003 Pin
EEmaan7-Feb-07 18:11
EEmaan7-Feb-07 18:11 
AnswerRe: Help in implementing Cascaded style sheet in Visual studio.net 2003 Pin
Christian Graus7-Feb-07 18:22
protectorChristian Graus7-Feb-07 18:22 
Questionconcatenate SortedList Pin
swjam7-Feb-07 17:52
swjam7-Feb-07 17:52 
Questionsource code to draw an ellipse by pressing a button Pin
giovannirodrigo7-Feb-07 16:59
giovannirodrigo7-Feb-07 16:59 
AnswerRe: source code to draw an ellipse by pressing a button Pin
Christian Graus7-Feb-07 17:39
protectorChristian Graus7-Feb-07 17:39 
GeneralRe: source code to draw an ellipse by pressing a button Pin
giovannirodrigo8-Feb-07 2:52
giovannirodrigo8-Feb-07 2:52 
GeneralRe: source code to draw an ellipse by pressing a button Pin
Christian Graus8-Feb-07 8:42
protectorChristian Graus8-Feb-07 8:42 
QuestionPlz help me in using Media player control in C# Asp.net web application Pin
EEmaan7-Feb-07 16:54
EEmaan7-Feb-07 16:54 
AnswerRe: Plz help me in using Media player control in C# Asp.net web application Pin
Christian Graus7-Feb-07 17:48
protectorChristian Graus7-Feb-07 17:48 
QuestionHow to draw an ellipse by pressing a button Pin
giovannirodrigo7-Feb-07 16:33
giovannirodrigo7-Feb-07 16:33 
AnswerRe: How to draw an ellipse by pressing a button Pin
Christian Graus7-Feb-07 16:37
protectorChristian Graus7-Feb-07 16:37 

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.