简体   繁体   中英

Redirect from admin page to user page by clicking a link button in gridview in asp.net c#

I have a web site application which has admin and user page. Admin can view user information and also can visit their pages by cliking a link button . After cliking , it will pass user id in stored procdeure and it ll get usernamen and password and redriect the admin page to specific page in user site for example Userweeklytimesheet.aspx with that username

I just need an idea how to achieve this ..

Any help appreciate..

It is same as maintaining state between post backs Here you can use Query String

like

Response.Redirect("Userweeklytimesheet.aspx?UserName="+YourUserName);

More find about QueryStrings

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM