what is mean System.format exception
input string is not in correct format exception means what?how i resolve it?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Apr 27, 2011, 11:04 AM
shree gunjalPosted Apr 27, 2011, 10:17 AM
autoincrement property is false.because for that i write code.
so what can i do next?
VulpesPosted Apr 26, 2011, 5:45 AM
However, there are some companyids already in the database which are not integers but strings (say "C01") and so the Int32.ToString() method, which is getting called at runtime, is having a problem because it's trying to parse an integer to a string - hence the format exception.
shree gunjalPosted Apr 26, 2011, 3:43 AM
when 1st list item selected ,then in another dropdownlist company name as items which belongs inthat company group must arrive.for that i write query in selected indexchanged of 1st dropdown list.and kept Autopostback=true .it work properly.
but my problem is when i select 2nd list i.e company list item than i want a companyid in one textbox
so that i write query in 2nd dropdownlist selected index change
please see code
Suthish NairPosted Apr 25, 2011, 10:28 AM
Mahesh ChandPosted Apr 22, 2011, 10:55 PM
Sam HobbsPosted Apr 22, 2011, 7:15 PM
Ankit NandekarPosted Apr 22, 2011, 7:37 AM
VulpesPosted Apr 22, 2011, 6:54 AM
string s = "Hello";
int i = Convert.ToInt32(s);
// or
string s = "1000000";
DateTime dt = DateTime.Parse(s);
However, it's not confined to these situations and can be thrown more generally when a method argument is simply not in the format which the method expects.
To resolve it, make sure that the argument is in an appropriate format (read the docs if unsure) before you pass it.
Dorababu MekaPosted Apr 22, 2011, 6:15 AM