K
kbutterly
All,
I have a menu which contains Category as the master and Product as the
child.
When I click on a Category in the menu, I want one formView control,
fvpc, to show, and then when I click on a Product, I want a different
formview, fvp, to show.
Is it best to have the two forms on separate pages, productView.aspx
and CategoryView.aspx? The reason I ask is that I have a problem with
my current page design and that usually means I am going about
something incorrectly.
I currently have everything, the menu and the two formview controls, on
one page. The problem is when I click a product, its form shows, but
when I click a category after picking a product, the product form still
is on the screen along with the category form.
This is the code I have for MenuItemClick
Dim fvpc As FormView = Me.fvProductCategory
Dim fvp As FormView = Me.fvProduct
If e.Item.Depth = 0 Then
fvpc.DataBind()
ElseIf e.Item.Depth = 1 Then
fvp.DataBind()
End If
So I guess my question is twofold. Is doing all this on one page best
practice? If so, how do I 'unbind' one formview control?
Thanks,
Kathryn
I have a menu which contains Category as the master and Product as the
child.
When I click on a Category in the menu, I want one formView control,
fvpc, to show, and then when I click on a Product, I want a different
formview, fvp, to show.
Is it best to have the two forms on separate pages, productView.aspx
and CategoryView.aspx? The reason I ask is that I have a problem with
my current page design and that usually means I am going about
something incorrectly.
I currently have everything, the menu and the two formview controls, on
one page. The problem is when I click a product, its form shows, but
when I click a category after picking a product, the product form still
is on the screen along with the category form.
This is the code I have for MenuItemClick
Dim fvpc As FormView = Me.fvProductCategory
Dim fvp As FormView = Me.fvProduct
If e.Item.Depth = 0 Then
fvpc.DataBind()
ElseIf e.Item.Depth = 1 Then
fvp.DataBind()
End If
So I guess my question is twofold. Is doing all this on one page best
practice? If so, how do I 'unbind' one formview control?
Thanks,
Kathryn