New release of ProfileView#
I've posted the source and binary for the latest release of my ProfileView ASP.NET server control. I was finally able to address the much requested fix to make the order of the properties displayed at runtime reflect the order they are declared in the web.config. Here are the release notes:
  • Properties now display in the order they are listed in web.config
  • Design-time view now uses same rendering method as runtime
  • Fixed design-time bug that caused it to fail when a profile property type was not specified
  • Design-time view now has a Smart Tag to allow you to preview an anonymous user's profile
Sunday, January 08, 2006 8:46:49 PM (Central Standard Time, UTC-06:00) #    Comments [7]  | 

 

Monday, January 09, 2006 4:15:32 AM (Central Standard Time, UTC-06:00)
Hi,

I tried to use your ProfileView webcontrol, but I don't know how (no tut, no sample...)
Here is what I did :

>%@ Register TagPrefix="FlimFlan" Namespace="FlimFlan.WebControls" Assembly="ProfileView" %<

>form id="profile01" runat="server"%lt;
>FlimFlan:ProfileView id="ProfileView01" runat="server" /%lt;
>/form%lt;


but it doesn't work... can you give some hint please.
Monday, January 09, 2006 9:02:29 PM (Central Standard Time, UTC-06:00)
Close. In your Register directive, you need to set the "Assembly" attribute to the name of the assembly (the DLL, without extension) - not the name of the control. You specify the name of the control when you actually place the control. Example:

[%@ Register Assembly="FlimFlan.WebControls" Namespace="FlimFlan.WebControls" TagPrefix="flim" %]

[flim:profileview id="ProfileView1" runat="server"/]

(using square brackets instead of angle brackets)
Monday, April 02, 2007 6:08:36 PM (Central Daylight Time, UTC-05:00)
Hi Joshua

I'm trying to use your control and have one question regarding it. I've three atrributes defined for my profile in the web.config, namely FirstName, LastName and PhoneNumber. The control is showing textboxes for First Name and Last Name, but nothing for Phone Number. Is there any way I can have it show additional controls for modifying additional profile information???

Regards
Nik
Monday, April 02, 2007 6:34:13 PM (Central Daylight Time, UTC-05:00)
Regarding my earlier question, I had phone number as type int in the web.config, as soon as I changed it to string, it appeared in the ProfileView control.

so my next question is how can I've a Validator validate one of the textboxes, if it's possible to do so. Also, I would like to format the styling of the ProfileView control. Can it be done??

Regards
nik

P.S - I just tried to peep inside ur source code. It's all VOODOO magic to me
Nikhil
Monday, April 02, 2007 7:59:09 PM (Central Daylight Time, UTC-05:00)
Try setting the type of phone-number to "Int32" or "System.Int32" instead of "int". The control does not recognize "int" as a valid type, since it is not defined by the .NET Framework (it is defined as an alias inside the C# compiler).
The styling options are not as good as I would like. The control should render IDs and CSS class names on each of the tags. You should be able to add styles to each control by referencing those names and IDs in a stylesheet.
Saturday, April 14, 2007 9:14:53 AM (Central Daylight Time, UTC-05:00)
Some issues here:

1. When UserName property is set it does not re-render the control to update the profile values of that user. In fact it gets confused and makes a mess of it.

2. How would it go about re-rendering the whole control when the profile properties of the user (not just the values but the profile set) differs from the previous one?

I placed it in a page where I first select the application which then loads the users which is then used to set the username on the ProfileView. It just does not work. You can set the Username property but that is about it.
Sunday, April 15, 2007 10:46:34 AM (Central Daylight Time, UTC-05:00)
The UserName property was added as an afterthought, and it is now obvious it was not implemented correctly. The code needs to be changed so that the controls are re-built in the PreRender event, so that the updated state of internal values are reflected. I have not had any time to dedicated to this fix. The source code is available, so you are welcome to make the change, and I will repost it and give you credit.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
Home page

Comment (HTML not allowed)  

Live Comment Preview
All content © 2008, Joshua Flanagan
About this site
Send mail to the author(s) Contact me
Feed your aggregator (RSS 2.0)
Joshua Flanagan
I have been developing software professionally for 10 years; focusing on .NET since its release. I use this site to interact with, and contribute to, the .NET software development community.
Microsoft Certified Application Developer

On this page
Archives
Rest of the world

Acknowledgements

Powered by: newtelligence dasBlog 2.1.8209.14743

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Site theme based on the essence design by Jelle Druyts