Solved

Setting up a User Specific Data Web Application

Posted on 2014-02-13
5
187 Views
Last Modified: 2014-03-05
I'm making an intranet website and I am making a user specific website that has a login and authentication for each sales rep. I'm new to ASP but I was able to create a membership application with my sql server and visual studios authorization process, I'm trying to figure out how to query all my reports to the sales rep name that logs in. What's the best process to go about this. I've found a bunch of resources to create the login but can't seem to find anything to link a Gridview or other control to the login name.
0
Comment
Question by:Southern_Gentleman
  • 2
  • 2
5 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
ID: 39858655
You can use the Membership.User class to get details of the currently logged in user and then can filter the grid on user name.
0
 
LVL 16

Assisted Solution

by:Kamal Khaleefa
Kamal Khaleefa earned 250 total points
ID: 39862386
as mentioned above ; get the user details and pass them to your grid to filter content or give access based on that user name
0
 

Author Comment

by:Southern_Gentleman
ID: 39887850
I think I'm going about this the wrong way. I found some things on using querystring in the url and then query my gridview to the URL. I found some stuff on C# but I want to use it in VB
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39888356
If you pass username in query string, anyone can change that.
0
 

Author Closing Comment

by:Southern_Gentleman
ID: 39907037
Ok, Thank you. I ended up making a  class for HttpContext. Seems a lot more secure than just a query string.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.Net Serial COM1 Port - how to send this text via Serial COM port? 13 41
Class object 2 26
Replace &lt; with < 14 56
Point to Current Row Ater Refresh Datagridview 3 20
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now