上一页 1 ··· 6 7 8 9 10
摘要: 第一个参数为我们为他们取一个名字,对应id和name,第二个参数则为值,第三个参数则为属性例如<%=Html.TextBox("Remark", "", new { style = "width:200px;" })%>这个产生的html元素就是<input id="Remark" name="Remark" style="width:200px;" type="text" value="" />我们就可以参照这 阅读全文
posted @ 2012-09-12 17:26 莫等闲也 阅读(12329) 评论(2) 推荐(0)
摘要: 在action中返回父页面时用这种办法,action加入一下代码: ContentResult content = new ContentResult(); content.Content = string.Format("<script language='javaScript' type='text/javaScript'>window.parent.window.location.href = '/控制器/方法';</script>") return content;这样便可以刷新父页面! 阅读全文
posted @ 2012-08-09 00:45 莫等闲也 阅读(5801) 评论(1) 推荐(0)
摘要: 狮子受再大的打击始终还是狮子,相信自己,勇闯天下! 阅读全文
posted @ 2012-07-24 09:40 莫等闲也 阅读(160) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10