I have been reading this forum and have found it very helpful, so I decided to join. I just started incorporating Ajax in asp pages and I am still learning it, but the current page I am working on has had me debug for days and it is not going anywhere.
First, I have a condition in the Page_load method:
if (!IsPostBack && !IsAsync){//Stuff LoadData(); DataBind();}
I have a control that extends a grid view and has Ajax functionality incorporated into it and allows edit and delete on a row, or click a new button. When Edit or new is clicked a panel pops up, which is in an update panel and the background (the grid view) grays out. After I save the changes by clicking the Save button in the edit panel, the grid shows the saved row. Next time I click edit or new, however, the edit panel cannot load fully, and the method that is getting called that loads the panel doesn't get called.
Further, if I click edit and cancel, and then edit again or some other action, one of the columns in the grid disappears, and that is one that is populated dynamically.
When I refresh the page, things go back to normal. I am in over my head, and not sure how to get this working.
Any help is appreciated
Thank you!!!
Controls that Are Not Compatible with UpdatePanel Controls
The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported inside anUpdatePanel control:
TreeView andMenu controls.
You can see the online documentaion here
http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx
Thanks for responding. I ended up implementing custom validation using Javascript and it looks great now. Thanks!
No comments:
Post a Comment