Re: selecting one row from datagrid
- From: "bpd" <bryan.davis@xxxxxxxxxxxxxx>
- Date: 10 Jan 2007 06:34:00 -0800
I believe you just need to remove the @ in front of txtname.text.
rcoco wrote:
Thanks,
the whole code actually goes like this as per now hope you could hlp
me:
try
{
con.Open();
SqlCommand myCommand = new SqlCommand();
myCommand.Connection=con;
myCommand.CommandText="SELECT * from employee where fullname Like
%"+@xxxxxxxxxxxx+"%";
SqlDataAdapter myAdapter=new SqlDataAdapter(myCommand);
DataSet ds = new DataSet();
myAdapter.Fill(ds,"isp_email.staff");
con.Open();
myCommand.ExecuteNonQuery();
dgupdate.DataSource=ds;
dgupdate.DataBind();
con.Close();
}
catch(Exception err)
{
Console.WriteLine(err.Message);
}
finally
{
con.Close();
}
Thank you
.
- Follow-Ups:
- Re: selecting one row from datagrid
- From: Rastko Soskic
- Re: selecting one row from datagrid
- References:
- selecting one row from datagrid
- From: rcoco
- Re: selecting one row from datagrid
- From: Rastko Soskic
- Re: selecting one row from datagrid
- From: rcoco
- selecting one row from datagrid
- Prev by Date: RE: running "aspnet_regiis -i" during install
- Next by Date: Rename Folder
- Previous by thread: Re: selecting one row from datagrid
- Next by thread: Re: selecting one row from datagrid
- Index(es):