Accessing User's specific data ASPX / .MDF table

wein

New Member
I am using Visual studio and have the following page_load function on my Default.aspx web form:\[code\]if (IsPostBack == false) { //Display all records on the form load DisplayCars("");\[/code\]I have a user, where I can get their username (which I have used to add as the "Creator" of the specific data record). I want to use this username to only display cars where the username = ACar.CreatorHow would I go about doing this? I have everything setup in order to do this.I need something like the following:\[code\]if (User.Identity.Name == ACar.Creator) {show this record}\[/code\]But I do not know the syntax for this within aspx/sqlThanks
 
Back
Top