Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update panel problem
Message
De
24/02/2009 10:25:12
 
 
Information générale
Forum:
ASP.NET
Catégorie:
AJAX
Divers
Thread ID:
01383610
Message ID:
01383751
Vues:
37
>>>>Has anyone here used an ajax update panel inside a formview? It seems the controls inside the update panel are not visible to the formview's update method. Mine are coming up with a value of null. Is this normal and is there a workaround?
>>>>Thanks
>>>
>>>Why do you want to place the panel inside the FormView? Should it be the other way around (FormView inside the Panel)?
>>
>>Hi Naomi
>>The formview contains a questionairre with 15 questions and about 100 subquestions. They are mostly radio button lists and checkboxes. I wanted to manipulate some of the controls via a partial refresh (turn the subquestions on and off based on the answers to the main questions). I have the notion that this is what the update panel is designed for (refreshing just part of the page). It's kind of like this . . .
>>
>>Do you blah, blah . . .
>>
>>If yes do you blah, blah . . .
>>
>>I wanted to turn off (disable) the second question if the first answer was no. This would avoid an inconsistent answer No/Yes.
>
>Don,
>
>I'm not sure I follow everyting, but how about collapsible panels or using JavaScript to show/hide based on the first question answers?
>
>BTW, you may get better luck if you also ask your question in ASP.NET forums AJAX forum.

Thanks Naomi. I'm not sure what you mean by collapsible panels but I did end up writing a JS which worked as envisioned except for one rather major problem. My approach was to uncheck and disable the checkboxes when having them checked would be inappropriate. My problem arises with a reedit of the data. If the secondary checkbox was saved as true and then the user changes his/her mind and makes a new choice on the first question (thereby programmatically unchecking and disabling the second checkbox), the false value of the second checkbox will not be saved because disabled controls are not recognized in the save function of the formview. So my method is wrong to begin with but I don't have any other grand ideas at this moment. Thanks for your interest anyhow, and btw - I thought I had placed the post in the AJAX forum.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform