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 Covariance and contravariance in C#?
What is pure abstract class in c#?
Is string null or empty?
How do you create empty strings in c#?
what is the syntax to inherit from a class in c#?
Enlist some of the properties of a thread class?
What does || mean in programming?
Does c# support multilevel inheritance?
How to get the sum of last 3 items in a list using lambda expressions?
What's the c# syntax to catch any possible exception?
What does using system mean in c#?
Write a short note on interface?
What are the collection types can be used in c#?
Explain the difference between access specifier and access modifier in c#?
What is difference between list and ilist in c#?