主要实现功能是网站后台管理员审核用户注册的信息(网站用VS2008和SQL2005 C#语言做)
会员表:
T_Club(ClubID(主键),Name,Password,E_mail,Sex(bit型,1男、0女),BornDate,Academy,Special,Phone,IsPass(审核状态,1已审核、0未审核))
我用GridView控件把数据库里的数据显示在网页里,已在GridView控件编辑列里添加CommandFiled里的“选择”按钮,把它的SelectText改为“通过/取消”,想要用它来实现改变审核状态这个功能,比如点击“通过/取消”之前审核状态是“未审核”,点击之后为“审核”!现已把数据显示出来了,就是没有实现上述这个功能,求高手帮写实现上述功能的完整代码!鞠躬感谢!!!
在线等答案!!!!
会员表:
T_Club(ClubID(主键),Name,Password,E_mail,Sex(bit型,1男、0女),BornDate,Academy,Special,Phone,IsPass(审核状态,1已审核、0未审核))
我用GridView控件把数据库里的数据显示在网页里,已在GridView控件编辑列里添加CommandFiled里的“选择”按钮,把它的SelectText改为“通过/取消”,想要用它来实现改变审核状态这个功能,比如点击“通过/取消”之前审核状态是“未审核”,点击之后为“审核”!现已把数据显示出来了,就是没有实现上述这个功能,求高手帮写实现上述功能的完整代码!鞠躬感谢!!!
在线等答案!!!!
解决方案 »
- dropdownlist的SelectedIndexChanged事件怎么没反应呢?
- asp.net能否判断跳转的页面是否存在?
- 未预编译文件 因此不能请求该文件
- 数据显示
- 类型转换,是放在 WebUI 层,还是 BLL 层?
- ----做一个类似FlashGet的小东西,求高手们给些建议!----
- HttpContext.Current在什么情况下会是NULL?
- 我今天一上班就遇到的问题,但是解决了 不知道原因 能不能大家都来分析一下 谢谢!
- 我想在关闭一个网页自动弹出另一个网页,怎么实现?
- datagrid处于编辑状态时,其大小总是在变,怎么能让它固定下来?
- 针对某一软件,其软件设计思路依据是什么??向大虾求救
- asp 中 的一个错误,急求解决办法!!!
<asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%# Eval("Id") %>'
CommandName="auditing" Style="position: relative"><%#GetIsPassAuditing()%></asp:LinkButton>
</ItemTemplate>
/// <summary>
/// 返回是否通过审核的字符
/// </summary>
/// <returns></returns>
protected string GetIsPassAuditing()
{ int isPassId = Convert.ToInt32(Eval("IsPass"));
if (isPassId == 0)
{
return "未审核";
}
else
{
return "审核";
}
}
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "auditing")
{
string id = e.CommandArgument.ToString();
Comment comm = CommentManager.GetCommentByid(Convert.ToInt32( id));
if (comm.IsPass == 0)
{
comm.IsPass = 1;
}
else
{
comm.IsPass = 0;
}
if (CommentManager.ModifyCommentByid(comm) > 0)
{
Server.Transfer("CommentManager.aspx");
}
}
}
CommandArgument CommandName 再就是后台的一个更新操作了。。出的是什么问题呀
1,找不到类型活命名空间名称"Comment"
2、当前上下文中不存在名称"CommentManager"
3、当前上下文中不存在名称"CommentManager"