473,770 Members | 4,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query personalization data in Asp.net 2.0

I am using the personalization feature in asp.net 2.0

I am storing the phone number for each user.

When a certain user enters his phone number I would like to check if another
user already store this phone number.

Is it possible to query personalization data so I will be able to retrieve
the phone number of each user?

Thanks

Ra***@hotmail.c om
Apr 28 '06 #1
1 1660
You're using the Profile feature, not the Personalization feature (Personalizatio n
is for WebParts).

Anyway, your problem is that the storage of the profile data is provider
dependant, meaning it's up to the provider to decide how to store that data.
The SqlProfileProvi der (the default) jams all the data into one of two columns,
making direct reporting and SQL queries difficult. You need to either 1)
figure out a way to query the provider to crack apart its encoding of the
data to satisify your query or 2) use a different provider that will store
the data in a way your prefer (for easier querying).

For #1 its not easy since the encoding of the values... this would mean every
row would have to get loaded and decoded. So you don't have the benefit of
the column being indexed, or anything like that. So this is probabaly not
the best option.

For #2 there's a different provider called the "Table and Stored Proc Profile
Provider" which maps the profile property values to either distinct columns
in a table or distinct parameters to a stored proc. I'd suggest loking into
this. Google for it -- it's on MSDN or www.asp.net somewhere...

-Brock
http://staff.develop.com/ballen

I am using the personalization feature in asp.net 2.0

I am storing the phone number for each user.

When a certain user enters his phone number I would like to check if
another user already store this phone number.

Is it possible to query personalization data so I will be able to
retrieve the phone number of each user?

Thanks

Ra***@hotmail.c om

May 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1417
by: RedHair | last post by:
How to use user profile within a web farm environment?
0
1171
by: Danny Tuppeny | last post by:
Hi all, I'm after some advice... I'm building a website which will have a login etc.. The Personalization in asp.net 2 stuff looks like it'll save me some time (login controls etc.), however, the rest of my site ties very intimately into my users. I have many tables (such as News, PhotoGallery, ForumPost) which have a UserID column. From a user, I want to be able to get at a List<News>, List<PhotoGallery> etc.
9
3417
by: SlimFlem | last post by:
Is this possible? My entire web site is being built dynamically using WebPart's and a lot of it will be anonymous. How do I load these parts dynamically using WebPartManager.AddWebPart() and not use Personalization. I think I am saying this correctly. When I disable Personalization in the WebPartManager tag and use AddWebPart(), I am told Personalization is not enabled.... There is also a defaut Authorization entry in IIS specifying...
0
1577
by: Anonieko | last post by:
Scenario: Web Parts features (like design mode) require the user to be authenticated and registered. But what if you don't want the users to go through registration but still enable personalization? Answers:
2
3158
by: bradgatewood | last post by:
I am in the process of developing a highly customizable application and I'm looking for a way to allow personalization by role. This is different than shared scope in the fact that I want to allow multiple clients to make modifications to properties, placement, controls on page, etc... and have all users see the customizations that apply to them. Customizations will take place at Client > Branch > Division levels. So when a user logs into...
0
1028
by: Kent Liu | last post by:
In the VB6, we could using SaveSetting/GetSetting to store the information and get them for personalization of windows applications. But all these need the programmer to write code to save & get & set the windows layout (such as the width/height of one control of form). Is there any application block support personalization for .net 1.1 ? I think the dynamic property could help but I found that not all properties are supported by vs.net...
0
1169
by: 68muscle | last post by:
I am working with the NET 2.0 portal framework. To use the portal framework requires that personalization be enabled. I followed the chapter on personalization in my Professional ASP.NET 2.0 book. I then created a WebPartManager. When I try to put the page in design mode (at request time), I get this error:
2
1797
by: Roger23 | last post by:
I have a requirement where I need to remove or disable the entire personalization feature of my web application. I am not allowed to have a SQL express on my web server and I am not allowed to have any SQL Express or any SQL server for that matter. how do i disable the entire personalization of my application. i tried: <webParts > <personalization defaultProvider=""> <providers> <clear/>
0
1064
by: Bei | last post by:
Now I'm facing a requirement that every users can personalize their own web parts, and there is a administrator who has rights 1, to publish a 'personalization' of a single web part to all users in his group. 2, to a 'personalization' of a whole page. my solution to the first problem is: Add a new class inherits the webpart class and implements the IPersonalizable Interface and write code below to personlize: void...
0
9602
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9439
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.