Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 15, 2012 01:12 AM by Decker Dong - MSFT
Aug 13, 2012 01:52 AM|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 01:47 PM|LINK
I already resolved I ignored the UpdateCommand through SQLDataSource and made my own query with parameters through sqlcommand
Aug 15, 2012 01:12 AM|LINK
Congratulation! Welcome to our forum next time to share more or chat with us！