数据绑定到特定用户登录详细信息的GridView中 [英] Data bind into GridView on specific User Login details

查看:69
本文介绍了数据绑定到特定用户登录详细信息的GridView中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Developers,

我是.net开发的新手.我被分配了一项任务,以便在用户登录时将与用户相关的数据绑定到网格视图中.我有两个网页,其中一个包含登录和身份验证信息.这样很好当用户重定向到第二页时,我需要提供一个GridView控件,其中用户详细信息应在后台的Grid View控件中自动更新.

我有保存在sql表中的三个不同的字段.用户登录时需要从sql表中检索特定的用户详细信息,并将数据自动绑定到网格视图.

已几次发布此查询,但未得到任何回应.如果有人可以帮助,将非常感激.

干杯

Tiffin.Gal

Hello Developers,

I am a Newbie in .net development. I was assigned a task so as to bind the user related data into a grid view on user login. I have got two web pages, one of which contains Login and authentication information. This goes fine. When user was redirected to second page, I need to provide a GridView control where user details should be automatically updated in grid view control in the back ground.

I have three different fields which were saved in sql table. particular user details need to be retrieved from the sql table on user login and bind the data to grid view automatically.

Have posted this query couple of times, but didn''t got any response. Would be much thankful if some can help.

Cheers

Tiffin.Gal

推荐答案

好吧,使用查询字符串或引文将已登录的用户信息传递到第二页.在(!PostBack)方法的第二页上或在加载页面时,使用该查询字符串或会话值从数据库中提取数据.然后将该查询的数据集绑定到您的Gridview.

祝你好运,
OI
Well, use a query string or seesion to pass the logged in user info to the second page. On the second page in (!PostBack) method or while loading the page use that query string or session value to pull data from DB. and then bind that query''s dataset to your Gridview.

Good luck,
OI


tiffin ...表中是否有ID.如果是,请编写一个使用参数(即UID和PWD)检索ID的过程.使用Session ["Id"] ..和其他page_load事件将ID传递到另一页...调用其他Stored_Pro以获取详细信息...将Id ...作为Stored_Pro的参数传递.并将数据集绑定到网格..
tiffin...Is There Any Id in That..Table..If s?Write a procedure to retrieve the id using the parameters(i.e, The UID and PWD).And pass the Id To the other Page Using Session["Id"]..and other page_load event...call other Stored_Pro for getting the details...pass the Id..as the parameter for Stored_Pro.And Bind The Dataset to grid..


这篇关于数据绑定到特定用户登录详细信息的GridView中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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