teenaguptha
Programmer
Hi all,
In my code, i have a ProductID which contains '&' character like "pen&pencil".I tried to update this as "pen&paper" from front end into database.But,database doesn't accept this changes..it remains as "pen&pencil"..Actually,I have created stored procedure for "update" and calling that in my code behind file.From front-end form , i'm entering new value and trying to update it. My code for update is as below -
@ProductID char(15),
@NewProductID char(15) = NULL,
Update ProductTable SET ProductID = @NewProductID WHERE ProductID = @ProductID
Please help me out.
Thanks in advance,
Teena
In my code, i have a ProductID which contains '&' character like "pen&pencil".I tried to update this as "pen&paper" from front end into database.But,database doesn't accept this changes..it remains as "pen&pencil"..Actually,I have created stored procedure for "update" and calling that in my code behind file.From front-end form , i'm entering new value and trying to update it. My code for update is as below -
@ProductID char(15),
@NewProductID char(15) = NULL,
Update ProductTable SET ProductID = @NewProductID WHERE ProductID = @ProductID
Please help me out.
Thanks in advance,
Teena