asp.net 成员资格表不可用于 gridview 数据绑定?
我想将 gridview 绑定到 aspnet_Membership 表,以便管理员可以根据需要更新用户名和密码。 但由于某种原因,当我为 gridview 配置 sqldatasource 时,我无法访问所有 asp.net 成员资格表。 知道为什么吗? 提前致谢
I want to bind gridview to aspnet_Membership table so the admin can update username and passwords if he needs to.
But for some reason I can't access all the asp.net membership tables when I am configuring sqldatasource for the gridview.
Any idea why is that?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜此时您已经验证数据库中有
aspnet_Membership
表。另外,您在连接字符串中用于访问数据库的登录名的安全上下文是什么?该映射用户是否具有查看此表所需的权限?找出这一问题的最佳方法是登录 SSMS 作为应用程序连接字符串中的登录名,并尝试访问该表。这将为您缩小问题范围。
有道理吗?
I'm guessing that by this point you have verified you have the
aspnet_Membership
table in your database. Also, what is the security context of the login that you are using in your connection string to access the database? Does that mapped user have the necessary permissions to view this table?The best way to find that out is to login to SSMS as the login in your connection string for your application and try to access that table. That'll narrow down the problem for you.
Make sense?