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

Describe session handling in a webfarm?

550


Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?

514


Can asp.net work on an nt server?

551


Describe the events in the life cycle of a web application.

593


What is data control in asp.net?

510






What are Caching techniques in .NET

587


In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely

1541


How can we pass info between 2 asp.net pages?

554


Which method do you use to kill explicitly a users session?

619


How do we sort the data from a dataset?

565


Where would you use an ihttpmodule, and what are the limitations of any?

541


What is inproc mode in session?

501


What are the two properties that are common on every validation control?

547


Can we handle the error and redirect to some pages using web.config?

900


Can I read the hard disk serial # of the client computer using asp.net?

551