标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-00742 ORA-01110 ORA-01555 ORA-01578 ORA-08103 ORA-600 2131 ORA-600 2662 ORA-600 2663 ORA-600 3020 ORA-600 4000 ORA-600 4137 ORA-600 4193 ORA-600 4194 ORA-600 16703 ORA-600 kcbzib_kcrsds_1 ORA-600 KCLCHKBLK_4 ORA-15042 ORA-15196 ORACLE 12C oracle dul ORACLE PATCH Oracle Recovery Tools oracle加密恢复 oracle勒索 oracle勒索恢复 oracle异常恢复 ORACLE恢复 Oracle 恢复 ORACLE数据库恢复 oracle 比特币 OSD-04016 YOUR FILES ARE ENCRYPTED 勒索恢复 比特币加密文章分类
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (102)
- 数据库 (1,698)
- DB2 (22)
- MySQL (74)
- Oracle (1,559)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (8)
- Oracle ASM (68)
- Oracle Bug (8)
- Oracle RAC (53)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (571)
- Oracle安装升级 (93)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (81)
- PostgreSQL (18)
- PostgreSQL恢复 (6)
- SQL Server (27)
- SQL Server恢复 (8)
- TimesTen (7)
- 达梦数据库 (2)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (37)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (20)
-
最近发表
- Bug 21915719 Database hang or may fail to OPEN in 12c IBM AIX or HPUX Itanium – ORA-742, DEADLOCK or ORA-600 [kcrfrgv_nextlwn_scn] ORA-600 [krr_process_read_error_2]
- ORA-600 ktuPopDictI_1恢复
- impdp导入数据丢失sys授权问题分析
- impdp 创建index提示ORA-00942: table or view does not exist
- 数据泵导出 (expdp) 和导入 (impdp)工具性能降低分析参考
- 19c非归档数据库断电导致ORA-00742故障恢复
- Oracle 19c – 手动升级到 Non-CDB Oracle Database 19c 的完整核对清单
- sqlite数据库简单操作
- Oracle 暂定和恢复功能
- .pzpq扩展名勒索恢复
- Oracle read only用户—23ai新特性:只读用户
- 迁移awr快照数据到自定义表空间
- .hmallox加密mariadb/mysql数据库恢复
- 2025年首个故障恢复—ORA-600 kcbzib_kcrsds_1
- 第一例Oracle 21c恢复咨询
- ORA-15411: Failure groups in disk group DATA have different number of disks.
- 断电引起的ORA-08102: 未找到索引关键字, 对象号 39故障处理
- ORA-00227: corrupt block detected in control file
- 手工删除19c rac
- 解决oracle数据文件路径有回车故障
分类目录归档:JavaScript
flash幻灯片
以前一直想写这个这个类此的东西,都苦于没有项目驱动,这次因项目需要,真的搞了一个出来
js代码(导入js文件未给出)
AC_FL_RunContent('type', 'application/x-shockwave-flash', 'data', 'img/advertising.swf?xml=ahsx/flash.ashx', 'width', '300', 'height','200', 'id', 'xifenfei_flash', 'movie', 'img/advertising?xml=ashx/flash.ashx');
c#生成类xml代码
System.Text.StringBuilder str = new System.Text.StringBuilder(); str.Append("<data> <channel>"); str.Append(" <item><link>http://www.baidu.com</link>").Append(" <image>1.jpg</image>").Append(" <title>111111</title></item>"); str.Append(" <item> <link>http://http://www.baidu.com</link>").Append(" <image>2.jpg</image>").Append(" <title>222222</title></item>"); str.Append(" <item> <link>http://www.baidu.com</link>").Append(" <image>3.jpg</image>").Append(" <title>333333</title></item>"); str.Append(" <item> <link>http://www.baidu.com</link>").Append(" <image>1.jpg</image>").Append(" <title>444444</title></item>"); str.Append(" <item> <link>http://www.baidu.com</link>").Append(" <image>2.jpg</image>").Append(" <title>555555</title></item>"); str.Append(" <item> <link>http://www.baidu.com</link>").Append(" <image>3.jpg</image>").Append(" <title>666666</title></item>"); str.Append(" </channel>"); str.Append("</data>"); context.Response.Write(str.ToString());
note:仅供测试,没有和数据库关联起来
发表在 Asp.Net, JavaScript
评论关闭
fckeditor使用说明
在asp.net中使用fckeditor比freetextbox复杂的多,但是这个是完全开源,开源自己控制
配置:web.config中
<appSettings> <add key="FCKeditor:BasePath" value="~/fckeditor/"/> </appSettings>
修改fckcofig.js文件(主要)
var _FileBrowserLanguage = 'aspx' ; var _QuickUploadLanguage = 'aspx';
修改config.asx文件,主要是为了实现不同用户的文件夹放置位置不同
private bool CheckAuthentication() { if (Session["vip"] == null ||Session["vip"].ToString() == "") { Session["vip"] = "public"; } return true; } UserFilesPath = "../../../../../upload/" + Session["vip"].ToString(); string file_path = folder.Create_folder("../../../../../upload/" + Session["vip"].ToString()); UserFilesAbsolutePath = file_path;TypeConfig[ "Image" ].AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" }; TypeConfig[ "Image" ].DeniedExtensions = new string[] { }; TypeConfig[ "Image" ].FilesPath = "%UserFilesPath%"+Session["vip"].ToString()+"/"; TypeConfig[ "Image" ].FilesAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" ); TypeConfig[ "Image" ].QuickUploadPath = "%UserFilesPath%"; TypeConfig[ "Image" ].QuickUploadAbsolutePath = ( UserFilesAbsolutePath == "" ? "" : "%UserFilesAbsolutePath%" );
发表在 Asp.Net, JavaScript
一条评论
dropdownlist 省市县三级联动
因为开发环境是asp.net所以采用服务器端控件实现三级联动
HTML代码:
<asp:DropDownList ID="ddls" runat="server"></asp:DropDownList> <asp:DropDownList ID="ddlc" runat="server"></asp:DropDownList> <asp:DropDownList ID="ddlx" runat="server"></asp:DropDownList> <input id="h_s" type="hidden" runat="server"/> <input id="h_c" type="hidden" runat="server"/> <input id="h_a" type="hidden" runat="server"/>
note:hidden 是为了以后在c#代码中能够取到dropdownlist选中的值
js代码:
$(document).ready(function () { //选择省操作 $("#ddls").change(function () { var selects_v = $("#ddls").val(); $("#h_s").val(selects_v); if (selects_v == "0") { $("#ddlc option:first").attr("selected", "selected"); $("#ddlx option:first").attr("selected", "selected"); $("#ddlc").attr("disabled", "disabled"); $("#ddlx").attr("disabled", "disabled"); } else { $("#ddlc option").remove(); $("#ddlc").attr("disabled", ""); $("#ddlx option:first").attr("selected", "selected"); $("#ddlx").attr("disabled", "disabled"); $("#ddlc").append("<option value='0'>请选择市</option>"); $.getJSON("./ashx/select_province.ashx?s=" + selects_v + "&a" + Math.random(), function (data) { $.each(data.root, function (id, item) { $("#ddlc").append("<option value='" + item.code + "'>" + item.name + "</option>"); }); }); } }); //ddlx选择市 $("#ddlc").change(function () { var s_c = $("#ddlc").val(); $("#h_c").val(s_c); if (s_c == "0") { $("#ddlx")[0].selectedIndex = 0; $("#ddlx").attr("disabled", "disabled"); } else { $("#ddlx option").remove(); $("#ddlx").attr("disabled", ""); $("#ddlx").append("<option value='0'>请选择县</option>"); $.getJSON("./ashx/select_city.ashx?s=" + s_c + "&a" + Math.random(), function (data) { $.each(data.root, function (id, item) { $("#ddlx").append("<option value='" + item.code + "'>" + item.name + "</option>"); }); }); } }); //选择对应的县 $("#ddlx").change(function () { var s_a = $("#ddlx").val(); $("#h_a").val(s_a); }); });
c#初始化dropdownlist数据
protected void Bindddls() { SqlDataReader dr = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, CommandType.StoredProcedure, "get_province"); ddls.DataTextField = "name"; ddls.DataValueField = "code"; ddls.DataSource = dr; ddls.DataBind(); dr.Close(); ddls.Items.Insert(0,new ListItem("请选择省", "0")); } protected void Bindddlc() { string sValue = ddls.SelectedValue; if (sValue == "0") { ddlc.Items.Add(new ListItem("请选择市", "0")); ddlc.Enabled = false; } else { SqlDataReader dr = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, CommandType.StoredProcedure, "get_city"); ddlc.DataTextField = "name"; ddlc.DataValueField = "code"; ddlc.DataSource = dr; ddlc.DataBind(); dr.Close(); ddlc.Items.Insert(0,new ListItem("请选择市", "0")); } } protected void Bindddla() { string cValue = ddlc.SelectedValue; if (cValue == "0") { ddlx.Items.Add(new ListItem("请选择县", "0")); ddlx.Enabled = false; } else { SqlDataReader dr = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, CommandType.StoredProcedure, "get_area"); ddlx.DataTextField = "name"; ddlx.DataValueField = "code"; ddlx.DataSource = dr; ddlx.DataBind(); dr.Close(); ddlx.Items.Insert(0, new ListItem("请选择县", "0")); } }
ashx文件代码
select_province.ashx文件
if (HttpContext.Current.Request["s"] != null) { string sv = HttpContext.Current.Request["s"].ToString(); SqlDataReader dr = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, CommandType.StoredProcedure , "get_city", new SqlParameter("@sid", sv)); string json = Object_Json.ToJson(dr); dr.Close(); HttpContext.Current.Response.Write(json); HttpContext.Current.Response.End(); } else { HttpContext.Current.Response.Write("error"); HttpContext.Current.Response.End(); }
select_city.ashx文件
if (HttpContext.Current.Request["s"] != null) { string sv = HttpContext.Current.Request["s"].ToString(); System.Data.SqlClient.SqlDataReader dr = xifenfei.mssql.SqlHelper.ExecuteReader(xifenfei.mssql.SqlHelper.ConnectionStringLocalTransaction, System.Data.CommandType.StoredProcedure , "get_area", new System.Data.SqlClient.SqlParameter("@sid", sv)); string json = Object_Json.ToJson(dr); dr.Close(); HttpContext.Current.Response.Write(json); HttpContext.Current.Response.End(); } else { HttpContext.Current.Response.Write("error"); HttpContext.Current.Response.End(); }
发表在 Asp.Net, JavaScript
评论关闭