0.参考资料:http://www.cnblogs.com/Leeyong/archive/2010/10/19/1855526.html
http://www.cnblogs.com/Leeyong/archive/2010/10/29/1864358.html
1. 调用不同的 控制器,控制器里的方法,不过要依靠的URL 默认的 URL 是 /Controller/ActionName/Parameters 就是 控制器/方法/参数
http://localhost:5653/HelloWorld/Index
2. Server.HTMLEncode用法!!
|
Server.HTMLEncode HTMLEncode 一.HTMLEncode 方法对指定的字符串应用 HTML 编码。 语法 Server.HTMLEncode( string ) 参数
示例 脚本 <%= Server.HTMLEncode("The paragraph tag: <P>") %> 输出 The paragraph tag: <P> 注意 以上输出将被 Web 浏览器显示为 The paragraph tag: <P> 如果查看一下源文件或以文本方式打开一个 Web 页,您就可以看到已编码的 HTML |
因为创建表的时候没有设置主键。。。。。。参见:http://www.developer2blog.com/post/2012/05/10/Unable-to-update-the-EntitySet-because-it-has-a-DefiningQuery-and-no-element-exists-in-the-element-to-support-the-current-operation.aspx
博客主要涉及信息技术方面内容,包括控制器及方法的调用,默认 URL 格式为 /Controller/ActionName/Parameters ;介绍了 Server.HTMLEncode 的用法;还给出了 Unable to update the EntitySet 错误的解决办法,即创建表时需设置主键,并提供了相关参考资料链接。
5031

被折叠的 条评论
为什么被折叠?



