こんにちは、私が取り組み始めたばかりです。これは私がページMVC
内に書いたものですcshtml
@if (Request.QueryString["TechID"] != null)
{
int TechID = Convert.ToInt16(Request.QueryString["TechID"].ToString());
forumAPP.newForumDBEntities db = new forumAPP.newForumDBEntities();
var topic = from p in db.tblTechnologies where p.TechID == TechID select p.TechName;
string strText = "A forum where you can post questions regarding " + topic.FirstOrDefault().ToString(); ;
@Html.Label("Name", strText)
}
セッションを処理するようなコードを記述して、サンプルコンテンツUsername
や目的のテキストを表示する代わりに、model