DoubleLi

qq: 517712484 wx: ldbgliet

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

2012年3月28日

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Mvc.Ajax; using System.IO; namespace MVC.Controllers { /// <summary> /// Controller 类必须以字符串 "Controller" 做类名称的结尾,字符串 Controller 之前的字符串为 Controller 的名称,类中的方法名为 A 阅读全文
posted @ 2012-03-28 19:56 DoubleLi 阅读(1470) 评论(0) 推荐(0)

摘要: 本文转自:博客园-文超的技术博客一、 ASP.NET MVC 1.0 Result 几何?Action的返回值类型到底有几个?咱们来数数看。ASP.NET MVC 1.0 目前一共提供了以下十几种Action返回结果类型:1. ActionResult(base)2. ContentResult3. EmptyResult4. HttpUnauthorizedResult5. JavaScriptResult6. JsonResult7. FileResult (base)8. FileContentResult9. FilePathResult10. FileStreamResult11. 阅读全文
posted @ 2012-03-28 19:54 DoubleLi 阅读(4108) 评论(0) 推荐(1)

摘要: 哈哈,这个博客的处女文啦~~首先声明,这个分页代码并不是出自我手哈,借用了网上的一段代码,然后加了个css,变的好看一些啦~~原作者忘记是谁了,实在找不到了……万分抱歉啊~~效果如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; ... 阅读全文
posted @ 2012-03-28 19:51 DoubleLi 阅读(460) 评论(0) 推荐(0)

摘要: 1、弹出窗口没有最大最小化,没有滚动条,限制宽和高this.Response.Write("<script language=javascript>window.open('d.htm','newwindow','height=100px,width=600px,status=no,toolbar=no, menubar=no,location=no,scrollbars=no,resizeable=no,top=300,left=200')</script>");2、关闭Response.Write( 阅读全文
posted @ 2012-03-28 09:55 DoubleLi 阅读(4281) 评论(0) 推荐(0)

摘要: 实现效果:主窗体弹出子窗体,子窗体始终都在最前,如果其不关闭,那么主窗体上的任何控件都无法获得焦点.在主窗口.aspx.cs文件里实现Page.ClientScript.RegisterStartupScript(this.GetType(), "", " <script language='javascript'>window.showModalDialog('bb.aspx',window,'dialogheight:530px; dialogwidth:800px;center:yes; menubar:n 阅读全文
posted @ 2012-03-28 09:55 DoubleLi 阅读(337) 评论(0) 推荐(0)