textbox with numbers
-
i m using C#.net application with accessdatabase i m trying to display primary key in textbox but it is giving the error "data type mismatch" the primary key datatype is "Autonumber" can anyone tell me that how to make textbox compatible with numbers thnx
-
i m using C#.net application with accessdatabase i m trying to display primary key in textbox but it is giving the error "data type mismatch" the primary key datatype is "Autonumber" can anyone tell me that how to make textbox compatible with numbers thnx
Well.. this is no big deal,
int autonumber = 29; // or here fetch data from datarow.
yourtextbox.Text = autonumber.ToString();Cool. .:cool::cool:
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
i m using C#.net application with accessdatabase i m trying to display primary key in textbox but it is giving the error "data type mismatch" the primary key datatype is "Autonumber" can anyone tell me that how to make textbox compatible with numbers thnx
i dont understand ur problem try textbox1.text=dr["columnname"].ToString();:rose: