03 – Ajax and JavascriptRazor helper (Read this article to get more)Razor helper is similar to function in javascript, it can be defined in View using it or in a separate Razor View fileIn _layout view there are two lines of code to import javascript: <script src="@Url.Content("~/Script Read More
posted @ 2011-06-14 06:02 Jian, Li Views(634) Comments(0) Diggs(1)
02 - Razor Views in ASP.NET MVC 3Razor expression always returns HTML Encoded text. For example, the controller returns a javascript text to the view, razor expression in the view will only display the plain text of it, rather than running the javascript code:the source code of the page is:But if we Read More
posted @ 2011-06-11 05:59 Jian, Li Views(737) Comments(0) Diggs(0)
01- Controllers in ASP.NET MVC 3Application_Start() method in Global.asax.cs is the startup entry of the applicationUsing RouteData object to get information of routing dataIn the route collection, the first route that matches the URL will Win, so we should put our particular route before the very g Read More
posted @ 2011-06-11 05:55 Jian, Li Views(690) Comments(0) Diggs(0)
<1>Basic concepts 0. Dom elemenet => jQuery Wrapper:function (menuTag, itemTag) { var menu = $(menuTag).data("tMenu"); var item = $(itemTag, menu.element); menu.enable(item); var imgUrl = $("#h_imgSaveUrl").val(); $("#btnSaveSetup>span>img").attr("sr Read More
posted @ 2011-06-10 07:06 Jian, Li Views(547) Comments(0) Diggs(0)
只有注册用户登录后才能阅读该文。 Read More
posted @ 2011-02-17 13:31 Jian, Li Views(7) Comments(0) Diggs(0)
只有注册用户登录后才能阅读该文。 Read More
posted @ 2011-02-17 13:00 Jian, Li Views(5) Comments(0) Diggs(0)
只有注册用户登录后才能阅读该文。 Read More
posted @ 2011-02-13 05:44 Jian, Li Views(23) Comments(0) Diggs(0)
只有注册用户登录后才能阅读该文。 Read More
posted @ 2011-02-05 05:21 Jian, Li Views(91) Comments(0) Diggs(0)
只有注册用户登录后才能阅读该文。 Read More
posted @ 2011-02-04 06:19 Jian, Li Views(29) Comments(0) Diggs(0)
The way to access control in sub-page witin masterpageThe way to access control in sub-page witin masterpage:example 1:DropDownList ddl = (DropDownList)this.Page.Master.FindControl("ContentPlaceHolder... Read More
posted @ 2009-09-03 02:57 Jian, Li Views(145) Comments(0) Diggs(0)