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


Similar Messages:

Security :: Profile Not Working After Site Move?

Jul 8, 2010

We moved our website from one production server to another production server. DNS propagation is not an issue here. Some users cannot login now and others can. Those that can login do not see the same menu items that they used to see prior to the move. It's like the profile provider is not working. I checked the web.config file and everything appears to be the same as it was before. Is there something else I forgot to move?

View 4 Replies

Security :: GoDaddy - The UserID/Password Is Working Fine - But The Profile Isn't?

Jan 29, 2010

I got the login to work fine- go to [URL]if you want to give it a try. Here is the thing. The profile functionality doesn't work. It draws from the same set of files, it used the same connection string as the users, it work on my local machine, but blows up on GoDaddy because it cannot find the file, and when it tries to create it. The file it uses for the profile, aspnet_Profiles, is on there along with the rest of the membership files. The connection string is not defined individually. Why is it finding the user files, but not the profile file.

Here are the files

aspnet_Applications
aspnet_Memberships
aspnet_Paths
aspnet_PersonalizationAllUsers
aspnet_PersonalizationPerUser
aspnet_Profile
aspnet_Roles
aspnet_SchemaVersions
aspnet_Users
aspnet_UserInRoles
aspnet_WebEvents_Events

Here is the Wec.config

[Code]....

Here is the Profile User Control

[Code]....

Here is the profile wrapper

[Code]....

View 3 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

C# - Download Feature Not Working Within Update Panel?

Mar 28, 2011

I have a Web User Control containing a FormView. The formview shows details of job seeker. I have provided a button for "Download Resume" link, so that admin/HR can download the resume. I have placed this control in an aspx page that contains the UpdatePanel. Everything works fine except Download Link.

I have given a Command on donwload link button and a function is associated with the command to start download.

Below is the code i have implemented -

[Code].....

The code works perfectly if update panel is removed but generates script errors if update panel is used.

View 3 Replies

Security :: Content Manager Login Feature?

Jun 17, 2010

I was wondering if someone could send me a link or tell me how to create a login page for administrators or content managers on a web application. I do not want everyone to have membership. Only certain people will be able to log in and change the content of the site. For others, it will be view only.

View 3 Replies

Security :: Structuring An Application That Will Feature Login Page?

Jul 23, 2010

I have a site I am working on, that will have a home page with a login control. I would expect that after logging in, access is permitted to only certain areas of the website. I would imagine that the properties set by the login control will determine which pages can be viewed. Does this make sense? I know that many other websites have this type of structure, just not sure how it is organized.

View 3 Replies

Security :: How To Setup An Automatic Password Recovery Feature

Dec 8, 2010

How do I set up an automatic password recovery feature? (This is an internet application using forms authentication.)

I am trying to set up the common senario where when a user who has forgotten his password, clicks a button to request I send him a new password. I then open his browser's default email client (that is no problem, that part I already have coded and it is working fine.) The user then clicks a button to send me his email. Now comes the problem. How do I detect that he has done that?

Am I approaching this problem correctly? Should I be requiring the user to send me an email in order to have his password reset? Or should I just have him fill in textboxes giving me his username & password? Wouldn't this allow a malicious user to abuse the system?

View 12 Replies

Databases :: How To Get Profile Providers Working With DSN

Mar 12, 2010

I can't get my profile providers (supported databases are SQL Server and MySQL) working if I use DSN in connectionstrings like "dsn=dsnName;User ID=userif;Password=psw;". Profiles are working fine with "normal" connectionstrings.

View 2 Replies

Web Forms :: Profile Class Not Working?

Sep 10, 2010

1) I am making use of Profile class in my application, and using System.Web namespace, but intellisense is not able to recognize it. But when I make use of System.Web.Profile, it is working properly. What is the reason of this?

2) System.Web.Profile is not able to recognize IsAnonymous property, why is it not recognizing?

View 2 Replies

Web Forms :: Error - For Security Purposes This Feature Verifies That Arguments To Postback Or Callback

Sep 4, 2012

<script type="text/javascript">
function configureDropDownLists(ddl_religion,ddl_caste) {
var Hindu = new Array('Ahom', 'Brahmin-other', 'Intercaste','Kalita','Kayastha','kshatriya','Manipuri','Maratha','Nepali','Rajbonshi','Rajput','SC','ST','Vishwakarma','Other');
var Muslim = new Array('Ansari', 'Arain', 'Awan','Bohra','Dekkani','Dudekula','Jat','Malik','Qureshi','Khoja','Memon','Mughal','Pathan','Mapila','Shafi','Sheikh','Syed','Siddiqui','Other');

[Code] ....

Everything is working fine and i am able to update the second dropdownlist based on the item selected in the first dropdownlist.

The problem is that i am not able to capture the data to a cs file and upload then it to database and i am getting this error:

For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  

If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation

View 1 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

Web Forms :: Custom Table Profile Provider Not Working

Feb 9, 2010

I am trying to use: [URL] I have downloaded the converted to VB files and inserted them in my app_code folder. I created the SQL table and ran both SQL stored procedures Now for the web.config, I already have a connection to my database for the aspnet memberships since I have it on my own database, so I used that for the connection and I did this:

[Code]....

But I get run time errors when I try to set a profile. The error I get is in the SqlTableProfileProvider.vb and it says "Incorrect syntax near ','." Which is really not enough information but that is all what it gives me

<profile defaultProvider="TableProfileProvider">
<providers>
<add name="TableProfileProvider"
type="SqlTableProfileProvider"
connectionStringName="LocalSQLServer"
table="UserProfile"
applicationName="DatabaseProfileProviderTest"/>
<add name="StoredProcedureProfileProvider"
type="SqlStoredProcedureProfileProvider"
connectionStringName="LocalSQLServer"
setProcedure="setCustomProfileData"
readProcedure="getCustomProfileData"........................

View 1 Replies

SQL Server :: Full - Text Feature On SQL Server 2008 RC2 Stops Working

Dec 19, 2010

I'm using the full-text feature on SQL Server 2008 RC2. Everything had been working well until today. I wanted to change the language for word breakers from Neutral to Slovakia. After I did that, I can't perform full-text search anymore. It simply give me no rows. I even deleted the old full-text catalog and created a new one and populated it, but it still gave no solutions. I tried to query dm_fts_index_keywords_by_document on my table and get only 1 row with a display term END OF FILE.

View 3 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 :: 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 :: 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







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