D
Daves
(using 2.0) I have a page for viewing products and each product is assigned
to several categories.
On this page I have a FormView and an AccessDataSource. The ItemTemplate
shows the product details while InsertTemplate allows creating new product.
I thought the easiest way to persist the category value would be to put it
into a hidden field in the ItemTemplate (since the user doesn't need to see
it in the FormView) and then have it inserted along with the other input
fields using
InsertCommand="INSERT INTO [prProducts] ([Title], [Content], [Category]
VALUES (@Title, @Content, @original_Category)"
This should grab the Category databound value from the ItemTemplate and
parse it forward to the Insert query but it doesn't seem to work?
to several categories.
On this page I have a FormView and an AccessDataSource. The ItemTemplate
shows the product details while InsertTemplate allows creating new product.
I thought the easiest way to persist the category value would be to put it
into a hidden field in the ItemTemplate (since the user doesn't need to see
it in the FormView) and then have it inserted along with the other input
fields using
InsertCommand="INSERT INTO [prProducts] ([Title], [Content], [Category]
VALUES (@Title, @Content, @original_Category)"
This should grab the Category databound value from the ItemTemplate and
parse it forward to the Insert query but it doesn't seem to work?