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

What is the difference between union and join?

556


What is difference Between Authentication and authorization?

571


What is application variable in asp.net?

461


Is asp.net easy to learn?

549


What is a session http?

512






How does exception management works in ASP.NET?

601


Explain the flow of processing of the request? : asp.net mvc

530


What is the difference between application state and caching?

536


Who creates jsessionid?

554


What are the disadvantages of using session?

460


What do you mean by serialize and marshalbyref?

563


What is datagrid asp.net?

489


What is the base class from which web forms are inherited?

520


What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.

580


Are cookies client side or server side?

490