Can Let A User Fill In Profile Parts When Registering

Dec 7, 2010

I am trying to let a user fill in profile options when they are registering. I am using the providers that come with by default.

Example: User fills in this registration form:



Age <- This is what I have tried to add in.


Confirm Password

I got the age to show up by doing the following.

1) Adding the following code to Web.config

<add name="Word" type="String" />
<add name="Age" type="Int32" defaultValue="0" />

2) Adding the following code to my register.aspx view

<div class="editor-label">
<%: Html.LabelFor(m => Profile.Age) %>
<div class="editor-field">
<%: Html.TextBoxFor(m => Profile.Age)%>
<%: Html.ValidationMessageFor(m => Profile.Age)%>

I went to run it, I filled out the form and clicked register. I got this:

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. and Line 127: _provider.CreateUser(userName, password, email, null, null, true, null, out status);

View 1 Replies

Similar Messages:

Web Forms :: Lading Web Parts Dynamically And User Profile Change?

Sep 2, 2010

I am using web parts using c# 2.0 with Ajax 1.0.

I am dynamically creating and loading web parts in my code behind. Some of these web parts are pure html others are user controls. Its all working well but with one annoying issue.

When I add a new web part / remove one ( from my web part collection) this change is not reflected in the portal. Say when you add a new web part you would expect it to see in the catalog. But its not there. When I remove a web part from my collection it still appears in the portal.

However, If I delete the user's setting in the aspnet_PersonalizationPerUser table then the change is visible!

View 1 Replies

Web Forms :: Profile Service Error - Unable To Load User Profile In Iis?

Jan 3, 2011

I am using profile services to store some attributes of users registered in the website. Now I am making a display profile page for a user. The problem is that the profile loads easily when I am running the site from VS 2010, but it gives the following error when I run it from IIS7 on my local machine:

System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:



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


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


View 5 Replies

Web Forms :: Web Parts And Anonymous User And Authenticated User Is Displayed Differently?

Mar 21, 2011

the Web Part for anonymous user and authenticated user is displayed differently. I faced this problem twise. First time when used Silverlight control in the Web Part and second time when used devexpress control in the Web Part. In both cases problem was with displaying for anonymous user. Silverlight control didn't display. Devexpress control lost it's styles. Both controls had properties that pointed to files. Silverlight control property pointed to the XAP file, and Devexpress control property pointed to the CSS file. It seems to me, that for anonymous user the Web Part cannot find this path or doesn't allow to link to other files.

View 1 Replies

WebMatrix :: Encrypting Passwords When Registering A New User?

Mar 9, 2011

I seem to be having some difficulty working out how to encrypt the user's password at the time they register for an account. To ensure that I am storing the password securely, I would like to be able to encrypt the password before it is inserted into the database.

When the user logs in I can then encrypt their password at log in time and compare this to the encrypted password in the database, meaning that the password in the database never needs decrpyting.

View 2 Replies

VS 2010 Registering Custom / User Controls

Feb 23, 2012

I have a WebUserControl, let's call it "BaseControl.ascx" that acts as a base control for a custom control (a class that inherits BaseControl). Inside BaseControl I have a couple of regular controls (for example a DropDownList called 'dropdown'), which I try to populate in the inheriting control:

csharp Code:
namespace ProjectName.Controls{    public class SpecializedControl : BaseControl    {       
public void SetupList()        {            dropdown.DataSource = "ABCDEFG".ToCharArray();           
dropdown.DataBind();        }    }}

As far as I know, the only way to register a custom control (eg, not a .ascx control but a class inheriting a control) is to use this syntax on the page:

<%@ Register Assembly="ProjectName" Namespace="ProjectName.Controls" TagPrefix="custom" %>

This seems to work, I can place a SpecializedControl on the page with this:

<custom:SpecializedControl runat="server" ID="test" />

However, when I now call the 'SetupList' method on this control, from the Page_Load event, it seems that 'dropdown' (the DropDownList control in BaseControl.ascx) is null, it seems it is never instantiated.

To test what is happening I just created a simple TestControl.ascx (note: an ascx file again, so a WebUserControl and not a custom control), also with a dropdown and the same SetupList method.

When I register this control using the following syntax, everything works fine:

<%@ Register Src="~/Controls/TestControl.ascx" TagName="TestControl" TagPrefix="custom" %>

I can call SetupList and the list is populated just fine.

When I register the exact same control however with the other syntax, it does not work, and 'dropdown' is null:

<%@ Register Assembly="ProjectName" Namespace="ProjectName.Controls" TagPrefix="custom" %>

In this test case I can choose which syntax to use, but in my actual case I can't. The control I want to put on my page is not an ascx file, it's a class that inherits another control (a custom control), so as far as I know I am stuck with this second syntax. So, I cannot get this to work...

I also tried creating the control dynamically using LoadControl, but that gives the same problem.

Long story short: it seems like I have to use the first syntax to register a control (with a 'Src' tag pointing to the control ascx file), but I can't since there is no ascx file... How can I do this properly?

View 6 Replies

User Controls :: Display User Profile Image Of Logged In User?

May 7, 2015

I would like users to upload a profile picture when they register, and to then show that picture in a picture box control when they are logged in based  on that specific user.

View 1 Replies

Security :: Finding Tutorials For Registering And Sending An Activation Link To The User's Email Address

Feb 9, 2010

I program in vb

I was wondering if someone can direct me to a good quality tutorial on the process of registering and sending an activation link to the user's email address. I can't seem to find any useful tutorials online!

View 5 Replies

Web Forms :: Create A Profile In Which The User Can Create And Edit His Profile?

Jun 25, 2010

I got the followig task.Create a website (Profile.aspx) in which the User can create and edit his profile.Well, I know how to write in a database, but how do I get the UserName oder the UserID to make a PrimaryKey?If the user is logged in a session will be started. In this session is the UserName but I don't know how to read out the UserName with ASP.NET to make an PrimaryKey. If I would try to read out the UserName with C# I must save it in an variable and give it somehow to my form.

asp:sqldatasource id="SqlDataSource1" runat="server"
ConnectionStrings:MyConnectionString %>"[code]....

View 4 Replies

Hiding User Interface Parts In WSS 3.0 Webpart?

Feb 28, 2010

I have a webpart with control within.I would like to hide some parts of that control, some asp:net panels etc. regarding one of the TextBox's value. The issue is that I don't know to change the visibility of asp:panel wrapper without any postback, and how to refresh page to see the changes on the UI.I was trying to implement TextChanged event but it dosen't work.

View 2 Replies

Web Forms :: Web Parts / Want To Store User Setting In XML File ?

Oct 27, 2010

iam creating a customized dashboard using web parts and i am new in web parts..i wanna a way to store user setting in XML file .. how can i achieve that ?

View 4 Replies

Web Forms :: Using Web Parts For User Defined Questionnaire Generator?

Mar 27, 2010

need to let users to generate online questionnaires that could be answered by other users. I was wondering if this could be done using the WebParts.I have a custom application with already set up database. I do not use any form of Membership Provider (I have a custom made form of user authentication, I did not want to be bounded by the rigid frame of the ASP Membership). As far as I know Web Parts uses db (called SharePoint ?) to store the state etc. so this might be the first problem because I do not want to modify my DB just for the sake of WebParts (I assume it would require a whole lot of changes).So I was wondering if it would be possible to use Web Parts only as a form of "ASP code generator" e.g. I could create the questionnarie using WebParts and then export the result somehow (?) to print an ascx/aspx file or code.If this can not be done, can anybody tell me if there are any components that would be useful here? Some sort of toolkit where one could create asp code online? (with textboxes, checkboxes etc.).

View 2 Replies

Web Forms :: When New User Register / Get Pre-designed Page From Where User Can Update Profile?

Apr 20, 2010

I am working on Social Networking Website. My problem is that

when new user will register he/she will get Pre-designed Profile page from where user can update profile.

View 5 Replies

User Controls :: Upload Image And Display On User Profile Page?

Jan 8, 2014

I am making a Human resource Management system in which i have to make  employee profiles, there is a page in which i am entering employee name and uploading a rofile picture and i want the next page to show that image on a left corner of every employee...after clicking on the submit button of the previous page !

View 1 Replies

Data Controls :: User To User Profile View Showing Error

Apr 27, 2016

 When a user wants to view another user profile on user profile page this error will show up


Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:
Line 72: protected void OnDataBound(object sender, EventArgs e)
Line 73: {
Line 74: string userName = (FormView1follow.Row.Cells[0].FindControl("hfUserName") as HiddenField).Value;
Line 75: string friendsUserName = (FormView1follow.Row.Cells[0].FindControl("hfFriendsUserName") as HiddenField).Value;
Line 76: string followStatus = (FormView1follow.Row.Cells[0].FindControl("hfFollowStatus") as HiddenField).Value;


<div class="text-center">
<asp:FormView ID="FormView1follow" runat="server" OnDataBound="OnDataBound" Width="100%">
<asp:HiddenField ID="hfUserName" runat="server" Value='<%# Eval("UserName") %>' />
<asp:HiddenField ID="hfFriendsUserName" runat="server" Value='<%# Eval("FriendUserName") %>' />

[Code] .....

View 1 Replies

C# - How To Edit User's Profile Variable (from Web.config) While Specifying User

Sep 24, 2010

This is how I edit the profile variables for a currently logged in user:

Profile.variablename = "this";

How can I do the same thing, but specifying the username whose profile variable I want to change, as opposed to just the currently logged in user?

Something like Profile.variablename.("username", "this") is what I'm looking for.

I'm using C#

View 1 Replies

Web Forms :: How To Get User Profile Property Name For All User Programmatically

Aug 25, 2010

I have to find User Profile property name programatically, not for a particular user, I have to find all properties name for all users at a time(not to iterate one by one) to display in webparts as columns.

View 1 Replies

Web Forms :: Can Implement The Personalizable Attribute On A Text Box In A User Control Without Using Web Parts

Jan 26, 2010

I have a web user control that contains 2 text boxes. i would like to be able to have their values persisted using the personalizable attribute, but dont want to use my user control as a web part. Can i implement the personalizable attribute on a text box in a user control without using web parts?

View 3 Replies

C# - Sharepoint Connected Web Parts / User To Be Able To Enter A Value In The Textbox And Click A Button To Update?

Jun 8, 2010

I have one web part (the provider) which displays insurance claims in a gridview. When user clicks on one this value(case number) is passed via IWebPartField interface to another web part(consumer) which displays detailed info about the claim. So far so good. I can select different claims in the provider and the details show up in the consumer just fine. The moment I add a TextBox to the consumer, the consumer no longer recognizes the case number passed. I need the user to be able to enter a value in the textbox and click a button to update that claim info. I can debug and attach to process and it looks like it is getting the case in the callback function, etc, but when it is setting parameters for the stored proc in CreateChildControls, it is null. Comment out the TextBox and it works fine.

View 1 Replies

Web Forms :: Displaying User's Profile To Another User

Jan 26, 2011

I'm using .NET 3.5 and C#.

I am not using the .NET Profile Provider.

View 1 Replies

C# - How To Access User Control's Fields And Methods Without Registering The Control

Jul 21, 2010

I have a ASP.Net project that is setup in such a way that it can be dropped into any site and "just work." All the paths are relative to the current file, not relative to the "~". The paths are determined by ThePath = this.TemplateSourceDirectory;

This is working for everything expect registering a custom control that is created and added to one of the pages. I can add the control just fine with the Page.LoadControl but I cant cast it as the correct type to access anything.

How can I add a reference to the class from within the code itself?

View 2 Replies

Web Forms :: Crop And Split Image Into Parts And Then Save Parts Of Image In C#

Mar 22, 2013

How to Divide image in two parts like I have an image which width x Height = 16 x 32.

And I want to split image in two images 16x 16 and 16x 16.

How can i do it?

View 1 Replies

How To Get The User Profile From RPX

Apr 29, 2010

I am using RPX for authentication. Now I get the user profile with identifier. What to do next to set authentication cookie and other things? Also the logout feature. in 3.5 and C#.

View 2 Replies

VS 2005 Fill DropDownList With User IDs?

Jan 7, 2010

I need to fill a drop down list with user id's from active directory. IS there a way to do this or what approach should I take. I need this so administrator can select user id and bind it to an application as part of web access. This is internal application only in VB.

View 9 Replies

Copyrights 2005-15, All rights reserved