• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






leon wu

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  Asp.NET

 
MVC client validation step
摘要:Server Side:1. Model:[Required(ErrorMessage = "It's Required")] [MinLength(2,ErrorMessage = "Name should longer than 2")] public string UserName { get; set; }2. View : <p> @Html.Label("UserName") @Html.Editor("UserName") @Html.Va... 阅读全文
posted @ 2013-03-17 21:33 leon wu 阅读(223) 评论(0) 推荐(0)
Javascript 基础知识
摘要:ValidateUser Input<input id="txtSerialNumber" type="text" runat="server" maxlength="12" /> function ValideMessage() { if ($('#<%=txtSerialNumber.ClientID %>').attr('value') == '') { alert('罪犯编号不能为空'); return false; } 阅读全文
posted @ 2013-03-09 11:47 leon wu 阅读(114) 评论(0) 推荐(0)
ASPNET 基础知识笔记
摘要:1. 如何在服务器端,发出客户端运行的命令。 Response.Output.Write("<script language=javascript> alert('" + strShow + "'); location.href='" + Url + "'; </script>"); 阅读全文
posted @ 2013-03-08 20:53 leon wu 阅读(129) 评论(0) 推荐(0)
EntityFramework
摘要:How to Call StoreProcedure :http://www.tudou.com/programs/view/0WtDy50Hbzs/target=_blankIf it not work ,see: http://stackoverflow.com/questions/3825412/entity-framework-4-function-import-not-working public partial class CarSystemEntities : DbContext {...... public virtual int AddNewCompany... 阅读全文
posted @ 2013-03-07 13:01 leon wu 阅读(435) 评论(0) 推荐(0)