oaklandco
04-09-2007, 11:42 PM
Good Evening,
I'm using the lastest Ajax.Net release and .Net 2.0.
My problem lies with update panels in formview - insert mode.
I have drop down lists databound in update panels, when I submit to insert, everything but the fields in the update panels posts to the database. I know that I can simply embody the whole formview in an updatepanel for this to work, but this defeats the whole purpose.
If there are any ideas for this situation, that would be helpful!
--Thank You.
PeOfEo
04-10-2007, 11:17 AM
A post to the server from outside the update panel which has partial update set to true should post the whole page including the update panel I would imagine. If you want the form to post and update the update panel without posting the whole page then you are going to need to encapsulate the whole form into the update panel.
I may be doing something similar here, but I do my insert at the very end (I fire a method with a massive case statement which has a tracking variable associated with it when I do a partial post). Values to be inserted are used as variables until the insert method fires at which point I link everything together where it is supposed to be. Basically what I have made is a cascading drop down list of possible locations of rack mounted hardware on our campus, the top is a building list, the user can select a building from the list or add a new one, if he selects a building I move on to case 2 w here he selects a room or adds one, then too the rack or where ever, so on and so fourth. If he adds a new building, he does so in a text box adjacent to the drop down list, when he does that I have another case where the user is to insert a new rack, new slot, new room, whatever. Then at the very end after everything that is existing and everything that needs to be inserted comes together I perform the needed operation. I do not do inserting in the middle, thus I do not update my drop down lists. Is this at all similar to what you are doing, like with a rather lengthy form that may be inserting to many tables?