随笔分类 - ASPNET
摘要:采用javascript访问服务器上的文件,文件存在则打开文件,不存在返回不存在 控制器: [HttpPost]public ActionResult CheckFileExists(string aFile){ // 检查文件是否存在 string filePath = Server.MapPat
阅读全文
摘要:@Html.ActionLink("开展项目", "IndexItemDept", new { Controller = "Price_ItemDepts", iD = item.AutoID, deptID = item.FeeDeptID}) 注意,分别为显示文本,action,controll
阅读全文
摘要:示例 @Html.DropDownList("ComeFrom", new List<SelectListItem>() { new SelectListItem() { Value = "所有", Text = "所有" }, new SelectListItem() { Value = "城投"
阅读全文
摘要:<input type="button" onclick="Javascript:window.history.go(-1);" value="返回 " class="btn btn-info"> 注意:新弹出的一页 不能返回的 <!--类似可验证用链接做 <a href="javascr
阅读全文