Edititemtemplate not updating




















Accept Solution Reject Solution. Posted 9-Dec am 07navneet. Hi, If your data updated successfully on database table then you call the function which is bind the data on gridview, after the update function. Posted 8-Dec pm Jitendra Parida - Jeetu. After entering new edit value I am fetching the text of 'txtname. I dnt think your table is updating with this query so your data is not updating in the grid. Try this : SQL. Posted 8-Dec pm Manish. Add your solution here.

OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account. Template Field. Please rate your experience Yes No. Any additional feedback? Namespace: System. WebControls Assembly: System. In this article. I tried trapping the value of the ddl in the "itemUpdating" event and assigning it to "e. NewValues "decision" " and if I put a breakpoint in the code I see the correct value being assigned but that doesn't work either. Not sure how one databound parameter will update but the other won't when no error is being thrown?

UPDATE: I created a new page with a new datasource and listview, allowed the wizard to create the listview templates, substituted my dropdownlist above for the auto-generated text field, and it works fine Hi Imad: I showed it in the original post I'm just binding the dropdownlist directly in the edititemtemplate, and I showed the update statement in the sqldatasource.

When I removed the column name from the "datakeynames" in the listview, the selected value in the dropdownlist started to update properly. You maybe simply set the DataKeyNames e. Please read the reference below for more information:. ListView Update Parameters do not Bind. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 2 months ago. Active 6 years, 6 months ago. Viewed times. Earlier the field was like below. Improve this question. Have you use OnRowUpdating event in gridview webblogsforyou.



0コメント

  • 1000 / 1000