[Resolved]Cannot show data to textbox
Hello all,
DataSet ds = new DataSet();
myAdaptor.Fill(ds, "Member");
TextBox1.Text=ds.Tables["Member"].Rows[0]["FirstName"];
When run this page the complier would alert that "Cannot implicitly convert
type object to string".
What's wrong of the code? :confused:
Re: Cannot show data to textbox
TextBox1.Text=ds.Tables["Member"].Rows[0]["FirstName"].ToString();
or
TextBox1.Text=Convert.ToString(ds.Tables["Member"].Rows[0]["FirstName"]);
Re: Cannot show data to textbox
Yes! work fine.
Thanks a lot mendhak. :wave: