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 are winforms in c#?

928


What is new method in c#?

934


Explain the Different types of configuration files in .net?

1001


What does writeline mean?

989


What is the importance of closing an ado.net application?

901


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?

988


What is the difference between an implicit conversion and an explicit conversion?

988


What will be the output of the following code?

927


What is the default value of guid in c#?

893


Explain the process of inheriting a class into another class?

995


Define clr in .net?

1004


What is assembly c#?

885


Does console.writeline() stop printing when it reaches a null character within a string?

975


What is action in c# 3.5?

974


How do I register my code for use by classic com clients?

892