Security :: Show The Address Property For Company Users?

Sep 17, 2010

I have been playing a bit with ASP.NET MVC 2 using VWD 2010.After a bit of struggling with profiles(thank you MS for putting 2 web.config files in the solution...) I decided that after all I like this technology. I always thought that dotNET would be great for server side stuff and I've been proven right.Anyhow, I'm gonna start a real project now and I want to do something weird(yes, I know, I shouldn't be wanting to do weird things, but it's just beyond me :-) ): say I have a company website with roles and a forum.When I click on the nickname of a user, I want to bring his/her profile up - just like you would be doing with any decent forum out there. Well, my final idea is a tad more interesting in this regard, but let's stick it at that: click and see profile page.Problem is, I want this profile to be different for company employees and users.

I want some general informations such as first and last name, date of birth, photo, etc and then for instance I do not want to show the address property for company users. Yes I know I might want to put the company address there or leave it at all blank and I would rather not display it at all.From what I gather about profiles, this is possible only using views and checking for the roles, doing something like:

if User.Role == Company
{
// Stuff here

[code]...

View 5 Replies


Similar Messages:

Security :: Store Users IP Address Using 2.0 Registration Control?

Aug 5, 2010

how to store users Ip address while registration using asp.net 2.0 Registration control.

View 1 Replies

How To Attach Company Logo In Web Application URL In The Address Bar

Dec 27, 2010

tell me how to add company logo with web application url address bar

View 2 Replies

Web Forms :: How To Send All The User Information In The Webform To The Company Email Address

Jul 19, 2010

I am creating a "Request for Quote" web form for my company so that when user enters his:

name,address,email,phone etc fields and clicks the submit button,all the data of the webform should be sent to my email address.

View 5 Replies

Save Documents From Company Intranet To Users PC?

Jan 19, 2010

I've got a pretty simple vb.net page that has a bunch of data listed in a datagrid and each row in the datagrid has an accompanying .pdf form listed in a column. The user reviews the data, and if needed clicks on the hyperlink that opens the .pdf in another IE browser window. After reviewing the .pdf in the other window, the user may need to dowload it to their pc to add notes, highlights, text, etc. Since they have the .pdf open in the browser window on the pc, is it possible to then just drag/drop the .pdf to their desktop to edit locally?? If that isn't possible in .NET what other options are there?

Right-click | Save As isn't a good enough option, becuase the user won't know if they need to download and edit it until the .pdf is actually open. My initial thought of once they have it open in IE, just do a file, save as, won't work either, as it requires too many clicks.

View 2 Replies

Javascript - Finding Users IP Address And MAC Address From Web Browser

Sep 2, 2010

Is it possible to find out the clients IP and possibly MAC address from non IE browsers (i.e. without using ActiveX)? If so, how?

View 1 Replies

Security :: How To Show Membership Users That Are Not In Any Role?

Apr 15, 2010

I am using the asp.net membership provider tables in sql server. I'm trying to figure out how to query a list of users that are NOT in any role.

View 4 Replies

Security :: How To Make Login Control Allow Users To Login By Either Username Or Email Address

Oct 12, 2010

how to make login control allow users to login by either username or email address

View 1 Replies

Security :: Not To Show The Login Page When Users Are Logged In?

Apr 11, 2010

I have a Login.aspx in my application.

After users logged in, if they press "back" in the browser, it goes to the Login.aspx page.

But I don't want to show users the Login.aspx page when they are logged in. how to restrict users to see the login.aspx page if they are logged in??

I am using sql role based membership provider and standard login control provided by Visual web developer 2008.

View 7 Replies

Restrict The Logged In User To Show Data Only For Their Company?

Sep 6, 2010

In an asp.net webform app, I need to restrict the logged in user to show data only for their company. This is a primary key of my topmost table. How to I set that based off the user. I imagine I would have another table with some user ID mapped to company ID?

View 1 Replies

Data Controls :: How To Take Print Out Show Company Name In Top Of Gridview

May 7, 2014

How to take print out show the company name in top of the gridview using asp.net using c#.

View 1 Replies

Security :: Permission Cannot Be Acquired Using Dll On Hosting Company?

May 13, 2010

I have a dll which i downloaded from a lightbox website. It is in the bin folder But i get the error permission cannot be acquired.can anyone assist?

View 1 Replies

Security :: Membership Working In Local DB But Not In The DB From Hosting Company Server

Jun 28, 2010

I'm using membership that created by asp.net configuration when you create users with roles when you create a user for your website using asp.net configuration in Visual Studio

After uploading my project and creating the Database, I can't login using the users that i have created, i'm 100% sure im using the right username and password but still can't login but they are working 100% in my local DB

after few search in google i found the solution is to execute the following command:

[Code]....

View 3 Replies

C# - Blocking Users By IP Address?

Mar 23, 2011

I need a way to block users from their IP if necessary. What's the best way to approach this? Can I use Request.ServerVariables["REMOTE_ADDR"] and store the ip address as a string in the DB?

View 3 Replies

Security :: Create A Company Directory Useing A Grid View To Display Every User And There Profile Information?

Aug 10, 2010

I am currently useing forms authenticantion with users set up with the Membership API and I have there other information like first name and work phone number stored useing the Profiles API. I want to create a company directory useing a grid view to display every user and there profile information. I can use Membership.GetAllUsers() or ProfileManager.GetAllProfiles() but it does not list any of the custom profile information like name and phone. What is the best way to get a grid view to show all the user information?

View 7 Replies

Security :: Allow Admin Users To Access Basic Users Accounts?

Aug 26, 2010

Allow Admin Users to Access Basic Users Accounts?

View 4 Replies

Security :: After Successful Creation Of 3 Users On My Web Site Now Cannot Create Users

Dec 6, 2010

[Code]....

after successful creation of 3 users on my web site now cannot create users

View 9 Replies

State Management :: Best Way To Store Users Mail Address?

Sep 8, 2010

I have some webforms and the main page grabs the users email address when they login and a UserID. It's not uncommon for the user to keep the web page open all day. Is it good practice to store the email address and ID as a session variable and up the timeout to say 10 hours? Or is there a better way? My concern is A) Session variables timing out before the user login timesout B) Doing this incorrectly.

View 12 Replies

DataSource Controls :: Match Address Of Same Property Between Two Tables?

Feb 12, 2010

I have two tables, both contains same properties. The problem is the address spellings MAY vary between table 1 and table 2 but they are actualy same properties. In my sql statement it list out the property that has exactly the same spellling. How do I match the two tables addresses? I heard about fuzzy algorithm but how do I apply it here. I know it wont be perfect but it will be close (check my sql below) I use sql server 05.

Example

Table 1
- 123 greenwood hwy
- 123 halo street
Table 2
- 123 greenwood highway
- 123 halo street
SELECT table1.address,table2.street_address
FROM table1 INNER JOIN
able2 ON table1.address = table2.street_address

My Output returns only one property that has same exact address spellings

- 123 halo street | 123 halo street

View 7 Replies

Security :: How To Display Users And Number Of Users Online

Oct 12, 2010

We have implemented the ASP membership and roles..and we would like to display the users currently logged in and also display the number of users online so we can display that on the page. The list of users woudl only be available to our admins. BUt the number of users will show for everyone.

View 9 Replies

Web Forms :: Restrict Users Based On IP Address On LAN Network In Website

Aug 21, 2013

in my asp.net+vb web page  which is use din INTRANET web . In a page i want to restrict the browsing for four peoples only, so that i used a code like below.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ipaddress As String
ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ipaddress = "" OrElse ipaddress Is Nothing Then
ipaddress = Request.ServerVariables("REMOTE_ADDR")
End If
iptxt.Text = (ipaddress)
If iptxt.Text = ("192.168.0.3") Then
Response.Redirect("err.aspx")
End If
end sub

in my asp.net+vb web page  which is use din INTRANET web . In a page i want to restrict the browsing for four peoples only, so that i used a code like below.

ProtectedSubPage_Load(ByVal sender AsObject,ByVal e AsSystem.EventArgs)HandlesMe.LoadDim ipaddress AsString ipaddress =Request.ServerVariables("HTTP_X_FORWARDED_FOR")If ipaddress =""OrElse ipaddress IsNothingThen ipaddress =Request.ServerVariables("REMOTE_ADDR")EndIf iptxt.Text=(ipaddress) If iptxt.Text=("192.168.0.3")ThenResponse.Redirect("err.aspx")EndIf

View 1 Replies

How To Authenticate Users Based On Their Email Address And Password As Oppose To Domain

Dec 10, 2010

Does anyone know how I can authenticate users based on their Email Address and Password as oppose to Domain, Username and then Password?

View 1 Replies

Active Directory/LDAP :: Display Logged In Users Email Address?

Feb 3, 2011

I have a lable that I want to show the logged in users e-mail address. Can someone show me the code-behind in C# for this?

lblEmail.Text = ....

View 7 Replies

Web Forms :: Find Computer Name And IP Address Of Users Machine And Save It In Database?

Feb 11, 2013

i have a asp.net web with vb code and sql database. i am willing to store the details of the users as ip,computer name and time of using the web is it possible.

View 1 Replies

Security :: Automatically Add Users To Role Users?

Aug 4, 2010

I just realized after i created a test account i was not in any roles. Is there a way to automically add new users into the role Users? Have i missed this some where?

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved