日期:2014-05-19  浏览次数:20363 次

刷新问题
<asp:DropDownList   ID= "DropDownList1 "   runat= "server "   Width= "337px "   AutoPostBack= "True ">
              <asp:ListItem> 你好! </asp:ListItem>
              <asp:ListItem> 是的! </asp:ListItem>
</asp:DropDownList>

当DropDownList1发生SelectedIndexChanged事件时,把它的值放到TEXTBOX中,
可是这个事件每次都会要刷一下页面,这个问题应该怎么解决!

包括TEXTBOX的TextChanged事件等都会有这样的问题,应该怎么解决这个问题?


------解决方案--------------------
最简单的:

去网上下个MagicAjax,然后引用进来.

拖出AjaxPanel,在前台的aspx代码中,框住你想无刷新的地方即可.
....
....
<ajax:AjaxPanel ID= "AjaxPanel1 " runat= "server " meta:resourcekey= "AjaxPanel1Resource1 " >
....................
...................
</ajax:AjaxPanel>