标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 kfed MySQL恢复 ORA-00312 ORA-00607 ORA-00704 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,682)
- DB2 (22)
- MySQL (73)
- Oracle (1,544)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (159)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (7)
- Oracle ASM (67)
- Oracle Bug (8)
- Oracle RAC (53)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (565)
- Oracle安装升级 (92)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (79)
- 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)
-
最近发表
- 断电引起的ORA-08102: 未找到索引关键字, 对象号 39故障处理
- ORA-00227: corrupt block detected in control file
- 手工删除19c rac
- 解决oracle数据文件路径有回车故障
- .wstop扩展名勒索数据库恢复
- Oracle Recovery Tools工具一键解决ORA-00376 ORA-01110故障(文件offline)
- OGG-02771 Input trail file format RELEASE 19.1 is different from previous trail file form at RELEASE 11.2.
- OGG-02246 Source redo compatibility level 19.0.0 requires trail FORMAT 12.2 or higher
- GoldenGate 19安装和打patch
- dd破坏asm磁盘头恢复
- 删除asmlib磁盘导致磁盘组故障恢复
- Kylin Linux 安装19c
- ORA-600 krse_arc_complete.4
- Oracle 19c 202410补丁(RUs+OJVM)
- ntfs MFT损坏(ntfs文件系统故障)导致oracle异常恢复
- .mkp扩展名oracle数据文件加密恢复
- 清空redo,导致ORA-27048: skgfifi: file header information is invalid
- A_H_README_TO_RECOVER勒索恢复
- 通过alert日志分析客户自行对一个数据库恢复的来龙去脉和点评
- ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的SERVICE_NAME
分类目录归档: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
评论关闭