摘要: 一。把div寫到a標籤下面代碼如下:View Code <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="BehanceLog.WebForm1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xht 阅读全文
posted @ 2012-03-17 10:15 無限遐想 阅读(1487) 评论(7) 推荐(1)
摘要: 1.建立HomeController類,繼承AsyncController代碼如下:View Code public class HomeController : AsyncController { public void IndexAsync() { ViewBag.Message = "Welcome to ASP.NET MVC!"; AsyncManager.OutstandingOperations.Increment(); var task = Task.Factory.Star... 阅读全文
posted @ 2012-03-14 21:33 無限遐想 阅读(1767) 评论(0) 推荐(0)
摘要: 1.定義一個擴展類GlobalizationExtensions代碼如下:View Code public static class GlobalizationExtensions { /// <summary> /// Render the globalize resource text /// </summary> /// <param name="helper">The HTML helper</param> /// <param name="key">the reousece key&l 阅读全文
posted @ 2012-03-14 20:15 無限遐想 阅读(935) 评论(0) 推荐(0)
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>JS实现图片翻书效果-站长街</title><META http-equiv=imagetoolbar content=no><STYLE type=text/css>#center {LEFT: 50% 阅读全文
posted @ 2012-03-14 08:52 無限遐想 阅读(1098) 评论(0) 推荐(0)
摘要: 用Task方法,很容易控制線程。 阅读全文
posted @ 2012-03-12 21:17 無限遐想 阅读(3366) 评论(0) 推荐(0)
摘要: 簡單實現div 浮動效果 阅读全文
posted @ 2012-03-12 15:57 無限遐想 阅读(1174) 评论(0) 推荐(0)
摘要: MVC中的權限,通用設置。 阅读全文
posted @ 2012-03-11 17:32 無限遐想 阅读(2405) 评论(0) 推荐(0)
摘要: 為了解決匿名用戶登錄成功以後,執行一些操作。在petshop有實現1.在web.config中 加入<anonymousIdentification enabled="true" />表示激發Profile_MigrateAnonymous事件2.在Global.asax中定義事件 void Profile_MigrateAnonymous(Object sender, ProfileMigrateEventArgs e) { // 获取匿名用户资料 }其中:e.AnonymousID為匿名用戶登錄的idvar currentUser = HttpContext 阅读全文
posted @ 2012-03-11 10:18 無限遐想 阅读(1140) 评论(0) 推荐(2)
摘要: sql圖表表示的語法 阅读全文
posted @ 2012-03-10 16:21 無限遐想 阅读(298) 评论(0) 推荐(0)
摘要: SAP在c#中使用 阅读全文
posted @ 2012-03-09 11:00 無限遐想 阅读(3452) 评论(3) 推荐(1)