First, be as it may, you shouldn't use keywords as object names, it needlessly makes things confusing for people that look at your code other than you.
The Format exception can be thrown if the value you are passing in == string.Empty or, obviously, it is not a value that can be converted to an Int.
Have you steped through the code? Have you looked at the value of idad as your app runs?
Also, do you realize that by calling Convert.ToInt16 you are really converting the value to a short data type and not an integer?
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========