Security :: Profile Notlist In The Intellisense?

Apr 9, 2010

I could not get the profile work. I add the following profile in web.config

[Code]....

Profile does not list in the intellisense.I did lots of research on it , many said asp.net website template will work, and web application template won't.I am using Visual Studio 2010 and it has only website template.

View 4 Replies


Similar Messages:

Security :: Custom Profile Data Intellisense Without Using C# Provider?

Jul 19, 2010

I've been experimenting with the ASP.NET profile system and I like how easy it is to add data to the profile programmatically and how to access it again, all in a single line.

However, I've see the input that it sticks in the database and I'm not too keen on it.

I'd really like to create my own separate tables, so everything is nice and logical and easy to access, but I'd still like to be able to access this "profile" data as easily as I could with the ASP.Net profile system.

Should I create some kind of class in a separate class file that does all the hard work, then I can access the information from intellisense?

View 2 Replies

Visual Studio :: Profile Intellisense Not Working?

Mar 18, 2010

I thought I would try this forum first, but it may be an ASP.NET general question.

I have setup profile in a web.config like the following:

[Code]....

However when I try and reference the profile in a code behind using the "Profile.blah-balh" the intellisense does not pick up the elements I have defined in the web.config.

Intellisense is generally working and does sport the Profile() starting point when typed.

View 1 Replies

Security :: Creating A Profile For A New User Is Updating Other Profile

Feb 4, 2010

I am logged in as user1, and while creating a user in which I have additional information which would store first and last name into the profile database. I have the following code

[Code]....

But because I just have profile like that, it is updating the profile of user1 not the new user i just created

[Code]....

View 5 Replies

Security :: Want To Use Profile And Have A Profile Property?

Dec 5, 2010

I'm being stupid but don't know what I'm missing.I want to use asp.net profile and have a profile property.So in the webconfig for my site I've added:

<profile>
<properties>
<add name="Name"/>
</properties>
</profile>

But in the code behind a page I cannot use Profile.Visual Studio is just saying the Profile is not known in the current context.Thus I cannot do

Profile.Name = ....
or
x = Profile.GetPropertyValue(....)

View 13 Replies

Visual Studio :: VS2010 Master Pages And JQuery Intellisense / Intellisense Only Seems To Work For JQuery

Jan 6, 2010

I think my main problem is actually more to do with master pages that anything else.. Below is a description:

If you use master pages in your website and you have pages in different sub directories then the simplest way to add JQuery references is using <script src='<%# ResolveUrl ("jq.js")%> /> in the master page header??

This means that the .js files are correctly referenced in all pages that use the master. My main problem is that intellisense only seems to work for JQuery when the JQ Script is actually referenced in the header and not by using ResolveUrl('') <script src="/scripts/jq.js" />

I dont want to have to live without intellisense, Surely there is a way to get around this. What am I doing wrong.

View 1 Replies

Security :: Use The Profile Other Than Default?

Mar 3, 2010

I'm making another attempt to find out how to use a different profile in the web application. I though it would be quite simple. but couldn't find an answer anywhere.

All I need to know is how to call "i90ProfileProvider" instead of default "i90PartnerProfileProvider" in C# or VB.

<profile defaultProvider="i90PartnerProfileProvider">
<providers>
<clear/>
<add name="i90PartnerProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="i90Partner"/>
<add name="i90ProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="i90"/>
</providers>

There must be the way to do this. For user it works just fine:

MembershipUser user=

Membership.Providers["providername"].GetUser("username",false);

If there is a way to add a name for Profile Provider in web.config, then there must be a way to use it.

Or I should do something entirely different to retrieve the user profile form another database?

View 5 Replies

Security :: Profile And CreatUserWizard?

Mar 7, 2010

1. i use the profile feature and i noticed that the profile cant work with anonymus users . and i can understand why now it leads me to a nother problem , in the creatUserWizard i added another step wich take the personal details of the user like firstName LastName and ect... and i wanted to store the details in the profile feature...

but it wont pass me to the second step it just give me an erorr that the service can work with anonymus or something like that .

2. i stored a datetime detail in the profile and when i tried to get it it gave me the date + the hour i put the date like : 29/12/1989 18:18:00 and i want to see just the date ...

View 4 Replies

Security :: Caching Profile Object?

Dec 16, 2010

I have an MVC Web App project. Because the Profile object is only available to website apps, I've written my own Profile class that inherits from ProfileBase (as described in various places around the web). I'm also using the AppFabric cache. I would like to cache the logged in user's Profile object so that every time I access the Profile, it comes from the cache and not the aspnet database tables. However, I've hit a problem. When I try to add the Profile to the AppFabric cache, I get this error: The use of type 'System.Configuration.SettingsContext' as a get-only collection is not supported with NetDataContractSerializer. Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property. I've noticed that ProfileBase inherits from SettingsBase, which indeed contains a read-only property called "Context" of type SettingsContext. I've tried for a few hours now to get my Profile:ProfileBase to serialize, but to no avail.

View 2 Replies

Security :: Get Users By Profile Information?

Oct 19, 2010

I am useing asp.net membership to store my users and under each users profile there is a field for their supervisor. I would like to get a list of all the users with the supervisor "Jon Doe". Is there an easy way to do this or would I just have to loop through each user and see if there supervisor = "Jon Doe" then if it is store there username in a list?

View 1 Replies

Security :: Update Profile Not Updating?

Feb 18, 2010

There is no error produced, but it does not seem to update the profile, any thoughts?

[Code]....

View 2 Replies

Security :: Cannot Update Profile Informations

May 18, 2010

I want to create the system of user profiles, where every member have profile information (address, phone number ...). Only administrator can update this information, member can only ask administrator for that update. What class i can use (ProfileManager provides only ProfileInfo and with ProfileInfo class I cannot update profile informations)

View 8 Replies

Security :: Profile Updating But Not Displaying?

Sep 28, 2010

I have a web app where I'm asking the new registered user to enter in their first name, last name and then a choice (radio buttons) of whether or not they are a solo artist, or a group! These 3 answers are held in the aspnet_Profile table. As part of the createuserwizard, it works. Saves like a charm. The user then has the ability to go in and edit these 3 fields at will. Upon page load, the two text fields (first name and last name) are blank, and the choice always defaults to the default. So it's not pulling my data for some odd reason. But, when I put put text in the field and press 'Update', it does actually update. So my issue seems specific to not getting the data on page load. I've built a custom UserProfile control by following 'The Beer House' starter kit and book. Here's my page load code for this custom control:

[Code]....

Another obsticle I have today is that none of my breakpoints are working, so I'm battling that as well. This seems very straight foward, and LOOKS correct, but no.. the txtFirstName and txtLastName aren't populated, but there is a first name and last name in the table. Even odder, in my header I have a "Hi John Doe" which concatinates the first name and last name, and this DOES display correctly in a lable. Here's that simple code:

[Code]....

View 2 Replies

Security :: Working With Profile Feature ?

Mar 1, 2010

i'm working in visual studio 2005 asp.net c#.i'm trying to learn about profile feature ... and it seems easy to use it but i have some questions ...i red some articles and tutorials about the profile feature but i dont understand where all the details that you store are stored ?in database ? xml file ?

i didnt try it yet but it seems logical to me that when you define properties in the web.config its creating tables in the database with the names you named the properties like : <profile
>
<properties>
<add[code]....

then it will creat in the database "name" and äge" fields ? is that right ? .... if yes , where is the definition of the connection with the database ?if not, how does it work ? i know that the <connectionString> in the web config connect the database that i want to use and creat it tables. for the login and creat user .does the profile use the connection string and work with the database to !?

View 5 Replies

Security :: Profile Not Saving Against User?

Nov 1, 2010

I have a website that acts as a common user details site for a few other websites. I pass a sersname to it and it gets the profile using

[Code]....

that part works fine. Now to commit the changes I use the above code to get the profilecommon for the user and then use oProfile.Save() to finish. This saves all the user data to my profile..doesn't matter which profile I use, it always gets saved to mine.

View 4 Replies

Security :: FormsAuthenticationTicket, Role, Profile?

Apr 27, 2010

I assume that any Role information is being stored in the FormsAuthenticationTicket in the UserData (delimited by some character).Second, I assume that any information in the Profile is not stored in memory / session anywhere, but when you do call the profile.VARIABLE, you are in fact doing a call to the DB (although it's simplified by the fact that it knows who you are when calling etc).Assuming the above is correct, I'm trying to complete a custom membership provider. As part of this each user will have a single role. So using a full blown role provider seems to be overkill. I assume that I can write the single role into the UserData in the FormsAuthenticationTicket myself?I would like to also store a number of other small bits of information in the ticket (such as a GroupId, VendorId which are seperate from the user / role). If I wanted to do this, and the role is held in the userdata, how would I identify what is a role and what is someother persistant data I need on the application?I could use Session items for these, but this might cause issues with the web-farm, plus the amount of data is very small (3 or 4, int32 values and maybe one string).Finally, items such as Address, PostCode, Contact Phone number all seem sensible items to place in the profile ( I'm using the table provider). Is the advantage here purely the ease of access? This isn't commonly used data, so if there is a round trip to the db thats not an issue really in this instance

View 4 Replies

Security :: Read And Write Image To Profile?

Feb 8, 2010

I would like to use a file upload control and write the uploaded image to the user's asp.net profile property, and then read and display that image somewhere in my application.

View 1 Replies

Security :: Accessing The Profile Class From A VB.Net / VS.Net 2008 Web App?

Mar 29, 2010

I am using VB.Net/ASP.Net 2008/3.5 to create a Web Application and I am trying to access the Profile Class.

I notice that unlike a "Website" that you cannot access the Profile class from a "Web Application" and I was wondering what is the best way of adding the Profile class to a Web application?

View 4 Replies

Security :: How To Use Profile Provider In WebForm Application

Dec 2, 2010

i want to use profile provider in webformapplication

i hear that profile provider can only be used by website

is there some way to use it also in webform application?

i try to useProfileCommon method but i got an error

View 2 Replies

Security :: While Using Profile In 3.5 Error Comes - Doesn't Exists

Jan 12, 2010

While using profile in ASP.net 3.5 Error comes The name 'Profile' does not exist in the current context My code behind

Profile.FirstName = "ABC";
My web config
connectionStrings
>
<
add
name="MyConnection"
connectionString="server=AJAYG;uid=sa;pwd=cybage@123;database=TestDatabse"
/>
<
remove
name="LocalSqlServer"
/>
<
add
name="LocalSqlServer"
connectionString="server=AJAYG;uid=sa;pwd=cybage@123;database=TestDatabse"
providerName="System.Data.SqlClient"
/>
</
connectionStrings
>
<
system.web
>
<
anonymousIdentification
enabled ="true"
/>
<
profile
enabled="true
"
automaticSaveEnabled="false"
>
<
providers
>
<
clear
/>
<
add
name="AspNetSqlProfileProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="LocalSqlServer"
/>
</
providers>
<
properties
>
<
add
name="FirstName"
defaultValue="ABC"
allowAnonymous ="true"
/>
<
add
name="LastName"
defaultValue="ABC"
allowAnonymous ="true"
/>
<
add
name="LastVisit"
defaultValue="ABC"
type ="System.DateTime"
allowAnonymous ="true"
/>
</
properties
>
</
profile
>

View 2 Replies

Security :: Creating New Profile Table And Getting Information

Feb 25, 2010

In my application I am using the aspnetdb membership for authorizing users. I created a new table UserProfiles that will hold their profile information. The UserID is linked to aspnet_users UserID with a foreign key. One of the columns in the table represent CompanyID (int). I want to be able to restrict logged in users to only see records from their company based on the CompanyID. There can be more than one user with the same CompanyID to the UserID would not work. I can restrict their access by UsedID to only see records they created by using code behind:

[Code]....

and my select statement is:

[Code]....

How would be the best way to restrict the selected data to UserProfiles.CompanyID?

View 5 Replies

Security :: Iterate Through Profile Information And Display

Aug 27, 2010

I have a site I'm working on where the values being stored in user profiles can change so I need to iterate through all available profile options and display them (say in a label or gridview for instance). Here is an example of a web.config I threw together

<profile enabled="true">

View 6 Replies

Security :: Adding Profile Information To FormsAuthenticationTicket

Jan 19, 2010

I'm authenticating my users using the following code for the login event:

[Code]....

The following code runs in global.asax at Application_AuthenticateRequest:

[Code]....

Everything works great so far. Next thing that I need to do is add additional user information to the forms authentication ticket using user profile. When I try to add it right after the login code above, I end up getting an error message about anonymous profile. On the other hand, HttpContext.Profile is read only and doesn't seem to work. Is there any workaround for this?

View 2 Replies

Security :: Storing Profile Information Into Session

Feb 10, 2010

I have created a custom user creation wizard to store custom user information, This is working fine. I am now trying to create a new page to give the newly created user to create users in there own company, so i need to retrieve the company information from the user profile created and automaticlly fill that information into the new create user wizard. ie User from A company logs in. (company_id from profile is stored in session)
User A wants to make another user in company A (but cannot make a user in company B) User A fills in details for new user, Company A information is autofill into new user info. (possibly from session)

I have read alot about storing membership. info into session but i cannot find any code examples of how to do this. I need to find a way to store Company_id into session and then use that for creating a new user with the same Company_id.

View 7 Replies

Security :: Is There An UpdateUserWizard Somewhere For Updating User Profile

Apr 14, 2010

There is a CreateUserWizard. Is there an UpdateUserWizard somewhere for updating user profile? Please advise or direct to sample link.

View 1 Replies







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