المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Zero's before number.



C# Programming
06-04-2009, 01:00 PM
Hi, In my database table i have column with data like

00987
78960
89760
08123
009876

when i read the value(00987) into the integer variable, then it contiana value as 987.

I need the value in integer variable as same(00987). How can i do this?

int k = Convert.ToInt16(dt.rows[i]["colname]);

G. Satish