Hi Adil, You said something about ASP.Net but it looks like it is a windows form you are dealing with. Anyhow, it doesn't matter. What you can do is put a breakpoint in your code for the Button click event Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_ System.EventArgs) Handles Button1.Click then step though the code and find out where it breaks. This would give us info enough to help you. Meanwhile, i expect that the database has a table, Table1 with at least 3 fields that are all of Text type (?). (gain maybe it would help for you to go with: TextBox1.Text = dr(0).ToString().....etc
acodeisacodeisacode