上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: http://blog.smarx.com/posts/skipping-windows-azure-startup-tasks-when-running-in-the-emulatorStartup tasks are often used in Windows Azure to install things or make other configuration changes to the virtual machine hosting your role code. Sometimes those setup steps are things you do... 阅读全文
posted @ 2012-03-09 13:36 RobotTech 阅读(214) 评论(0) 推荐(0) 编辑
摘要: http://blogs.msdn.com/b/azchina/archive/2011/02/18/sql-azure-reporting-limited-ctp-arrived.a概念SQL Azure Reporting 把云端报表作为服务来提供,构建于SQL Server Reporting Services 和 SQL Azure 技术之上。诸如SQL Azure Reporting此类云端报表服务具有许多优势,包括快速服务提供,成本效益,拓展性,高可用性以及减少报表服务器的管理费用,并能安全的访问,查看和管理报表。SQL Azure ReportingService提供如下功能:. 阅读全文
posted @ 2012-03-07 16:57 RobotTech 阅读(351) 评论(0) 推荐(0) 编辑
摘要: http://www.hanselman.com/blog/SlowCheetahWebconfigTransformationSyntaxNowGeneralizedForAnyXMLConfigurationFile.aspxI did a post last year calledIf You're Using XCopy, You're Doing It Wrongthat also included a video of my talk at Mix10 where I show how to deploy website with Web Deploy. One o 阅读全文
posted @ 2012-03-07 16:54 RobotTech 阅读(859) 评论(0) 推荐(0) 编辑
摘要: http://blog.abstractlabs.net/2011_02_01_archive.htmlRecently I wrote a worker role in windows azure and was hoping the app.config would transform much like the web.config in the web roles. Sadly this is not the case. The configuration transforms are very useful when making a distinction between prod 阅读全文
posted @ 2012-03-07 16:51 RobotTech 阅读(333) 评论(0) 推荐(0) 编辑
摘要: http://stylecop.codeplex.com/ 阅读全文
posted @ 2011-12-13 09:30 RobotTech 阅读(234) 评论(0) 推荐(0) 编辑
摘要: http://developer.51cto.com/art/200806/76365.htm 制编码风格是一个长期被热烈争论的话题。人们不仅为团队应该遵循何种编码风格而争论不休,同时还要争论究竟是否应该确立一个标准的编码风格。现在,微软发布了StyleCop,这是他们在内部使用的一个编码风格强制工具,微软的这一举措无疑将起到推波助澜的作用。 StyleCop,也即所谓的微软C#源代码分析器(... 阅读全文
posted @ 2011-12-13 09:29 RobotTech 阅读(439) 评论(0) 推荐(0) 编辑
摘要: http://minmin86121.blog.163.com/blog/static/49681157201182044847408/ 微软的StyleCop作为一款代码分析插件,集成到Visual Studio 2008和Visual Studio 2010之中,可以帮助开发人员迅速地理清编程规范问题。对确保软件质量,确保软件开发效率而言,意义非凡。与同样出自微软的另一款代码分析工具fxco... 阅读全文
posted @ 2011-12-13 09:28 RobotTech 阅读(622) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/5909260/jquery-1-6-form-validate-not-working-in-ie7-ie8 http://stackoverflow.com/questions/7008970/asp-net-mvc-3-unobtrusive-client-side-validation-not-working-in-i... 阅读全文
posted @ 2011-12-07 16:59 RobotTech 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Microsoft WebMatrix 是一个全新的 Web 开发平台,今天开始正式发布第一个版本供公众使用。区别于现有的开发平台,WebMatrix 的特点是一站式和简化的开发过程,主要包含以下几大核心:IIS Developer Express: 这是一个轻量级的免费 Web 服务器,安装简便,支持目前所有的 Windows 版本,并且兼容完整版的 IIS 7.5 服务器。SQL Server Compact Edition: 一款基于文件的轻量级免费数据库,体积小巧,安装简便,可以集成到 ASP.NET 等众多微软开发场景中使用。使用SSCE平台的成本极低,并且可以很方便的迁移到 SQL 阅读全文
posted @ 2011-10-19 14:37 RobotTech 阅读(264) 评论(0) 推荐(0) 编辑
摘要: public static void ForEach<T>(this IEnumerable<T> items, Action<T> action) { foreach (var item in items) { action(item); } ... 阅读全文
posted @ 2011-10-18 15:43 RobotTech 阅读(595) 评论(0) 推荐(0) 编辑
摘要: I've built a entity framework model against a 2008 database. All works ok against the 2008 database. When I try to update the entity on a 2005 database I get this error. I specifically did not use an... 阅读全文
posted @ 2011-10-13 09:39 RobotTech 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: Index.aspx: <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script> <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script> <script src="../../Scripts/Micro... 阅读全文
posted @ 2011-08-04 09:43 RobotTech 阅读(307) 评论(0) 推荐(0) 编辑
摘要: Index.aspx: <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script> <script type="text/javascript"> function getMessage() { $.get("/SimpleAjax/GetMessage", function(data) { $("#re... 阅读全文
posted @ 2011-08-04 09:31 RobotTech 阅读(183) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function getXmlHttpRequest() { var xhr; //check for IE implementation(s) if (typeof ActiveXObject != 'undefined') { try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); } c... 阅读全文
posted @ 2011-08-04 09:28 RobotTech 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Export.aspx: <h2>Export</h2> <a href="<%=Url.Action("ExportUsers") %>">Export Users as CSV</a>HomeController.cs: [HandleError] public class HomeController : Controller { public ActionResult Index() { ... 阅读全文
posted @ 2011-08-01 15:14 RobotTech 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1). ChildAction HomeController.cs: [HandleError] public class HomeController : Controller { public ActionResult Index() { ViewData["Message"] = "Welcome to ASP.NET MVC!"; return View(); } [ChildActi... 阅读全文
posted @ 2011-08-01 13:56 RobotTech 阅读(417) 评论(0) 推荐(0) 编辑
摘要: Chapter04: ControllerExamples Index.aspx: <h2>Index</h2> <%if (TempData.ContainsKey("message")) {%> <p class="input-validation-success"><%=TempData["message"]%></p> <%} %> <table> <tr> <th> Username <... 阅读全文
posted @ 2011-08-01 13:05 RobotTech 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Chapter03: AccountProfile Index.aspx: <h2>Profiles</h2> <table> <tr> <th>Username</th> <th>First name</th> <th>Last name</th> <th>Email</th> <th>&nbsp;</th> </tr> <% foreach (var profile in Model) { %... 阅读全文
posted @ 2011-07-29 14:42 RobotTech 阅读(425) 评论(0) 推荐(0) 编辑
摘要: Chapter02: 1). InputModel New.aspx: <h2>New Customer</h2> <form action="<%= Url.Action("Save") %>" method="post"> <fieldset> <div> <%= Html.LabelFor(x => x.FirstName) %> <%= Html.TextBoxFor(x => x.Fir... 阅读全文
posted @ 2011-07-29 13:50 RobotTech 阅读(438) 评论(0) 推荐(0) 编辑
摘要: Chapter01: 1). GuestBook Index.aspx: <form method="post" action="/GuestBook/Sign"> <fieldset> <legend>Guest Book</legend> <%= Html.Label("Name") %> <%= Html.TextBox("Name") %> <%= Html.Label("Email") ... 阅读全文
posted @ 2011-07-29 13:32 RobotTech 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1.ASP.NET MVC3 中的路由 同前边一样本篇并不会过多的介绍理论知识,我们在Global.asax.cs文件中可以看到如下代码: routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action =... 阅读全文
posted @ 2011-07-13 08:57 RobotTech 阅读(615) 评论(0) 推荐(0) 编辑
摘要: Link:http://www.cnblogs.com/hedywqy/archive/2011/07/12/2104683.html有时项目要用到邮箱验证就要发送邮件传统的解决方案:public void SendResetPasswordEmail(string email){ MailAddress from = new MailAddress("XXX@126.com", "Mercury"); //填写电子邮件地址,和显示名称 MailAddress to = new MailAddress(email, email); //填写邮件的收件人地 阅读全文
posted @ 2011-07-13 08:43 RobotTech 阅读(1651) 评论(0) 推荐(0) 编辑
摘要: Links:http://www.cnblogs.com/n-pei/archive/2010/10/11/1848089.html 国庆放假归来,刚好赶上asp.net mvc 3 beta发布,和大家分享点我的体验。 首先是创建项目时的选择界面的改变: 1.View Engine的变化。 asp.net mvc 3中添加了Razor这个View engine。 如果你在创建的项目中同时有Ind... 阅读全文
posted @ 2011-07-12 13:37 RobotTech 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1. 新建项目 打开VS2010,选择 文件>新建>项目,新建ASP.NET MVC3 Web 应用程序,我这里把它命名为Blog。 2. 编写实体类 对于一个博客,一下几个类应该是必须的吧: Post 博客文章类 Comment 文章评论类,和Post是一对多的关系 Category 目录类,和Post是一对多的关系 Tag 标签类,和Post是多对多的关系 FriendLink 友情链接类 先... 阅读全文
posted @ 2011-07-12 13:33 RobotTech 阅读(1532) 评论(0) 推荐(0) 编辑
摘要: Links:http://www.cnblogs.com/cnmaxu/archive/2010/10/13/1849972.html 昨天,我写了一篇文章(参见:ASP.NET MVC 依赖注入),这种实现方式我个人一直感觉不太顺,在写出来与大家一起分享的同时, 也是想让大家提提自己的建议, 今天下载了微软发布的最新的 ASP.NET MVC3 Beta 版,同时也仔细阅读了它的 Release... 阅读全文
posted @ 2011-07-12 13:30 RobotTech 阅读(425) 评论(0) 推荐(0) 编辑
摘要: http://www.asp.net/mvc 阅读全文
posted @ 2011-07-12 13:24 RobotTech 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Links: http://www.asp.net/mvc/tutorials This is a series of tutorials that explain ASP.NET MVC. ASP.NET MVC Overview ASP.NET MVC Routing ASP.NET MVC Controllers ASP.NET MVC Views ASP.NET MVC Models AS... 阅读全文
posted @ 2011-07-12 13:23 RobotTech 阅读(262) 评论(1) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>新闻点评功能</title> <sc... 阅读全文
posted @ 2011-07-07 16:39 RobotTech 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 1). $.get发送请求 $(function() { $("#Button1").click(function() { //按钮单击事件 //打开文件,并通过回调函数返回服务器响应后的数据 $.get("UserInfo.aspx", { name: encodeURI($("#txtName").val()) }, function(data) { $("#divTip") .empty()... 阅读全文
posted @ 2011-07-07 16:13 RobotTech 阅读(887) 评论(0) 推荐(0) 编辑
摘要: 1). 传统的JavaScript方法实现Ajax功能 var objXmlHttp = null; //声明一个空的XMLHTTP变量 function CreateXMLHTTP() { //根据浏览器的不同,返回该变量的实体对象 if (window.ActiveXObject) { objXmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }... 阅读全文
posted @ 2011-07-07 15:38 RobotTech 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1). 获取元素的属性 $(function() { var strAlt = $("img").attr("src"); //属性值一 strAlt += "<br/><br/>" + $("img").attr("title"); //属性值二 $("#divAlt").html(strAlt); })2). 设置元素的属性 $(function() { $("img").attr("src"... 阅读全文
posted @ 2011-07-07 13:00 RobotTech 阅读(339) 评论(1) 推荐(0) 编辑
摘要: 1). nth-child(even) $(function(){ $("#tbStu tr:nth-child(even)").addClass("trOdd"); })2). html $(function(){ $("#divT").html("这是一个检测页面"); })3). jQuery基本选择器 $(function(){ //ID匹配元素 $("#divOne").css("dis... 阅读全文
posted @ 2011-07-07 10:54 RobotTech 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 1). $(document).ready $(document).ready(function(){ alert("您好,欢迎来到jQuery世界"); }) $(function () { alert("您好,欢迎来到jQuery世界"); });2). toggleClass, slideToggle $(function () { $(".divTitle").click(functio... 阅读全文
posted @ 2011-07-07 10:26 RobotTech 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine(Evaluator.Eval("1+2+3+4+5+6+7+8+9"));//45Console.WriteLine(Evaluator.Eval("(1+1)/2*3"));Console.WriteLine(Evaluator.Eval("((10-2)/2+1)*3"));//15usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.CodeDom.Compiler;u 阅读全文
posted @ 2011-07-05 22:21 RobotTech 阅读(2680) 评论(0) 推荐(0) 编辑
摘要: voidApplication_Start(objectsender,EventArgse){//CodethatrunsonapplicationstartupMicrosoft.WindowsAzure.CloudStorageAccount.SetConfigurationSettingPublisher((configName,configSetter)=>{configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));});}//----------------------------------- 阅读全文
posted @ 2011-07-04 10:21 RobotTech 阅读(430) 评论(0) 推荐(0) 编辑
摘要: Using the Windows Azure Storage ServicesWindows Azure PlatformThe Windows Azure storage services provide storage for binary and text data, messages, and structured data in Windows Azure. The storage services include:The Blob service, for storing binary and text dataThe Queue service, for storing mes 阅读全文
posted @ 2011-07-01 17:01 RobotTech 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Understanding the Table Service Data ModelWindows Azure PlatformThe Table service offers structured storage in the form of tables. The following sections outline the Table service data model.Storage AccountA storage account is a globally unique entity within the storage system. The storage account i 阅读全文
posted @ 2011-07-01 17:01 RobotTech 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 摘要:LINQ的存在是为了让大家的.NET开发之旅更加顺畅,我们这里为大家分享LINQ开发中的点点滴滴,希望对大家有所帮助。 写在前面 其实在09年就已经学习过Linq了,并被她那优美的语法所吸引,只是现在所在的公司还在使用VS2005在.Net2.0的框架下面的开发,所以Linq也很久没有用过了,最近看部门的同事对这个有些兴趣,所以打算整理点东西出来跟大家一起做个分享。 什么是Linq LINQ是Language Integrated Query的简称,它是集成在.NET编程语言中的一种特性。已成为编程语言的一个组成部分,在编写程序时可以得到很好的编译时语法检查,丰富的元数据,智能感知、静. 阅读全文
posted @ 2011-05-31 13:22 RobotTech 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 首先说介绍一下,Assert类所在的命名空间为Microsoft.VisualStudio.TestTools.UnitTesting 在工程文件中只要引用Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll就可以使用了,在这里我会举例说明Assert里面的一些主要的静态成员。 1、 AreEqual:方法被重载了N多次,主要功能是判断两个值是否相等;如果两个值不相等,则测试失败。 2、 AreNotEqual:方法被重载了N多次,主要功能是判断两个值是否不相等;如果两个值相等,则测试失败。 3、 AreNotSame:引用的对象是 阅读全文
posted @ 2011-05-27 08:41 RobotTech 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 首先,感谢http://social.msdn.microsoft.com/Forums/en/setupprerelease/thread/e0b397e5-86d1-4e60-84cd-abc9595b5f66帖子中让我从中知道了原因找到答案,已经困扰我N天了。真的很难受。安装出错如下:疯狂地在论坛上问,http://topic.csdn.net/u/20110110/23/12646bda-97ca-4922-a5a1-13ff138db928.html。有关闭UAC和防御软件(360卫士)还有关闭云端!还有就是以管理员权限运行安装程序!我的安装方法现在也是硬盘安装,也就是说把安装包解压 阅读全文
posted @ 2011-05-03 08:55 RobotTech 阅读(1305) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页