Click here to Skip to main content
15,925,661 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: opening links in a different browser. Pin
V.11-Jan-07 4:34
professionalV.11-Jan-07 4:34 
GeneralRe: opening links in a different browser. Pin
MatrixCoder11-Jan-07 5:00
MatrixCoder11-Jan-07 5:00 
AnswerRe: opening links in a different browser. Pin
V.11-Jan-07 20:23
professionalV.11-Jan-07 20:23 
AnswerRe: opening links in a different browser. Pin
Guffa11-Jan-07 21:02
Guffa11-Jan-07 21:02 
GeneralRe: opening links in a different browser. Pin
V.11-Jan-07 21:24
professionalV.11-Jan-07 21:24 
GeneralWPF/e Guides Pin
Brady Kelly10-Jan-07 21:17
Brady Kelly10-Jan-07 21:17 
GeneralRe: WPF/e Guides Pin
RichardGrimmer16-Jan-07 4:40
RichardGrimmer16-Jan-07 4:40 
Questionselecting one row from datagrid Pin
nclauder10-Jan-07 20:01
nclauder10-Jan-07 20:01 
Hi everyone,
I'm having with selecting a row in a datagrid. I have a datagrid that is ment to update and it runs very well, But I don't want the user to keep scrolling when ever they want to update so I created a textbox(txtname) and a button where a user is supposed to write a name and by the click of the button the corresponding row is selected. Now where the problem is it's that when I write a name say Ndayahundwa,Claude and press button I get this error:
Incorrect syntax near 'Ndayahundwa'. Here is the code I'm using:

SqlCommand myCommand = new SqlCommand();
myCommand.Connection=con;
myCommand.CommandText="select * from isp_email.staff where @fullname like%" +txtname.Text+ "%";
SqlParameter myparam = new SqlParameter("@fullname",SqlDbType.Text);
myparam.Value=txtname.Text;
myCommand.Parameters.Add(myparam);
SqlDataAdapter myAdapter=new SqlDataAdapter(myCommand);
DataSet ds = new DataSet();
myAdapter.Fill(ds);
dgupdate.DataSource=ds;
dgupdate.DataBind();
Could some one bail me out?
Thanks.

AnswerRe: selecting one row from datagrid Pin
Paddy Boyd10-Jan-07 23:19
Paddy Boyd10-Jan-07 23:19 
GeneralRe: selecting one row from datagrid Pin
nclauder11-Jan-07 0:13
nclauder11-Jan-07 0:13 
GeneralRe: selecting one row from datagrid Pin
Paddy Boyd11-Jan-07 0:17
Paddy Boyd11-Jan-07 0:17 
GeneralRe: selecting one row from datagrid Pin
nclauder11-Jan-07 0:41
nclauder11-Jan-07 0:41 
GeneralRe: selecting one row from datagrid Pin
Paddy Boyd11-Jan-07 0:43
Paddy Boyd11-Jan-07 0:43 
GeneralRe: selecting one row from datagrid Pin
nclauder11-Jan-07 1:13
nclauder11-Jan-07 1:13 
GeneralRe: selecting one row from datagrid Pin
Paddy Boyd11-Jan-07 1:19
Paddy Boyd11-Jan-07 1:19 
GeneralRe: selecting one row from datagrid Pin
nclauder11-Jan-07 1:29
nclauder11-Jan-07 1:29 
Questionpagging code in php like yahoo mail inbox Pin
kumar bharat bhusanam10-Jan-07 18:39
kumar bharat bhusanam10-Jan-07 18:39 
QuestionIE7 setAttribute On Dynamicly Created Elements Pin
Zane.Kellogg10-Jan-07 8:45
Zane.Kellogg10-Jan-07 8:45 
QuestionIIS - executing an external application Pin
hssaroch10-Jan-07 2:42
hssaroch10-Jan-07 2:42 
AnswerRe: IIS - executing an external application Pin
Marcus J. Smith10-Jan-07 2:45
professionalMarcus J. Smith10-Jan-07 2:45 
GeneralRe: IIS - executing an external application Pin
hssaroch10-Jan-07 2:51
hssaroch10-Jan-07 2:51 
GeneralRe: IIS - executing an external application Pin
TCHamilton13-Feb-09 6:22
TCHamilton13-Feb-09 6:22 
GeneralRe: IIS - executing an external application Pin
hssaroch13-Feb-09 7:32
hssaroch13-Feb-09 7:32 
QuestionWhat is wrong with ISO (8-bit ASCII)?? Pin
Leistath9-Jan-07 22:45
Leistath9-Jan-07 22:45 
AnswerRe: What is wrong with ISO (8-bit ASCII)?? Pin
Guffa9-Jan-07 23:52
Guffa9-Jan-07 23:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.