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...

How to convert a string into an Integer in ASP.net?

Answer Posted / sanjay

1))int a=int.Parse("string");
2))int a=Convert.ToInt32("string");
3))int a=(int)"string";

but the string provided should be integer

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain one critical mapping? Performance issue which one is better?

844


Define application state variable and session state variable?

943


What do you understand from custom control?

1054


What is the namespace to create thread in .net?

893


What is the life cycle of web page?

909


What is session and application variable in asp net?

851


Give an example of what might be best suited to place in the application_start and session_start subroutines?

917


What are the advantages of asp.net?

933


Define view state.

899


What is a viewbag?

912


What are the main differences between asp and asp.net?

975


Which is better viewstate or session?

891


How does session work?

861


How can we register exception filter globally?

942


What is authorization in asp.net?

1023