Home All Groups Group Topic Archive Search About

How to refresh a dropdownlist inside a DetailsView?

Author
10 Mar 2006 6:16 AM
=?UTF-8?Q?"Matti_Puroj=C3=A4rvi
Hi

I have a DetailsView which datasource is from Northwind's products table.
The "Select Category"- dropdownlist is used to select the category for the
new product.

While inserting a new product the user might have a situation, that the new
product's category is a one does not exist in the Categories table.
By now I have used an additional Category-DetailsView inside the
Products-DetailsView. Everything goes fine until refreshing the "Select
Category"-ddlist by Databind method which ,however, clears textboxes
(Product Name etc.have to be refilled).

What is the best procedure to add the new category without refilling the
product details again?

With rgds

Author
12 Mar 2006 11:23 AM
matti.purojarvi
Hi

Problem solved by using a MagicAjax's AjaxPanel. Now it is  easy to add
a new category while adding a new product without refilling the form.
But, however, if You have some other solution, I'll be glad to hear
that too.

Rgds


Matti Purojärvi kirjoitti:

Show quoteHide quote
> Hi
>
> I have a DetailsView which datasource is from Northwind's products table.
> The "Select Category"- dropdownlist is used to select the category for the
> new product.
>
> While inserting a new product the user might have a situation, that the new
> product's category is a one does not exist in the Categories table.
> By now I have used an additional Category-DetailsView inside the
> Products-DetailsView. Everything goes fine until refreshing the "Select
> Category"-ddlist by Databind method which ,however, clears textboxes
> (Product Name etc.have to be refilled).
>
> What is the best procedure to add the new category without refilling the
> product details again?
>
> With rgds