Gridview由特定的人编辑 [英] Gridview edit by particular one

查看:75
本文介绍了Gridview由特定的人编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个大学网站,因为在用户登录后我已经注册了有关该用户的详细信息,他们看到了他们的详细信息以及我在网格视图中显示的其他详细信息...如果用户想在网格视图中更改其详细信息,如何做.特定的用户详细信息仅用于更改谁登录.其他人应在gridview中进行编辑.

例如:如果我登录意味着它显示了gridview,并且我想编辑我的详细信息,我应该不能编辑其他详细信息,我只能看到其他详细信息,我不应该在gridview中编辑其详细信息,我该如何使用C#在gridview中做到这一点.
我需要为此提供代码的任何人都可以提供帮助.

Hi,
I m developing a college site in that i have register detail about the user after that the user login and they see their detail and others details which i shows in grid view... If the user want to change their detail in grid view how to do. the particular user detail only to change who login. Other person should be edit in the gridview.

Ex: If i login means it shows the gridview and i want to edit my details i should not able to edit other details i can see only the other detail i should not edit their details in gridview how can i do this in gridview using C#.
I need code for this can anyone help.

推荐答案

you can check login credential it the page load 
if the authentiction is correct then you can set hide or show the column which have edit button


做一件事

每个用户都有唯一的身份权限.
然后在用户单击编辑"后,检查登录的用户身份是否等于他要修改的记录.
do one thing

every user have unique identity right.
then after the user clicks on edit then check the logged in user identity is equal to the record he going to modify..


这篇关于Gridview由特定的人编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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