Re: Button Column Select.
On May 21, 9:52 pm, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :
Hi Alexey,
When I try:
Response.Write( "select*fro m dbo.DashBoard where Name="+
((LinkButton)e. Item.Cells[0].Controls[0]).Text+"");
It returns select*from dbo.DashBoard where Name=Claude
Claude is the selected Name which is ok.
But when I now try
myCommand.Param eters["@operation "].Value=
((LinkButton)e. Item.Cells[0].Controls[0]).Text;
Data is not selected why is it so?
But I do not get any error.
Thanks.
On May 21, 9:52 pm, "Alexey Smirnov" <alexey.smir... @gmail.comwrote :
"Alexey Smirnov" <alexey.smir... @gmail.comwrote in message
>
news:1179773243 .348157.267380@ a26g2000pre.goo glegroups.com.. .
>
>
Response.Write( ); should be with the parentheses
>
news:1179773243 .348157.267380@ a26g2000pre.goo glegroups.com.. .
>
Response.Write "select * from dbo.DashBoard where Name = '" +
((LinkButton) e.Item.Cells[0].Controls[0]).Text + "'";
((LinkButton) e.Item.Cells[0].Controls[0]).Text + "'";
Response.Write( ); should be with the parentheses
When I try:
Response.Write( "select*fro m dbo.DashBoard where Name="+
((LinkButton)e. Item.Cells[0].Controls[0]).Text+"");
It returns select*from dbo.DashBoard where Name=Claude
Claude is the selected Name which is ok.
But when I now try
myCommand.Param eters["@operation "].Value=
((LinkButton)e. Item.Cells[0].Controls[0]).Text;
Data is not selected why is it so?
But I do not get any error.
Thanks.
Comment