Passing ID during postback - page to page - Get logged in User ID

Hello.  I have a page, it's a test page.  Right now I have a few ListView controls.  The first ListView has a select button called "Show Licenses", when this is clicked the licenses (very bottom) ListView is populated and now that I added the address ListView, that is populated as well.  How do I make it automatically populate when I am on a user in the first ListView, for example, when you first load the page, the user with greenId 2, their information would load in the other ListViews automatically without clicking the Show Licenses button.

 I also want to be able to pass the greenId variable on to another page, say for example I put the licenses ListView on a different page, I would like it to populate user # 2 licenses.  I don't want to have anything in the address bar though.  For security reasons.

 Lastly...I guess maybe this should go first, but how do I get the UserId of the logged in user.  I am using Forms mode, so after you login, I want to be able to get the userid.  Then I could put the userid in these tables and use the SqlDataSource to only get the information for the user that is logged in. 

The login information to see the test page with all the controls is "zachstamey" "Password!23"

http://540east.com/green/user/userTest2.aspx

 

 

Thank you for your help.

0
TJNevis
9/28/2008 10:26:44 PM
asp.net.getting-started 91979 articles. 4 followers. Follow

1 Replies
1083 Views

Similar Articles

[PageSpeed] 49
Get it on Google Play
Get it on Apple App Store

 http://www.dotnetfunda.com/articles/article141.aspx

this article have answer to your questions

0
anonymouswrites
9/29/2008 4:15:02 AM
Reply:

Similar Artilces:

Ebay user ID vs Comcast user ID
Name: Michael P Stevens Email: mpstvnsatcomcastdotnet Product: eBay Companion Summary: Ebay user ID vs Comcast user ID Comments: The "Companion" automatically brings up "mpstvns" as my user ID for Ebay. It has been changed, cannot be accessed or used until the merging of ebay use is completed in about 30 days. My new user ID for ebay is "u_need_it_123" Can the "Companion" be adjusted to reflect this or will it be automatic when the merge is completed? I do not know if this is a "bug" or not. Browser Details: Mozilla/5....

POA error WpeAddAttachRecords disk id mismatch. Passed ID [2] pUser ID [16]
Hi, I receive a lot of these errors on the POA _WpeAddAttachRecords disk id mismatch. Passed ID [2] pUser ID [16] What does it mean? Netware 6 SP3 running GroupWise 6.0.4 Kind regards, Arjan Jack, It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply. Has your problem been resolved? If not, you might try one of the following options: - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp - Check all of the other support tools and options availa...

User Control IDs, CSS IDs
Suppose I have a user control called "mycontrol.ascx" with this code  1 <style> 2 #mylayer{ 3 font-size:14px; 4 } 5 </style> 6 <div id="mylayer" runat="server"> 7 Some Text 8 </div> 9 <a href="javascript:document.getElementById('mylayer').style.display='none'">Hide Me</a> 10 11   Now, if I reference it from an ASP.NET page using for instance this :<%@ Register TagPrefix="UC" TagName="MyTag" src="~/mycontrol.ascx...

user<id>.er$ and user<id>.dba
We had an issue over the weekend with our backup which caused a memory leak on the server that houses our POA. The server is back up and running and we did some GroupWise maintenance routines to verify everything is okay. The only thing that showed up in the Analyze/Fix was for structure check which returned a couple users having a .dba and a .er$ file. The user<id>.db appears to be okay for these users and the accounts are working. Can I just delete the .dba and .er$ files? Ive seen these before when a rebuild occurred on the user accounts and I think we were able ...

logged in user ids
Hi, this is probably an easy question but im not quite up to speed with the .net 2.0 log in controls. Once a user has logged in using an sqlexpress2005 db to authenticate themselves, how can i then get their userid which i then want to use in creating a new entry in another table? Am i correct in thinking this is written in their cookie which i can easily get the details from? I dont have to manually create a variable to use when they login do i? thanks User.Identity.Name will give you the username of the currently authenticated user....

Send Message to user's Skype' id ,MSN' Id ,Yahoo'sID or Gmail ID.
hi, i m writing a application in which i have to notify the user to his Skype' id ,MSN' Id ,Yahoo'sID or Gmail ID. Please let me know the code usign C#   Thanks Tulika. hi, what do you want to do...i mean....do you wnat to send email's or do you want to send message to the messenger. thanks, rajiv hi i want to send IM messages to online and offline users not Email. Please help me....

How do I display data in a datagrid specific to the logged in user using the User ID
Hi, I've got a table that holds user details (such as age, location etc). This table is linked to a user logon details table by the UserID column. How do I get a datagrid to display the logged on users details?  Everything I've read so far uses Username but username isn't a column in my UserDetails table. I've tried SELECT all from the user details table and using UserID as a session parameter but the datagrid doesn't display so I'm doing something very wrong I think. The sql statement looks like this:  SELECT UserID, FirstName, Surname, Telephone, Sect...

Login user id not persistent after user logs in. Works locally but not on server side.
Hi, I've built a mini app that runs of SQL Express 2005 with VWD Express 2005 locally with no problems on XP Pro.  When I split the app and the SQL database across two servers (Server 2003) the ASP.Net 2.0 Web Admin Tool doesn't seem be to working properly.  I'm using Forms authentication.  The user can sign in on the login screen but no authentication or retention of the user ID occurs.  Pages that are blocked from that certain user are now available, whereas on my local XP machine the restrictions are in effect.  ...

User ID and GUID
I know that all users have hashed user ID in a database.I want to make something like user's profile list - it would be a list of users from database. And I want that when user clickat name - simple "Bob Moby" he would be redirect to page:www.mypage.com/profile_user.aspx?ID=XXXXI want to have in XXXX simple user ID (1,2,3,4....) no something like this 3fdsf-s3fsf-kadacs-2qe. Is there any way to make something like this? Or this GUID number is only way ?  Since the username is unique, I would suggest using that.Peter Kellnerhttp://73rdstreet.com and blogging athttp:/...

Prevent User from logging in more than once with Same ID
Using forms authenication with Role authorization, is there a quick, easy way to test to see if the user requesting authenication is already authenicated? Hi, a possible solution is to keep a table in the DB where you put the user when he is logged in. (I don't know if there are other ways to do this?) Regards, BKT Cool, never thought of that. Could you please post if you think of anything else? Thanks, Mike...

Diffrent (ID) By ID
Hi!  I Have Know Diffrent (ID)  in Properties windows By ID. Please help Me!   Hi, and welcome to the ASP.NET forums. shsecretz:I Have Know Diffrent (ID)  in Properties windows By ID.  Can you please describe this a bit more please as it doesn't make a lot of sense to me at this moment. What exactly are you after? What is the Diffrent(ID) for you? Grz, Kris.Read my blog. Handy Firefox plugins for web developers.Workaround for non working Mark as answer buttons....

Problem moving nds user id and associated gwise id
We have moved many user ids and gwise ids with no problem. Yesterday we were in the middle of moving someone to a new containter and post office and that person logged into that gwise account during this process. This person can log into their fileserver with no problems. The groupwise id is a different story. She can log into groupwise but she doesn't see any of her old mail, she can send and receive new email. The interesting part is she can log into the old post office and all her old email is still there. If you click on the user object in nwadmin a error message a...

Passing ID between multiple user controls
Hi All,I'm having to write a repeater to display hotel information which consists of the following:Hotel Image;Hotel Name;Hotel Description;Hotel Facilities andRoom Facilities.The problem is that the Hotel Description, Hotel Facilites and Room Facilities are all stored in the same table with a 'productid' field of either HTL (for hotel),  FAC (for Hotel Facilities) or RFC (for Room Facilities). FAC and RFC are mapped to each hotel with another table that maps HotelID's and ExtraInfoID's (containing ID's for the facilities) Confused?! Me too.So far I have got one master repeater containi...

IDS logging NetSky passing through A/V ?
Has anyone else seen anything like this?? I have been chasing this for the last ~30+ hours, my MSX server (xxx.yyy.www.zzz) has TrendMicro as the MSX AV scanner updating every 1 hour. It has stopped over 10K email virus in the last 3 weeks and is still logging that it is deleting the email. I have sent test vi rues to it and it stopped them. The server has Symantec 8.1 installed as the file system AV protection (excluding the TM files and the Symantec files) running and updating ever 24 hours. Both are running in real time and deleting Netsky A,B.... I have rebooted the...

Cannot log in to web access with users with same id
I have 2 users in different domains with the same name and same id and they cannot log in to web access. If I have two users with the same id but different names, the -fn ln -will work fine. I have tried -fn ln-, -fn.ln@internet domain name- and -userid@internet domain name-. I receive the message "please login again. You may have typed your name or password incorrectly." Does anyone have a solution for this? -- sacramentonian ------------------------------------------------------------------------ Have you tried either user.po.domain or domain.po.user ? Cheer...

Web resources about - Passing ID during postback - page to page - Get logged in User ID - asp.net.getting-started

HasOffers Customers and Partners Event - Postback 2013 Tickets, Seattle - Eventbrite
This is going to be an incredible event with some of the smartest people in user acquisition, publishing, and performance advertising. Look ...

GeekWire Calendar Picks: Postback 2015, Hack the Dot Seattle, and more
Fast-growing Seattle startup Tune is holding its annual marketing conference, Postback 2015, at Seattle Center July 23 – 24. At last year’s event ...

ASP.NET MVC Framework - Wikipedia, the free encyclopedia
Based on ASP.NET , ASP.NET MVC allows software developers to build a web application as a composition of three roles: Model , View and Controller ...

Bentours - Travel Specialist Australia - Hotels, Tours, Flights, Cruises & Packages in Scandinavia, Russia ...
Bentours is a leading Travel Agent based in Australia. We fulfill our client's dream to explore and discover amazing travel destinations.


Amitech Business Solutions
Amitech Business Solutions, Creative Technology Startup ventures , Innovative IT company of India, allevents.in trendround

Drink of the Week - Logicum
Logicum It's Logical to share Menu Skip to content Home Contests Food Recipes Drink of the Week Health Technology Sports Space World Day Weapons ...

Publishers
Login An Adworkz Publisher gets paid for driving sales and leads to Advertiser Campaigns. Browse the network to find a campaign that matches ...

Sitefinity 4 Calendar Widget Released!
August 28th, 2011 I work for a software firm in Fort Wayne, IN. For the longest time, we used Sitefinity 3 as our standard content management ...

Second state of the Belgian Twitosphere
On April 17, 2007 I published the first state of the Twitosphere in Belgium , my home country. With this new state of the Twitosphere I want ...

Resources last updated: 12/30/2015 8:05:39 AM