getpro

个人备份用,不保证一定正确

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年1月6日

摘要: EF手动设置connectionStringpublic class EmployeesEntities : DbContext { private readonly static string CONNECTION_STRING = "name=EmployeesEntities2"; //指定connectionString名称 public DbSet<Employees> Employees { get; set; } public EmployeesEntities() : base(CONNECTION_STRI... 阅读全文
posted @ 2012-01-06 07:36 getpro 阅读(174) 评论(0) 推荐(0) 编辑

2012年1月4日

摘要: HTML,JS<html><head><script type="text/javascript">function myfunction(){alert("您好!")}</script></head><body><form><input type="button" onclick="myfunction()" value="调用函数"></form><p>通过点击这个按钮,可 阅读全文
posted @ 2012-01-04 05:46 getpro 阅读(266) 评论(0) 推荐(0) 编辑

2011年12月31日

摘要: CS string connectionString = "server=.\\SQLEXPRESS;database=BookStore;uid=sa;pwd=sa"; string selectStrin = "Select * from Books"; SqlConnection conn = new SqlConnection(connectionString); SqlCommand command = new SqlCommand(selectStrin, conn); conn.O... 阅读全文
posted @ 2011-12-31 07:00 getpro 阅读(436) 评论(0) 推荐(0) 编辑

2011年12月30日

摘要: HTML<html><head><title></title><script type="text/javascript" src="/Scripts/jquery-1.5.1.min.js"></script><script type="text/javascript"> var start_flag=0;$(document).ready(function(){ $("#start").click(function(){if(s 阅读全文
posted @ 2011-12-30 06:31 getpro 阅读(295) 评论(0) 推荐(0) 编辑

摘要: View<script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script><script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script><div id="TimePnl" 阅读全文
posted @ 2011-12-30 03:11 getpro 阅读(352) 评论(0) 推荐(0) 编辑

2011年12月29日

摘要: View@{ ViewBag.Title = "Index";}<script type="text/javascript"> function GetTime() { $.post("Default1/GetTime/", function (response) { $("#TimePnl").html(response); }); return false; } function GetUserName(UserName) { $.get("Default1/GetUserName/?Us 阅读全文
posted @ 2011-12-29 22:42 getpro 阅读(175) 评论(0) 推荐(0) 编辑