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 benefit of using interface in c#?
What is the purpose of ienumerable in c#?
What is null in database?
What is code verification?
When To use HashTable In C#
how to sort an array in c#
So let's say I have an application that uses myapp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name myapp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new myapp.dll?
What is regex c#?
What is the task perform by clr?
What is lazy class in c#?
What is value c#?
Why do we use static methods in c#?
What is byte c#?
What is tuple in c#?
What is writeline?