I would like to execute a stored proc that simply updates a record. At this point I would like to keep it parameter less. But in future, I will be adding parameters to the stored proc. Can I simply do it via SQLDataSource? It will save me writing few lines of code to execute stored proc in a traditional ado.net. If its possible, could you please supply me with a sample code?
Thanks
You could use
System.Data.SqlClient.SqlCommandSomething like this…
or using a SqlDataSource like
Update parameters can be added to the SqlDataSource.