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

What is the difference between sealed vs static class?

1170


What are different methods of session maintenance in asp.net?

1118


Where session variables are stored?

1029


Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

1066


What is sql data source control in asp.net?

1097


How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.

1204


How dataadapter.fill works?

1078


How do I use response redirect?

1015


What is enableviewstate in asp net?

998


How do you declare static variable?

1078


Describe the diffeerence between inline and code behind?

1088


What is state management react?

1086


Is asp.net a programming language?

1075


What are server side controls?

1049


explain code with datachaching with example

2206