批准文本 - C#ASP.NET MVC [英] Approve text - C# ASP.NET MVC

查看:64
本文介绍了批准文本 - C#ASP.NET MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。在我的数据库中,我有一个名为Text的表,其中包含以下列:IdText,IdUser,Text,Approved。当用户在我的网站上写文本时,批准的列会收到状态false。我想创建一种方法将该状态更改为true。



我想怎么做:网站的管理员会登录,在他的主页上会有一份未经批准的所有文本的列表。然后,管理员将选择一个,单击文本以显示有关文本的所有信息,然后将有一个按钮或操作链接,管理员将单击该链接并将文本状态更改为true。



任何人都知道我该怎么做?

谢谢!

解决方案

这里没有人我会为你编写代码。这就是你付出的代价。



这是一个将 CheckBoxColumn 添加到<$ c的示例$ c> GridView in ASP.Net

添加一个GridView的复选框列 [ ^ ]

Hi. On my database, I have a table called Text which contais the following column: IdText, IdUser, Text, Approved. When a user write a text on my site, the approved column receive the status "false". I want to create a way to change that status to "true".

How I want to do it: The admin of the site will logon, and in his home page, there will be a list of all texts that are not approved. Then, the admin will choose one, click on the text to show all the informations about the text, and then there will be a button or action link where the admin will click and change the status of the text to true.

Anyone knows how can I do it?
Thanks!

解决方案

No one here will just write your code for you. That is what you are paid for.

Here is an example for adding a CheckBoxColumn to a GridView in ASP.Net.
Adding a GridView Column of Checkboxes[^]


这篇关于批准文本 - C#ASP.NET MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆