Hoe can i connect the table into the c# application?
Answer Posted / gaurav
by writing the connection string on the click event of the
button. by connection string i mean it's the ado.net
structure.firstly you have to include the namespace- using
system.data.sqlclient;
now on the click event of the button( eg u have taken a
sumbit button ) you will be writting- sqlconnenection con=
new sqlconnection........then u'll use
datacommand,dataset,string,databind,gridview.
u can also use read for getting the errors in a specified
manner.for this u will be using try and the catch then your
connection string code and then u'll use the finally
function and then close().
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the difference between dataset and datatable in c#?
What is the difference between convert and parse in c#?
What is string interpolation in c#?
How does the lifecycle of Windows services differ from Standard EXE?
What is the difference between field and property in c#?
What is the main purpose of xml?
What is the difference between icomparer and icomparable in c#?
Do vs while c#?
What are classes in c#?
Can you inherit multiple classes in c#?
How do you escape c#?
What namespace is list in c#?
What is indexer c#?
How do switch statements work?
Is int a class in c#?