- 浏览: 131860 次
- 性别:
- 来自: 杭州
-
最新评论
-
hulibo:
太简单了 没参考价值
网上商城的数据库设计 -
lfc:
[img][/img][url][/url][flash= ...
Petshop 4.0 详细解释 -
早上好朋友:
引用
自学MVC(十):自己写的通用的JS分页控件-2009年05月27日 -
早上好朋友:
[flash=200,200][/flash][url][/u ...
自学MVC(十):自己写的通用的JS分页控件-2009年05月27日 -
银杏树:
参考一下。
网上商城的数据库设计
文章列表
1. RequiredFieldValidator 控件可确保用户提供有效的输入,即非空验证
属性 说明
ControlToValidate 要验证控件的ID,所有验证控件都有该属性
Text ...
- 2009-05-05 14:06
- 浏览 1037
- 评论(0)
/**//**
*本日历选择控件由tiannet根据前人经验完善而得。大部分代码来自meizz的日历控件。
*tiannet添加了时间选择功能、select,object标签隐藏功能,还有其它小功能。
*使用方法:
* (1)只选择日期 <input type="text" name="date" readOnly onClick="setDay(this);">
* (2)选择日期和小时 <input type="text" name="dateh" read ...
- 2009-05-04 17:59
- 浏览 1106
- 评论(0)
/**//**
*本日历选择控件由tiannet根据前人经验完善而得。大部分代码来自meizz的日历控件。
*tiannet添加了时间选择功能、select,object标签隐藏功能,还有其它小功能。
*使用方法:
* (1)只选择日期 <input type="text" name="date" readOnly onClick="setDay(this);">
* (2)选择日期和小时 <input type="text" name="dateh" read ...
- 2009-05-04 16:33
- 浏览 1017
- 评论(0)
parseFloat 转换成浮点数parseInt 转换成整数.这两个函数都有些容错性的,比如"123abc"会变成123.如果楼主希望更准确一些,其实可以判断一下,然后用eval,像这样不过也可以使用这样的方法:var a = "234" ;a = a.replace(/(^[\\s]*)|([\\s]*$)/g, "");if( a !="" && !isNaN( a ) ){//如果是数字a = eval( a )}else{//如果不是数字a = null}javascript有两种数据类型的 ...
- 2009-05-04 15:06
- 浏览 2857
- 评论(0)
经常有人请我指导应该如何动态地“重写”URL,以在他们的ASP.NETweb应用中发布比较干净的URL端点。这个博客帖子概述了几个方法,你可以用来在ASP.NET中干净地映射或重写URL,以及按照你自己的需求组织你的URL的结构。
为什么URL映射和重写很重要?
下面是开发人员想要对URL有更大的灵活性的最常见的场景:
1) 处理这样的情形:你要更改你的web应用中网页的结构,但你同时也要确保在你移动网页后,那些被人收藏的老URL不会成为死链接。重写URL允许你透明地将请求转交到新的网页地址而不出错。
2) 在象Google,Yahoo 和 Live 这样的搜索引擎中提高你网站上网 ...
- 2009-04-28 14:22
- 浏览 2649
- 评论(0)
/*******************************************************************/
//写入Xml 元素
string xmlFilePath = this.Server.MapPath("BookStore.xml"); //Xml 文件路径
XmlDocument xmlDoc = new XmlDocument(); //创建对象
xmlDoc.Load(xmlFilePath); //加载 XML 文件
XmlNode xmlNode = xml ...
- 2009-04-27 13:37
- 浏览 1069
- 评论(0)
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace Test
{
public class Program
{
static void Main(string[] args)
{
Console.WriteLine("Thread Start/Stop/Join Sample");
Al ...
- 2009-04-14 23:27
- 浏览 843
- 评论(0)
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
public class Program
{
static short x = 32767;
static short y = 32767;
//检查溢出
public static int F()
{
int z = checked((short)(x + y));
...
- 2009-04-12 14:03
- 浏览 826
- 评论(0)
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
public class Program
{
private int[] mydata;
public Program(int size)
{
mydata = new int[size];
for (int i = 0; i < size; i++)
{ ...
- 2009-04-12 13:51
- 浏览 936
- 评论(0)
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
public class Program
{
static void Main(string[] args)
{
//静态域访问 :Classname.Field
Console.WriteLine(MyClass.j);
//实例域访问:Create a class objce ...
- 2009-04-12 13:18
- 浏览 1284
- 评论(0)
所谓泛型,即通过参数化类型来实现在同一份代码上操作多种数据类型,泛型编程是一种编程范式,它利用“参数化类型”将类型抽象化,从而实现更为灵活的复用。C#泛型赋予了代码更强的类型安全,更好的复用,更高的效率 ...
- 2009-04-02 16:43
- 浏览 3804
- 评论(0)