now ,i need to make 2 funtions on an ASP.NET c# page working with an SQL server (using Visual Web Developer 2010 Express)
the 1st one is a simple serach and i've done
the 2nd thing is an update , the sp is like:(it works in SQL)
Expand|Select|Wrap|Line Numbers
- UPDATE [lens] SET [qty] = @b+@c WHERE [id] = @a
@b is an number user input in the textbox2
now @c should be the result of an query
"select [qty] from [lens] where [id] = @a"
so ,the new value of [qty] will be the "old valus"+"valus in textbox2"
can someone tell me how can i do that?