0

我有 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

还有很多其他的!

为什么会这样?

4

1 回答 1

2

解决了问题!使用 :

MSDN 博客

达尔软博客

转换为 Web 应用程序

于 2013-08-15T15:55:04.000 回答