原创 calenderJS.js
/* * author: misshjn * email: [email protected] * homepage: www.happyshow.org
原创 正則表達式判斷文本框不能爲空
if(//s/.test(document.getElementById("txtUser").value)) alert("文本框不能包含空格");
原创 BookDetail.aspx
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Se
原创 ASP.NET子頁面獲取父頁面的值
ASP.NET子頁面獲取父頁面的值 對於頁面間傳值有多種方法:1. 最常見的就是用超連接或者是Response.Redirect方法從一個頁面轉到另一個頁面,這時候你在新頁面中要獲取父頁面中的值時,必須是從URL中傳值過來,也就是說使用
原创 window.js
$(document).ready(function(){ //1.點擊按鈕可以在屏幕中間顯示一個窗口 //2.點擊按鈕2可以在屏幕的左下角顯示一
原创 回車移到同行下一單元格,上下左右鍵也可用
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication4.WebForm1" %> <!DO
原创 Cart.aspx
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Se
原创 驗證文本框不能爲空、Email合法性
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
原创 dropdownlist和GridView的簡單使用
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Se
原创 點擊按鈕添加單元行
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> <!DOC
原创 cookie 用法
比如建立一個名爲aspcn,值爲灌水小魚的cookieHttpCookie cookie = new HttpCookie["aspcn"];cookie.Value = "灌水小魚";Response.AppendCookie(coo
原创 ASP.NET刷新頁面的六種方法
第一: private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( )
原创 jQuery獲取Select選擇的Text和 Value(轉)
jQuery獲取Select選擇的Text和Value:語法解釋:1. $("#select_id").change(function(){//code...}); //爲Select添加事件,當選擇其中一項時觸發2. var ch
原创 jQuery獲取Select選擇的Text和 Value(轉)
jQuery獲取Select選擇的Text和Value:語法解釋:1. $("#select_id").change(function(){//code...}); //爲Select添加事件,當選擇其中一項時觸發2. var ch
原创 英語字母大小寫轉換
<html><HEAD> <title>範例13-1</title></head><script language="javascript">function setCase (caseSpec){ if (caseSpec == "up