0

こんにちは、私が取り組み始めたばかりです。これは私がページ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

4

0 に答える 0