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

Answer Posted / sai krishna

int a = Convert.ToInt32("2");

int b = Int32.Parse("3");

Response.Write( a.ToString() + " " + b.ToString());

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can any body provide me the sample web application in asp.net

1609


What is a postback ispostback and autopostback in asp net?

657


What is variable and constant in .net programming language?

582


How to reduce the width of textbox in editcommandcolumn of datagrid?

710


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

1237


What is aspect-oriented programming?

711


What are the advantages and disadvantages of session?

856


Who can consume WebAPI?

749


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

715


How can we identify that the page is post back in asp net?

671


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

782


Why is global asax is used?

790


What are the navigation ways between pages available in ASP.NET?

767


What is the difference between session.abandon() vs clear()?

715


Which method do you use to enforce garbage collection in .net?

697