Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is Covariance and contravariance in C#?

1118


What is pure abstract class in c#?

959


Is string null or empty?

971


How do you create empty strings in c#?

982


what is the syntax to inherit from a class in c#?

1067


Enlist some of the properties of a thread class?

982


What does || mean in programming?

1060


Does c# support multilevel inheritance?

931


How to get the sum of last 3 items in a list using lambda expressions?

972


What's the c# syntax to catch any possible exception?

1144


What does using system mean in c#?

1068


Write a short note on interface?

1046


What are the collection types can be used in c#?

919


Explain the difference between access specifier and access modifier in c#?

1037


What is difference between list and ilist in c#?

996