Last post Aug 14, 2012 09:12 PM by Decker Dong - MSFT
Aug 12, 2012 09:52 PM|furapt|LINK
I want to pass the values to the query through parameters but in debug is saying that I have to declare the scalar variable.
SqlDataSource1.UpdateCommand = "UPDATE rp SET locali=@locali WHERE idRp='" + Convert.ToInt32(stridRp)+"'";
SqlDataSource1.UpdateParameters.Add(new Parameter("@locali", System.TypeCode.String, strLocali));
I already tried different ways and I can't figure out.
Aug 13, 2012 09:47 AM|furapt|LINK
I already resolved I ignored the UpdateCommand through SQLDataSource and made my own query with parameters through sqlcommand
Aug 14, 2012 09:12 PM|Decker Dong - MSFT|LINK
Congratulation! Welcome to our forum next time to share more or chat with us！