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
Can you explain one critical mapping? Performance issue which one is better?
Define application state variable and session state variable?
What do you understand from custom control?
What is the namespace to create thread in .net?
What is the life cycle of web page?
What is session and application variable in asp net?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
What are the advantages of asp.net?
Define view state.
What is a viewbag?
What are the main differences between asp and asp.net?
Which is better viewstate or session?
How does session work?
How can we register exception filter globally?
What is authorization in asp.net?