在2005中应用 ScriptManager 和UpdatePanel 实现ajax 要设置那些属性?我直接将控件放到UpdatePanel里无法实现?
------解决方案--------------------------------------------------------
不需要设任何属性,只要ScriptManager放在最前面 <body>之后即可
例如:
<body style= "margin-left:0;margin-top:0; font-size:12px; ">
<form id= "form1 " runat= "server ">
<asp:ScriptManager ID= "ScriptManager1 " runat= "server ">
</asp:ScriptManager>
<asp:UpdatePanel ID= "UpdatePanel1 " runat= "server ">
<ContentTemplate>
<table style= "width: 100% ">
<tr>
<td style= "width: 100px ">
<asp:TreeView ID= "tvCatalog " runat= "server " ExpandDepth= "2 " OnSelectedNodeChanged= "tvCatalog_SelectedNodeChanged "
ShowLines= "True ">
</asp:TreeView>
<asp:TextBox ID= "txtApplyID " runat= "server " style= "display:none "> </asp:TextBox> </td>
<td>
<asp:GridView ID= "dvAsset_Bestow_Catalog " runat= "server " AutoGenerateColumns= "False "
Height= "100% " Width= "100% ">
<Columns>
<asp:TemplateField Visible= "False ">
<HeaderTemplate>
</HeaderTemplate>
<HeaderStyle Width= "20px " />
<ItemTemplate>
<input id= "IsSelect " onclick= "chk(this) " type= "checkbox " />
</ItemTemplate>
<ItemStyle Width= "20px " />
</asp:TemplateField>
<asp:BoundField DataField= "CatalogID " HeaderText= "CatalogID " Visible= "false " />
<asp:BoundField DataField= "DeviceName " HeaderText= "名称 ">
<ItemStyle Width= "80px " />
<HeaderStyle Width= "80px " />
</asp:BoundField>
<asp:BoundField DataField= "DeviceDesc " HeaderText= "备注(资产说明) " />
<asp:TemplateField>
<ItemTemplate>
<img onclick= "javascript:window.open( 'InputNum.aspx?ApplyID= '+document.all( 'txtApplyID ').value+ '&DeviceID= <%#Eval( "CatalogID ") %> ', 'newwindow ', 'width=400,height=150,left=300,top=200 '); "
src= "../../Images/edit.gif " style= "cursor: hand; " alt= " "/> </td>
</ItemTemplate>
</asp:TemplateField>