如何在Gridview数据上按名称进行Login.Aspx页面搜索请伙伴帮助 [英] How Do I Make The Login.Aspx Page Search By Name On Gridview Data Please Guys Help

查看:82
本文介绍了如何在Gridview数据上按名称进行Login.Aspx页面搜索请伙伴帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Default.aspx上按名称进行login.aspx页面搜索,并按用户名在gridview数据上显示userdata请伙计们帮助我卡住

How do i make the login.aspx page search by name on Default.aspx and display userdata on gridview data by username please guys helps me am stuck

推荐答案

引用:

当用户点击登录时我想让它用他们的用户名和信息重定向到default.aspx

和在深度我希望gridview附加到登录

when user clicks on login i want it to redirect to default.aspx with their username and information
and in deep i want the gridview attached to the login

据我了解,您希望在登录后保留用户详细信息,以便在下一页上,您可以识别用户并在 GridView 相应。



如果我对此是正确的,那么你需要使用 Session 来存储成功登录后, UserName 。然后在第二页上检查 Session 变量并使用 Session 的值从数据库中检索记录并将其绑定到Grid。

As far as I understand, you want to keep user details after login so that on the next page, you can identify the user and show some data on GridView accordingly.

If I am correct on this, then you need to use Session to store the UserName, after successful login. Then on the second page check the Session variable and use that value of Session to retrieve records from database and bind that to the Grid.


这篇关于如何在Gridview数据上按名称进行Login.Aspx页面搜索请伙伴帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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