Solved

Setting up a User Specific Data Web Application

Posted on 2014-02-13
5
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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