![]() |
| ||
| Problem with Edit/Update in GridView... Hi, I just add a GridView with Edit option. I connected it to DataSource. Now, one field is a date, so I convert it's column to a template and added in the editItem template an ajax calendar extender which connected to the Texbox and works by clicking a button which I also added in the editItem template. my problem is, When the caldendar appears and I select a new date, it show in the Textbox but when I press Update the new date I just entered isnt update at all.. what I did wrong? aspx code of editItem template: <asp:TemplateField HeaderText="ord_date" SortExpression="ord_date"> and aspx code of update: UpdateCommand="UPDATE [sales] SET [ord_date] = @ord_date, [qty] = @qty, [payterms] = @payterms WHERE [stor_id] = @original_stor_id AND [ord_num] = @original_ord_num AND [title_id] = @original_title_id AND [ord_date] = @original_ord_date AND [qty] = @original_qty AND [payterms] = @original_payterms"> How to fix it. Thanks. |
| ||
| Re: Problem with Edit/Update in GridView... Hi Try to find the value of the grid's control Dim MyTxt As TextBox Let me know if it solves your problem! |
| ||
| Re: Problem with Edit/Update in GridView... Sorry, it didnt worked. Still not updating. what else to do? Thanks... |
| All times are GMT -4. The time now is 11:10 am. |
Forum system based on vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2003 - 2010 DaniWeb® LLC