asp.net mvc的初学
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 ) 參數 ? string? 示例 腳本 <%= Server.HTMLEncode("The paragraph tag: <P>") %> 輸出 The paragraph tag: <P> 注意 以上輸出將被 Web 瀏覽器顯示為 The paragraph tag: <P> 如果查看一下源文件或以文本方式打開一個 Web 頁,您就可以看到已編碼的 HTML |
3. Unable to update the EntitySet because it has a DefiningQuery and no element exists in the element to support the current operation?錯誤的解決:
?? 因為創建表的時候沒有設置主鍵。。。。。。參見: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
?
?
?
?
?
轉載于:https://www.cnblogs.com/gorgeous1314/archive/2012/07/18/2597236.html
總結
以上是生活随笔為你收集整理的asp.net mvc的初学的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HTML DOM那点儿事儿
- 下一篇: //yield return用于无缝实现