根据人员登录进行行转移 [英] Row Transfer According to the Person Login

查看:73
本文介绍了根据人员登录进行行转移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个页面,分别是"Staff_Common.aspx"和"Staff_Main.aspx".这两个页面都有griedview.所有员工都可以查看"Staff_Common.aspx",但每个员工都可以查看"Staff_Main.aspx".我的问题是,当某人登录时,如果用户根据单击它的用户在"Staff_Common"网格上单击一行,该如何将"Staff_Common"网格视图中的一行转移到"Staff_Main" Gridview中?除非被用户删除,否则已转移到"Staff_Main.aspx" sholde的行将保留在那里.

I have two pages, called "Staff_Common.aspx" & "Staff_Main.aspx". Both this page had griedview. "Staff_Common.aspx" can be view by all staff, but "Staff_Main.aspx" is personal for each staff. My question is, when a particular person login, how to tansfer a row from "Staff_Common" Gridview to "Staff_Main" Gridview if the user click on a row at "Staff_Common" according to the user which clicked it? The row which been transfered to "Staff_Main.aspx" sholde remain there unless been deleted by the user.

推荐答案

如果您的意思是在两页之间传输数据,则表示可以将值存储在Session变量中,并在其他页面加载时将其读回.要根据登录的用户过滤数据,您必须在用户登录时将用户ID存储在Session变量中,并使用特定的用户ID查询您的数据存储.
If what you mean is transferring data between two pages, you can store the value in a Session variable and read it back when the other page loads. To filter data based on the logged in user, you must store the User ID in a Session variable when the user logs in and query your data store with the specific User ID.


@Shameel,对不起,我是ASP.Net的新手.如何将值存储在会话变量中并读回.我能知道VB代码的样子吗?.??
@Shameel, im sorry as im newbie to ASP.Net. How shall I store value in a session variable and read it back. Can i know how the VB code look a like..??


这篇关于根据人员登录进行行转移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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