posted @ 2009-01-07 10:52 billpeng 阅读(477) 评论(0) 推荐(0) 编辑
摘要:
// JScript 文件 //预览 function preview() { oFCKeditor.Value=FCKeditorAPI.GetInstance('FCKeditor1').GetXHTML(true); FCKeditorAPI.GetInstance('FCKeditor1').Preview(); } //源代码/编辑转换 function viewsrc() { v... 阅读全文
摘要:
1. “必须”在Page_Load的时候生成控件以及绑定事件。 2. 加载的代码不能包含在if (!IsPostBack){...}中。 3. 不要忘记设置控件的ID。 阅读全文
posted @ 2008-12-28 23:39 billpeng 阅读(264) 评论(0) 推荐(0) 编辑
摘要:
ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "updateScript", "alert('更新成功');", true); 阅读全文
posted @ 2008-12-28 20:43 billpeng 阅读(191) 评论(0) 推荐(0) 编辑
摘要:
将 bitmap.Save(page.Response.OutputStream, ImageFormat.Png); 改为: MemoryStream MemStream = new MemoryStream(); bitmap.Save(MemStream, ImageFormat.Png); MemStream.WriteTo(page.Re... 阅读全文
posted @ 2008-12-24 11:08 billpeng 阅读(455) 评论(1) 推荐(0) 编辑
摘要:
原因分析:
由于动态往DropDownList中添加了新项,导致DropDownList中的项目与隐藏域中记录的项目不符,所以就出现了“回发或回调参数无效”问题。
网上也有说通过 protected override void Render(System.Web.UI.HtmlTextWriter writer)事件,ClientScript.RegisterForEventValidation方法向隐藏域中注册项。我试了好多次,也没有成功。
阅读全文
posted @ 2008-12-14 00:58 billpeng 阅读(606) 评论(0) 推荐(0) 编辑
摘要:
在使用了母版页的内容页后,如何在javascript中调用服务器控件值 阅读全文
posted @ 2008-12-13 17:58 billpeng 阅读(817) 评论(0) 推荐(0) 编辑
摘要:
转自:http://www.cnblogs.com/over140/archive/2008/06/16/1222908.html 阅读全文
posted @ 2008-12-11 01:14 billpeng 阅读(1710) 评论(0) 推荐(0) 编辑