Security :: Displaying Profile Properties Using Custom SqlTableProfileProvider?

Mar 19, 2010

We've been using the custom SQL table profile provider offered on the MSDN site.No problem configuring the new provider and saving profile values into our custom table while using the Create User Wizard.However, we cannot seem to be able to display the profile properties, using

[Code]....

The user is logged in, and there are no problems displaying all membership values and role values.

View 1 Replies


Similar Messages:

Security :: Accessing Custom Profile Properties?

Mar 5, 2010

We have added some custom profile properties to the web.config - what we want to do is have the code access them once (when user logs in) and cache this so that the code doesn't have to hit the database each time we call Profile.<our custom profile property name>

What we see is a call to GetProperties or GetProfile each time we access Profile. <our custom profile property name> - whats the recommended way to do this?

View 4 Replies

Web Forms :: SqlTableProfileProvider Can't Access Profile Object

Jun 4, 2010

I'm having trouble getting started with the SqlTableProfileProvider. The documentation is here:[URL]I have set up my project exactly like the whitepaper example but I can't access the Profile.SomeProfileField. When I build the project it shows that the Profile object doesn't exist in the current context. I have included the System.Web.Security and System.Web.Profile namespaces. I tried to add a reference to System.Web.Profile but can't find that DLL anywhere to add. Can anyone push me in the right direction?

View 3 Replies

Get Custom Properties Common Profile?

Aug 16, 2010

How do I get access to my custom strong-named properties of the common profile (page.profile) in ASP.NET for a classes that does not derive from page? I thought I could just pass in httpcontext.profile but I'm missing the custom properties.

There should be some class type that I can pass in? It appears the class type is ProfileCommon and is auto-generated.

View 1 Replies

Security :: Any Asp_net Function For Accessing Profile Properties Of A User?

Dec 17, 2010

I am using my aspnet membership for storing user profile related information in the database and I am looking for a way to access that information out of database from a function like Member.GetProfile. I am just wondering of any of the membership classes give thet functionality that I can actually access the information out of Membership database.

Somebody suggested me follwowing thread:

[Code]....

I am "Profile" object is not recognized in my code I think they are trying to refer to some some instance of a class here by the word Profile but I am not sure what instance is that.

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

Security :: Save Custom Property Into Member Using Profile?

Jan 14, 2011

I have been struggling to save custom property data into member using createuserwizard. I add some extra fields into createuserwizard using wizardsteps and What I would like to accomplish is to save extra data of that fields and see that data on admin backend of member section of umbraco cms.

What I have done so far in brief:

Created a user control using asp.net createuserwizard and save it to umbraco.

I also added a macro into usercontrol which pulls its data from dropdown list multiple render control data type which has some prevalues.

After selecting values and creating user, none of the selected values of dropdown list multiple render control data type are selected on admin backend but address are successfully saved.

Code behind file:Roles.AddUserToRole(UserName.Text, "BasicUsers");var profile = System.Web.Profile.ProfileBase.Create(UserName.Text);profile["sector"] = Sector.SelectedItem.Value;profile["address"] = Address.Text;profile.Save();

That relevant code snippet above works well like profile["address"] = Address.Text; but I am unable to save with other renders controls as Dropdown list multiple.

View 4 Replies

Security :: Configuration Error From Custom Profile Provider

Jun 3, 2010

I'm still trying to learn how all of this works, and I apologize if this is a simple fix, but I'm getting frustrated and I could use some help.

I found an XML profile provider that I'm trying to use, and when I set it up, it works fine on my local machine. However when I upload it to the server, I get an error and I don't really know what it means:

Server Error in '/' Application.

Configuration Error
Description:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: CustomProviders.XmlProfileProvider..ctor()

Source Error:

[Code]....

Source File: E:kundenhomepages28d241331304web.config Line:
38

The full profile section from the web.config file is:

<profile enabled="true" defaultProvider="XmlProfileProvider">
<providers>
<clear/>
<add applicationName="FamilySite" name="XmlProfileProvider" type="CustomProviders.XmlProfileProvider"/>
</providers>
<properties>
<add name="FirstName" />
<add name="LastName" />
<add name="HomeTown" />
<add name="ShowEmail" type="System.Boolean"/>
</properties>
</profile>

View 2 Replies

Security :: A Custom Profile Provider And Data Disappears?

Aug 6, 2010

The week of torture and confusion at a higher level.I added a custom profile provider.

<profile defaultProvider="MySqlProfileProvider">
<providers>
<remove name="AspNetSqlProfileProvider"/>[code]...

I had to add the <remove name="MySqlProfileProvider"/>as it error with "the entry MySqlProfileProvider has already been made."The problem now is that it will only hold the data the first time I log in and create the account. Everything run find until you close the browser and try to log in the next time. Then the pages that use the profile properties tells me that there is no profile data for the same fields like there name for this user.It was there the first time and save it but the 2nd login it gone. Seems to me that the remove actually removes the data even when you save itI got it to work on the local server by setting MySqlProfileProvider up in using IIS managment tools. My local now rund fine. However my service provider will not make the manual entry for me.

View 14 Replies

Security :: Extend Default Profile Fields Into Second Custom Table

Apr 23, 2010

I am trying to use a second (custom) table to extend my users profile info. This table is in the same database as the 'aspnet_Users' table but has a different name. I create a FK relationship between the 'aspnet_Users' table and my custom table. Here is my web.config code:

<profile defaultProvider="AspNetSqlMembershipProvider">
<providers>
<clear />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="ConString_SQLConnectionString"
applicationName="/" />
<add name="MyCustomProfile"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="ConString_SQLConnectionString"
applicationName="/"
table="MyProfileTable_Employees" />
</providers>
<properties>
<group name ="MyProfileInfo">
<add name="FirstName" type="string" defaultValue="[null]" customProviderData="FirstName;nvarchar" provider="MyCustomProfile" />
<add name="LastName" type="string" defaultValue="[null]" customProviderData="LastName;nvarchar" provider="MyCustomProfile" />
<add name="EmployeeNumber" type="int" defaultValue="[null]" customProviderData="EmployeeNumber;int" provider="MyCustomProfile" />
</group>
</properties>
</profile>

I have the table "MyProfileTable_Employees" poplulated with data the 'userid' matches to the aspnet_Users table. In my web application (vb), when I type in Profile.MyProfileInfo, there are no custom fields. Actually, when I type profile., there are no profile related entries. What am I missing here? Am I miss-interpting what a custom profile provider is?

View 2 Replies

Security :: Reading Custom Profile Fields From DropDownLists Failing?

May 8, 2010

So I'm using the CreateUserWizard tool, which is working great, and have added a few custom fields to the user's Profile, which is also working great... with one exception. The fields that I'm capturing from TextBoxes are being saved to the database perfectly. But those I'm trying to capture from DropDownLists aren't being saved. No error is taking place, either in my code or at runtime, but no data is being written to the table from these particular fields.

I thought I knew how to capture data from a DropDownList in ASP.NET (I'm a newbie, but not ridiculously so), but I've tried a bunch of stuff here and nothing seems to be working. I'm posting an abbreviated version of my CreateUserWizard1_CreatedUser function below, with comments...

protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
//Get the profile of the user by finding the profile by name
TextBox oUserName = (TextBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("UserName");

[Code]....

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

MVC :: Using Profile Properties With MVC Visual Basic?

Jun 1, 2010

I have set up the Profile correctly in the web.config file, however I can not use them in the Home Controller.ie: I have a property called FirstName I can not fetch that property and or set a value to it.I added System.Web.

View 7 Replies

Configuration :: Get Profile Properties In A Class

Jul 7, 2010

I've added sone profile properties.

[Code]....

I get a error that raid does not exist. I've tried both ways t and

[Code]....

View 5 Replies

Security :: Displaying A Custom Message For Disabled Accounts Upon Sigin - Login Control?

Jan 9, 2011

I am using the SQLMembershipProvider for authenicating users for my web site. I would like to change the default message that is displayed when a user signs in but who's account is disabled. By default, it shows:

Your account has not yet been approved. You cannot login until an administrator has approved your account.

Is there a property for the Login control that allows me to change this message programmatically.

View 2 Replies

Web Forms :: Aspnetdb_log.ldf Is Not Created When Using Profile Properties?

Jan 29, 2010

{System.Data.SqlClient.SqlException: Cannot open user default database. Login failed. Login failed for user 'MyMachineASPNET'. File activation failure. The physical file name "MyApplicationPathApp_Dataaspnetdb_log.ldf" may be incorrect.

Using Profile propertiseAs aspnetdb.mdf and aspnetdb_log.ldf are supposed to get created automatically, but only aspnetdb.mdf is getting created log file is not created when i run application and get above error.

View 1 Replies

ADO.NET :: Programmatically Change Membership Profile Properties?

Mar 23, 2011

I am working in a Silverlight 4 + RIA Services application. On the server side I am using Entity Framework and SQL Server. The user authentication is performed in the application using the default ASP.NET Membership Provider.

I am also using some profile properties to store some user preferences. Unfortunately I came across a situation where I have to change one of this properties in all users.

Altought I am using EF to manage data persistence, the ASP Membership provider tables are not in my entities diagram, since everything I must do regarding membership is performed using the objects available on the provider.

So I was thinking to use this objects to change the user prefrences, but my question is about what happens if something fails? Is there any transaction object I could use on the Membership objects to perform an atomic operation?

I know EF supports transactions, but in this case I would have to add the asp.net membership tables to my diagram.. only for that operation.

View 6 Replies

Web Forms :: Profile Properties Safe To Keep User Information?

Mar 19, 2010

I want to use Profile Properties to keep some user information and move them between pages. I'm wondering if those profile properties are keeping data session based or when I assigned them is it same for all sessions/ Is this a safe method to use them:

<anonymousIdentification enabled="true"/>
<profile enabled="true">
<properties>
<add name="userid" defaultValue="" />
<add name="password" defaultValue="" />
<add name="username" defaultValue="" />
</properties>
</profile>

View 1 Replies

State Management :: Profile Object / Properties Not Accessible In Code Behind

Oct 29, 2010

i have defined profile properties in my web config file but unable to access them in code behind. even profile object is not available. i have to writer fully qualified name like System.Web.Profile. below is my web config

<profile>

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

Custom Server Controls :: Custom Control And Properties Window?

Jun 1, 2010

I have made a composite control that has 1 Label Control ,1 TextBox ,1 button and 1 Panel Control. Below is my code:

namespace ServerControl1
{

[
AspNetHostingPermission(SecurityAction.Demand,[code]....

The above code compiles without any error. Also I can drag and drop this control from the Toolbox of my Project on my web form. However I am unable the change the value of my fromLabel control.It allows me to change the value in the properties window.But when I run the form it always shows me its default value which is "From". I want it to be flexible so that any one can change the value in the properties window.

View 3 Replies

Custom Server Controls :: Why Custom Gridview Control Not Render HTML Properties Under Properly In Visual Studio 2005

Mar 5, 2010

Why custom Gridview control not render html properlies under <Columns> properly in Visual Studio 2005?

For example:

[code]....

View 1 Replies

Displaying Navigation Properties On A GridView Using EntityDataSource?

Apr 4, 2011

I have an EntityDataSource I've mapped to the entity Resident which includes two navigation properties (Building1, Room1). I've set my GridView to use this EntityDataSource and set the EntityDataSource Include property to Building1, Room1 so it includes these navigation properties and have added these columns to the GridView. When I run the application instead of displaying the associated navigation property it shows this: webHousingAdmin.BuildingHow can I get it to display the actual value? Code looks like this for GridView:

<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lbl1" runat="server" Text='<%# Bind("Building1") %>' />
</ItemTemplate>
</asp:TemplateField>

I've gotten it to display the actual value by using the following code:

<asp:TemplateField HeaderText="Building">
<ItemTemplate>
<asp:Label ID="lblBuilding" Text='<%# Bind("Building1.building_name") %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>

But is there a simpler way to do this? This only displays the text, doesn't let me edit it...if I can do it as a boundfield that would be ideal.

View 1 Replies

Forms Data Controls :: Displaying All Users In A Grid Along With Profile And Membership Info?

Mar 24, 2010

I am developing a website in asp.net that user asp.net membership, users and profile tables.I am trying to display all the users that are registered in a grid along with their first name, last name, email and other profile information . unfortunately all this information is scattered in various tables in the database ( aspnet_users, profiles, membershipsetc)... Can you please tell me how to configfure the datasource & columns of my datagrid (control) to achieve what I am trying to do .. ?????

View 3 Replies







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