Listview itemupdating event not firing

Rated 3.81/5 based on 617 customer reviews

Seems a little strange that the button type would have an impact such as this. I have used image buttons a lot in Grid Views and they work well there. In that case the framework can not locate these fields and the update (and insert) parameters are not filled automatically ...

I just replaced asp:table with normal html table tags and everything started working...

I have to add some business logic on the Item Updating event of this Form View.

There is a page with a Form View bound to a Object Data Source.

Well I have no time to dig deep now, may be later I will inform you my finding.

Actually, if you read more carefully you'll see that the behavior you desire is only defined for the Button class - not the Link Button class.

However, although the Validator was set to Invisible, the underying validation still took place upon ' Update' button click.

What I have done to narrow down the problem:(1) Replace Object Data Source with an equivalent Access Data Source : same problem.(2) Check that sequence, parameter names and number of Bind("xxx") in Edit Item Template is identical to Object Data Source's parameter collection(3a) Create a new Test.aspx, using Access Data Source, update command works.(3b) Then I copy and paste the exact coding from the problem aspx to ....this modified works, to my amazement !!! This aspx works......until not knowing when.....update command problem happen again.|If Use Submit Behavior is true (default), the button makes a normal POST submit, instead of invoking the ASP. Apparently the Form View commands only work if invoked through javascript-submit. i just solve my problem last case is i use updatepanel, so i need to wrap everyting include the objectdatasource with in the update i also remove the fileupload control from my formview since it not really flexible with update panel and formview.None of these solutions worked, and I'm a little reluctant to use a workaround for something like data validation. if really cant work, u can try this : protected void btn Update_click(object sender, object sender, Event Args e) on the objectdatasource event set onupdated="objectdatasource1_updated" protected void objectdatasource1_updated(object sender, Object Data Source Status Event Args e) hope this help, Label control's text doesn't appear to be set (in the page which has a user control )when trying to update the text property in the Form View's Item Updated event Hi There, I have a user control which hosts a formview control, gridview control and a label control.Unfortunately, some the data that I need to add this business logic is not exposed on the Form View user-interface itself, so I can not use Find Control to get the values (I could add the controls, bind them to the fields I need and set their visible property to true, but that's ugly).I have something like this: bool prevent Events; protected void Page_Load(object sender, eventargs e) { prevent Events = do Some Validation();[code]....

Leave a Reply