Hi All,
In my ASMX webserice I pass a string parameter like this and this works perfect:
SqlClient.SqlParameter colourpar = new SqlClient.SqlParameter("@colour", colour);
cmd.Parameters.Add(colourpar);
Now I want to change it to a bit more secure structure like this:
cmd.Parameters.Add("@colourpar", SqlDbType.NVarChar);
cmd.Parameters["@colourpar"].Value = Convert.ToString(colour);
What can be the problem here?
Thanks!
Go to the complete details ...