上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 表单提交分两种方式 post和get post在传值的时候地址栏中看不到传值内容,建议在做数据添加、修改或删除的时候,也就是直接更改数据库表中的内容时用post传值 get在传值的时候地址栏中能看到传值内容,安全性较低,所以在数据查询的时候用get传值 前台html控件的name和id属性必须存在 1: post 后台页面用Request.Form["控件id"]获得控件内容 2:get后台页面用Request.QueryString["控件id"]获得控件内容 阅读全文
posted @ 2012-08-27 18:57 ajunfly 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 本文转载发明的博客园 usingSystem;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Web;usingSystem.Web.SessionState;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.HtmlControls;usingSystem.Xml;privateXmlDocumentxmlDoc;//loadxmlfileprivatev 阅读全文
posted @ 2012-08-26 17:10 ajunfly 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 主要用到递归循环获取子结点 /// <summary> /// 生成根节点 /// </summary> /// <param name="treeview"></param> protected void BindTreeView(long ID, TreeView treeview) { DataTable dt = menuLogic.GetMenu2(ID, User.Identity.Name); treeview.Nodes.Clear(); DataRow[] parentrow = dt.Select(&quo 阅读全文
posted @ 2012-08-26 17:08 ajunfly 阅读(4174) 评论(0) 推荐(0) 编辑
摘要: 1.javascript创建元素 创建select varselect=document.createElement("select"); elect.options[0]=newOption("加载项1","value1"); select.options[1]=newOption("加载项2","value2"); select.size="2"; testDiv.appendChild(select); 创建div var openDiv = document.crea 阅读全文
posted @ 2012-06-14 11:56 ajunfly 阅读(65016) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="PageLoading.aspx.cs" Inherits="PageLoading" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><h 阅读全文
posted @ 2012-06-12 18:25 ajunfly 阅读(317) 评论(0) 推荐(0) 编辑
摘要: exec sp_configure 'show advanced options',1reconfigureexec sp_configure 'Ad Hoc Distributed Queries',1reconfigure 阅读全文
posted @ 2012-06-06 15:15 ajunfly 阅读(862) 评论(0) 推荐(0) 编辑
摘要: ------生成方法一pageload(object sender, eventarges e){string chkCode = string.Empty; //颜色列表,用于验证码、噪线、噪点 Color[] color = { Color.Black, Color.Red, Color.Blue, Color.Green, Color.Orange, Color.Brown, Color.Brown, Color.DarkBlue }; //字体列表,用于验证码 string[] font = { "Times New Roman", "MS Mincho& 阅读全文
posted @ 2012-06-04 18:10 ajunfly 阅读(16287) 评论(0) 推荐(0) 编辑
摘要: --新增和删除触发器alter trigger tri_TC on t_c for INSERT,deleteasbegin set XACT_ABORT ON declare @INSERTCOUNT int; declare @DELETECOUNT int; declare @UPDATECOUNT int; set @INSERTCOUNT = (select COUNT(*) from inserted); set @DELETECOUNT = (select COUNT(*) from deleted); set @UPDATECOUNT = () if(@INSERTCOUNT 阅读全文
posted @ 2012-05-30 16:50 ajunfly 阅读(1460) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;using System.Text;/// <summary>///DownLoad 的摘要说明/// </summary>public class FileHelper{ public FileHelper() { // //TODO: 在此处添加构造函数逻辑 // } /// <summary> /// 文件上传到的路径 /// </summary> 阅读全文
posted @ 2012-05-29 13:42 ajunfly 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 关于margin-top的高度在不同浏览器下高度不等,不考虑IE8的问题,在布局时首先考虑在FireFox下正常,然后调试IE6、IE7直接上代码margin-top: 70px; /* firefox*/*margin-top: 63px; /*IE7*/_margin-top: 63px; /*IE6*/ 阅读全文
posted @ 2012-05-28 14:50 ajunfly 阅读(130) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页