珂珂的个人博客 - 一个程序猿的个人网站

最新发布

[未分类]

uploadify文件上传实例

admin 阅读(2201) 评论(0)

方便引用写成了一个用户控件. 前台代码 <%@ Control Language="C#" AutoEventWireup="true" CodeFile="UploadFile.ascx.cs" Inherits="Include_ASCX_UploadFile" %> <div> <asp:TextBox ID="fileUrl" runat="server" Width="340px"></asp:TextBox> <asp:Image ID="showImage" runat="serv [...]   阅读全文

[未分类]

flexigrid实例用法

admin 阅读(2712) 评论(0)

本网站的后台文章列表页面,应该比较完整的一个flexigrid例子. 先来看下aspx页面,其中的母版页就不贴出来了 <%@ Page Title="文章列表" Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="ArticleList.aspx.cs" Inherits="Blog_Admin_ArticleList" %> <asp:Content ID="Content1" ContentPlaceHolderID= [...]   阅读全文

[未分类]

jUploader上传

admin 阅读(2689) 评论(0)

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jUploader上传</title> <script src="http://static.kecq.com/js/jquery-1.8.1.min.js" typ [...]   阅读全文

[未分类]

asp.net 4.0 RequestValidator 脚本攻击

admin 阅读(2191) 评论(0)

为了防止sql攻击,asp.net有一个危险字符验证,可是我们在使用编辑器时却需要插入特殊字符。在2.0 中页面中加个 ValidateRequest=“false” 就可以了 但是在4.0 中 还需要改配置文件,在4.0 中,我们可以配置web.config < httpRuntime maxRequestLength="2097151000" executionTimeout="30000000" requestValidationType="FYJ.Web.CustomRequestValidator,FYJ.Web" /> using System; us [...]   阅读全文