西甲

ASP.NET升级能力探讨

2019-09-13 20:21:36来源:励志吧0次阅读

先举一个c#的例子

验证用户表单输入

运行环境:Win2000 Advance Server+IIS5.0+NGWS SDK(80M的).

$#@60;%@ Page Language="C#" %$#@62;

$#@60;html$#@62;

$#@60;script language="javascript"$#@62;

function ClientValidateEmail(source, value)

{

var strr;

re=/(\w+@\w+\.\w+)(\.{0,1}\w*)(\.{0,1}\w*)/i;

re.exec(value);

if (RegExp.$3!=""&&RegExp.$3!="."&&RegExp.$2!=".") strr=RegExp.$1+RegExp.$2+RegExp.$3

else

if (RegExp.$2!=""&&RegExp.$2!=".") strr=RegExp.$1+RegExp.$2

else strr=RegExp.$1

if (strr!=value)

return false;

else

return true;

}

$#@60;/script$#@62;

$#@60;body$#@62;

$#@60;h3$#@62;ASP.NET验证用户输入$#@60;/h3$#@62;

$#@60;form method=post runat= ver$#@62;

$#@60;hr width=600 size=1 noshade$#@62;

$#@60;table$#@62;

$#@60;tr$#@62;

$#@60;td$#@62;

$#@60;asp:ValidationSummary ID="valSum" runat="server"

HeaderText="你必须输入下面这些表单域:"

DisplayMode="bulletlist"

Font-Name="宋体"

Font-Size="12"

/$#@62;

$#@60;/td$#@62;

$#@60;/tr$#@62;

$#@60;/table$#@62;

$#@60;center$#@62;

$#@60;p$#@62;

小孩夜咳怎么办
丁桂薏芽健脾凝胶怎么样
宝宝积食了吃什么药好
孩子积食吃什么药最好
分享到: