public ApplicationUserManager UserManager
{
get
{
if(_userManager == null)
{
_userManager = new ApplicationUserManager(new Microsoft.AspNet.Identity.EntityFramework.UserStore<ApplicationUser>(yourDbContext));
}
return _userManager;
}
}
这是文本框
<script type="text/javascript">
function itemvalidate()
{
var checktext = document.getElementById('txtitemcode').value;
var griddata = document.getElementById('griditemdetails');
for (var i = 0; i <= griddata.rows.length; i++)
{
var currentrow = griddata.rows[i];
if (currentrow.cells[0].value == checktext)
{
alert('Item code matched');
}
else
{
alert('Item does not exist in the current SA');
}
}
}
</script>
我必须在其中检查项目代码的gridview
<asp:TextBox ID="txtitemcode" runat="server" onchange="javascript:itemvalidate();"></asp:TextBox>
我已经从后面的代码中绑定了gridview数据,现在基于itemcode列,我需要验证在文本框中输入的数据是否存在于gridview中
这是gridview的图像以及其中的数据 Gridview