我正在使用asp.net/vb.net 4.0、visual studio 2010和带有动态数据脚手架的linq- to -entities模型,为用户提供生成的表单来编辑SQL数据库中的数据。
我在PageTemplates文件夹中的insert.aspx中添加了一些调用javascript函数的按钮。
一开始我用的是这样的东西
var account = document.getElementById("ctl00_ContentPlaceHolder1_FormView1_ctl04_ctl00___account_TextBox1");
通过asp.net选择生成的
我读过动态编译的程序集和用于.aspx页面的其他资源存储在以下文件中:
C:\WINDOWS\Microsoft.NET\Framework64\[VERSION]\Temporary ASP.NET Files
or
C:\WINDOWS\Microsoft.NET\Framework\[VERSION]\Temporary ASP.NET Files
除了一个散列目录和一个.web文件之外,我无法在那里找到任何文件。不过,我可以查看这些页面。当我通过web.config显式地将文件转储到目录时:
<compilation debug="true" targetF
我的ViewModel如下所示:
public class ClientListView
{
public List<Client> existingClients { get; set; }
public List<Client> allClients { get; set; }
}
客户端类的定义如下:
public class Client
{
public int ClientId { get; set; }
public string Name { get; set; }
}
在.cshtml中
<td>
&l