- 博客(16)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 .net版ueditor在Repeater中动态生成
实现方法两种,其中的实现思路主要为找到TextBox的ClientID,在用UE.getEditor(ClientID)加载编辑器:1、先在页面Repeater中动态生成TextBox,做为编辑区域,页面加载完成后,根据页面Repeater嵌套方式及页面布局,通过写js方法,查找到编辑区域TextBox,再给相应的TextBox添加属性UE.getEditor(id),生成了编辑器。其中,
2013-10-28 15:33:32
1244
原创 ueditor出现:本地测试上传图片成功,而公网测试提示错误:“网络链接错误,请检查配置后重试!”
原因:本地测试时net文件夹下的uploader.cs文件是存在的,而网站发布后,net文件夹下的uploader.cs文件不存在了,所以网站发布后,在公网测试时,需要把upload.cs文件拷贝过去。
2013-10-28 14:48:40
1996
转载 asp.net中对UEditor编辑器的一些操作
//参考文档:http://ueditor.baidu.com/doc///UEditor:http://ueditor.baidu.com/website/onlinedemo.html//得到编辑器中选中的文本 function getSelect() { var editor = UE.getEditor('myEditor');
2013-08-05 14:52:59
965
转载 序列化和反序列化
public class JsonHelper { /// /// JSON序列化 /// public static string JsonSerializer(T t) { DataContractJsonSerializer ser = new Data
2013-07-22 11:46:02
601
转载 AutoCompleteExtender需要注意的问题(参数类型,参数名称,返回值类型)
在这里需要注意以下几点: 1.由于该WEB服务是为Ajax框架提供服务的,因此在类声明之前得加上属性声明: [System.Web.Script.Services.ScriptService] 2.特别需要注意的是GetTextString这个方法。凡是为AutoCompleteExtender控件提供服务的方法都必需完全满足以下三个条件: A.方法的返回类
2013-07-22 11:30:33
1228
转载 sql自定义编号(日期+数字)
根据搜索到的方法,改进为自定义函数通过下列语句获取当前最大的订单号select isnull(left(max(XmId),8)+right('0000'+cast(convert(int,right(max(XmId),4))+1 as varchar),4),CONVERT(varchar(100), getdate(), 112)+'0001') from mt_Work
2013-07-02 10:40:44
1870
原创 sql存储过程,分页,数据量
create procedure getAByPage --得到部门信息,注:@id:大于0,取单条数据;小于等于0时,若@pageOrCount=1:多少条数据,@pageOrCount=2取分页数据@id int,@pageOrCount int,@pageCount int,@pageIndex int,@Name varchar(200),@Text varchar(max),@
2013-06-26 17:45:23
620
转载 Dictionary 通过Key找value,通过value找key
Dictionary例如:Dictionary dic1、通过Key找valuestring strValue=dic[kye];2、通过value找keystring strValue="北京一中";var query=from d in dic where d.value==strValue select d.key;
2013-06-26 17:41:22
7168
转载 客户端Script不弹出对话框的原因:
1、 this.Page.ClientScript.RegisterStartupScript(this.GetType(), "add_longConverDetails1", "alert('填空题题干不能为空,请输入!');");原因是第二个参数,即key值不能重复 2、当使用ScriptManager时,就不能使用上面的提示,应用:ScriptManager.RegisterS
2013-06-26 17:31:23
1658
转载 asp.net登录页面验证码
1、checkCode.ashxpublic void ProcessRequest (HttpContext context) { //context.Response.ContentType = "text/plain"; //context.Response.Write("Hello World"); string g = Gener
2013-06-26 17:29:58
1082
原创 GridView+Page(Gidview及分页)
1、js判断是否选择数据 function judgePass() { var checkNum = document.getElementById("").value; if (checkNum == "0" || checkNum == "") { alert("请先选择要操作的
2013-06-26 17:24:09
836
转载 c# 对字符串加密解密
对同一个字符串加解密时,密钥要相同//加密,其中,encryptString:代表要加密的字符串,encryptKey:相当于密匙,就是8个数字的组合public string EncryptDES(string encryptString, string encryptKey) { try { byte[]
2013-01-29 13:32:01
756
转载 js获取CKEditor内容
1、获取CKEditor被选中的内容var mySelection = CKEDITOR.instances.ckStem.getSelection(); if (CKEDITOR.env.ie) { mySelection.unlock(true); data = mySelection.getNative().creat
2013-01-23 11:12:28
1199
转载 asp.net 读取word文档
using Microsoft.Office.Interop; using Microsoft.Office; public string GetText(string fileName) { //实例化COM Microsoft.Office.Interop.Word.ApplicationClass wordApp
2013-01-23 11:06:37
594
原创 GridView分页数据处理,在sql存储过程中取得每页数据
主要是对数据制造伪列,row_number() over(order by 列名 DESC) 例如:存储过程如下(这是使用中简化后的存储过程,有待改进)create procedure getDataByPage --分页得到数据@pageCount :代表每页有多少条数据,@pageIndex:代表第几页@pageCount int,@pageIndex intasdecl
2013-01-22 17:31:16
496
原创 JS与.aspx.cs文件的数据交互
一、在做.net相关项目时,会出现在JavaScript中能访问HTML服务器控件,而无法访问Web服务器控件,现在搜集到解决方法了:1、后台.asp.cs文件中调用js1) string jsStr=@" language='JavaScript'>test()";2) this.Page.ClientScript.RegisterStartupScript(this.GetTy
2011-09-23 18:00:00
1945
FastReport使用RegisterData注册数据
2014-12-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人