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 are winforms in c#?
What is new method in c#?
Explain the Different types of configuration files in .net?
What does writeline mean?
What is the importance of closing an ado.net application?
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
What is the difference between an implicit conversion and an explicit conversion?
What will be the output of the following code?
What is the default value of guid in c#?
Explain the process of inheriting a class into another class?
Define clr in .net?
What is assembly c#?
Does console.writeline() stop printing when it reaches a null character within a string?
What is action in c# 3.5?
How do I register my code for use by classic com clients?