I have created one inventry application.In that i have created login form.But in login form i want to login locationwise that mumbai,pune,banglore etc....means mumbai person have diffent login ,pune person have different login....Please suggest code for this...It is on high priority....
ThanksDiv
madhuri GamanePosted Jun 29, 2015, 8:22 AM
Amol SonavanePosted May 14, 2015, 6:46 AM
Amol SonavanePosted May 13, 2015, 11:19 AM
Amol SonavanePosted May 13, 2015, 11:09 AM
Pranay RanaPosted May 13, 2015, 7:49 AM
Example :
USerLocation
UserID LocationID
1 1 -- user mapped to location having id 1
2 3 ---user mapped to location having id 3
than for this you can crate stored procedure for login user in that you can write query
select top 1 from user
join UserLocation on userid = locationID
where USerid = @userid--passed user id to procedure
and locationid = @locationid -- passed location id to procedure
I hope you will get my point