我有 Asp.net网站,我想在 Visual Studio 2012项目中使用这个网站。如何导入我的网站或将其转换为项目?
我已将网站文件和文件夹添加到项目中。但不知何故,后面的代码中有很多错误,例如:
Labelusername.Text = "" + Session["username"];
//Lableusername gives error
Session["project"] = Convert.ToString(GridView1.Rows[index].Cells[2].Text);
// GridView1 Gives error
还有很多其他的!
为什么会这样?