代码改变世界

Ajax 调用aspx页面,Repeater呈现

2010-08-06 20:02  音乐让我说  阅读(289)  评论(0编辑  收藏  举报

代码如下:

 

		Thread.Sleep(2000);
                DataTable houseDt = CreateTestData(Request["pageIndex"]);
                this.Repeater1.DataSource = houseDt;
                this.Repeater1.DataBind();
                Response.Clear();
                StringWriter sw = new StringWriter();
                HtmlTextWriter htw = new HtmlTextWriter(sw);
                Repeater1.RenderControl(htw);
                Response.Write(sw.ToString());
                Response.End();

 

等待更新...