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
Is c# a technology?
What is a dll in c#?
What is dictionary collection in c#?
What is data types in c#?
What is a nullreferenceexception and how do I fix it?
Define encapsulation?
What is sealed class in c#?
What are desktop applications examples?
When can a derived class override a base class member?
Difference between value and reference type. What are value types and reference types?
What is “using” statement in c#?
What are interfaces in c#?
What is inumerable?
Define Virtual folder?
What is the difference between system.text.stringbuilder and system.string?