Wednesday, March 21, 2012

AJAX and gridview

I have a simple gridview in a updatepanel - like so

<

asp:UpdatePanelID="UpdatePanel1"runat="server"UpdateMode="Conditional"><ContentTemplate>

<

asp:GridViewID="GridView1"runat="server"AutoGenerateColumns="False"AutoGenerateEditButton="True"><Columns><asp:BoundFieldDataField="CategoryName"HeaderText="Category"SortExpression="CategoryName"/></Columns>

</

asp:GridView></ContentTemplate>

</

asp:UpdatePanel>

But the edit and button generated by the gridview doesnt seem to act as any type of trigger - is there a simple example out to show how to use the gridview (or other traditional and databound controls) with the update panel and AJAX?

Okay I have to agree with this blog post

http://www.gridviewgirl.com/GridViewGirl/SqlDataSourceAGoodThing.aspx

All of the examples I have seen in the Atlas stuff seem to depend on the DataObjects - is there a way to use a DAL and binding the gridview in code to use AJAX from microsoft?g

No comments:

Post a Comment