CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: Date Entered: 11/7/2006 4:07:50 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 38 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"Dan___" <>
NewsGroup User
WAP and ASPWebProfileGenerator11/7/2006 4:07:50 PM

0

I have an exception when I use this code

private WebProfile Profile

{

get { return new WebProfile(Context.Profile); }

}

protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)

{

Profile.Entreprise = ((TextBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("tbx_Entreprise")).Text;

}

The Context.Profile.IsAnonymous property is true and I have an System.Configuration.Provider.ProviderException

 

public virtual void SetPropertyValue(string propertyName, object propertyValue) {
this._profileBase.SetPropertyValue(propertyName, propertyValue);

How to create an empty profile for tne newly created user?

Thanks

 

 

 

 

 

 

 

"timmcb" <>
NewsGroup User
Re: WAP and ASPWebProfileGenerator11/14/2006 12:03:51 AM

0

Does the following work?

WebProfile p = new WebProfile(WebProfile.Create(userName, true));
p.SomeProperty = someValue;


Tim McBride

This posting is provided "AS IS" with no warranties, and confers no rights.
"warking" <>
NewsGroup User
Re: WAP and ASPWebProfileGenerator10/10/2009 10:21:48 AM

0

I just have faced the same problem and use your code

WebProfile p = new WebProfile(WebProfile.Create(userName, true));
p.SomeProperty = someValue;

it just works fine.

thanks a lot.


Thanks
Alfes
http://alfesullah.blogspot.com/

Please click "Mark as Answer" on the post(s) if it helped you
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













how i can close a window when the upload is completed?

validate single field on lostfocus any example?

dynamic tablecell/linkbutton question

load user control dynamically and subscribe to event

is it possible protect source codes for the web application developed with visualwebdeveloper2005/2008?

asp:textbox width varies in cross platform

validationsummary - how to not display it in the table?

can a program log the ip address of someone who clicks a link to download it?

pressing enter form submit and button event fire

upload file to access database

webform2.aspx wants to access webform1.aspx's functions

how to modify the header mail to not consider the email as junk?

5 seconds timer

copy values from div tag to textbox

htmldecode wont work

list item error

requiredfieldvalidator not run in firefox

sample survey code

plz solve this asap

form variables as an array

how to dynamically scroll a dropdownlist control?

difference between xhtml doc type and html doc type?

simple array string problem

how we can use buffering for a page

need to retrieve all .aspx filenames in asp.net application

multiple forms on a page.

calendar control: cell autosizing questions

asynchronous process request timeout

validate only on button_click_event

export data to pdf

error messagebox

changing html content of aspx page before rendering.

image in a compositecontrol at design time [getwebresourceurl]

page <document> atributes

required and regularexpression validator working together?

programmatically change values of a calendar control using dropdown list

write stream from internet into a file.

redirect error

html tag causing aspnet_wp process problem

how to disable the outer box that appear on control buttons and links on click

message box before redirecting?

cannot load type projectname.classname i am screaming with frustration :o(

email : embed image

events in webforms

how much resources/memory is my cache taking?

mailto functionality on a button server control

problem sending email (ends up in smtp queue)

how to maintain current user login while change other user's password?

applying styles to web controls programmatically

condional confirm on button

   
  Privacy | Contact Us
All Times Are GMT