|
Home > Archive > Commerce Server General > September 2004 > How can i obtain client personal profiles when i only have user ID??
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How can i obtain client personal profiles when i only have user ID??
|
|
|
| Hello
i would like how obtain customer profile when i have only userID, thanks for
all
| |
| Andre Podnozov [MSFT] 2004-08-27, 6:07 pm |
| You can do this:
ProfileContext profileContext = CommerceProfileModule.ProfileContext;
Profile profileObject = profileContext.GetProfile("GeneralInfo.user_id",
yourUserId, "UserObject");
Thanks
Andre
This posting is provided "AS IS" with no warranties, and confers no rights.
EBusiness Server Team
--------------------
Reply-To: "jorge" <jorge@visualpr.net>
From: "jorge" <jorge@visualpr.net>
Subject: How can i obtain client personal profiles when i only have user
ID??
Date: Wed, 25 Aug 2004 09:40:53 +0200
Lines: 5
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Message-ID: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14622
X-Tomcat-NG: microsoft.public.commerceserver.general
Hello
i would like how obtain customer profile when i have only userID, thanks for
all
| |
|
| Thanks but i wrote this code and no work, can you eplain me this with more
details??
"Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
news:HOZweoviEHA.1088@cpmsftngxa10.phx.gbl...
> You can do this:
> ProfileContext profileContext = CommerceProfileModule.ProfileContext;
> Profile profileObject = profileContext.GetProfile("GeneralInfo.user_id",
> yourUserId, "UserObject");
>
> Thanks
> Andre
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> EBusiness Server Team
> --------------------
> Reply-To: "jorge" <jorge@visualpr.net>
> From: "jorge" <jorge@visualpr.net>
> Subject: How can i obtain client personal profiles when i only have user
> ID??
> Date: Wed, 25 Aug 2004 09:40:53 +0200
> Lines: 5
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.3790.181
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
> Message-ID: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
> Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14622
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Hello
> i would like how obtain customer profile when i have only userID, thanks
for
> all
>
>
>
>
| |
|
| can you put an example to me,
i want put in textbox user name, in other user e-mail, how will be it??
"Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
news:HOZweoviEHA.1088@cpmsftngxa10.phx.gbl...
> You can do this:
> ProfileContext profileContext = CommerceProfileModule.ProfileContext;
> Profile profileObject = profileContext.GetProfile("GeneralInfo.user_id",
> yourUserId, "UserObject");
>
> Thanks
> Andre
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> EBusiness Server Team
> --------------------
> Reply-To: "jorge" <jorge@visualpr.net>
> From: "jorge" <jorge@visualpr.net>
> Subject: How can i obtain client personal profiles when i only have user
> ID??
> Date: Wed, 25 Aug 2004 09:40:53 +0200
> Lines: 5
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.3790.181
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
> Message-ID: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
> Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14622
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Hello
> i would like how obtain customer profile when i have only userID, thanks
for
> all
>
>
>
>
| |
| Andre Podnozov [MSFT] 2004-09-02, 6:21 pm |
| Please describe how exactly it doesnt work. Are you getting an error or
exception?
Thanks
Andre
This posting is provided "AS IS" with no warranties, and confers no rights.
EBusiness Server Team
--------------------
From: "Jorge" <jorge@visualpr.net>
Subject: Re: How can i obtain client personal profiles when i only have
user ID??
Date: Thu, 26 Aug 2004 14:31:46 +0200
Thanks but i wrote this code and no work, can you eplain me this with more
details??
"Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
news:HOZweoviEHA.1088@cpmsftngxa10.phx.gbl...
> You can do this:
> ProfileContext profileContext = CommerceProfileModule.ProfileContext;
> Profile profileObject = profileContext.GetProfile("GeneralInfo.user_id",
> yourUserId, "UserObject");
>
> Thanks
> Andre
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> EBusiness Server Team
> --------------------
> Reply-To: "jorge" <jorge@visualpr.net>
> From: "jorge" <jorge@visualpr.net>
> Subject: How can i obtain client personal profiles when i only have user
> ID??
> Date: Wed, 25 Aug 2004 09:40:53 +0200
> Lines: 5
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.3790.181
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
> Message-ID: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
> Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14622
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Hello
> i would like how obtain customer profile when i have only userID, thanks
for
> all
>
| |
|
| my problem is i donīt know how do it
"Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
news:6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl...
> Please describe how exactly it doesnt work. Are you getting an error or
> exception?
>
> Thanks
> Andre
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> EBusiness Server Team
>
> --------------------
> From: "Jorge" <jorge@visualpr.net>
> Subject: Re: How can i obtain client personal profiles when i only have
> user ID??
> Date: Thu, 26 Aug 2004 14:31:46 +0200
>
> Thanks but i wrote this code and no work, can you eplain me this with more
> details??
> "Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
> news:HOZweoviEHA.1088@cpmsftngxa10.phx.gbl...
> rights.
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09[vbcol=seagreen]
> for
| |
| Andre Podnozov [MSFT] 2004-09-02, 6:21 pm |
| Can you post the code of your function in which you included this sample?
This posting is provided "AS IS" with no warranties, and confers no rights.
EBusiness Server Team
--------------------
Reply-To: "jorge" <jorge@visualpr.net>
From: "jorge" <jorge@visualpr.net>
References: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
<HOZweoviEHA.1088@cpmsftngxa10.phx.gbl>
<uhaipi2iEHA.3876@TK2MSFTNGP15.phx.gbl>
<6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl>
Subject: Re: How can i obtain client personal profiles when i only have
user ID??
Date: Tue, 31 Aug 2004 17:58:41 +0200
Lines: 64
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Message-ID: <eOzrpN3jEHA.1356@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14683
X-Tomcat-NG: microsoft.public.commerceserver.general
my problem is i donīt know how do it
"Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
news:6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl...
> Please describe how exactly it doesnt work. Are you getting an error or
> exception?
>
> Thanks
> Andre
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> EBusiness Server Team
>
> --------------------
> From: "Jorge" <jorge@visualpr.net>
> Subject: Re: How can i obtain client personal profiles when i only have
> user ID??
> Date: Thu, 26 Aug 2004 14:31:46 +0200
>
> Thanks but i wrote this code and no work, can you eplain me this with more
> details??
> "Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
> news:HOZweoviEHA.1088@cpmsftngxa10.phx.gbl...
> rights.
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09[vbcol=seagreen]
> for
| |
|
| is a login page and when pass and nick are correct i want know her name,
last name and email this is the code to login button
private void loginBtn_Click(object sender, System.EventArgs e)
{
AuthenticationInfo authInfo = CommerceContext.Current.AuthenticationInfo;
Profile prof;
ProfileContext profContext = CommerceContext.Current.ProfileSystem;
string pwd;
try
{
prof = profContext.GetProfile(userName.Text, "UserObject");
pwd = (string)prof.Properties["GeneralInfo.user_security_password"].Value;
if(string.Compare(pwd, password.Text)==0)
{
//Extract the user's ID
string userID = (string)prof.Properties["GeneralInfo.user_id"].Value;
//Set the authorization ticket.
authInfo.SetAuthTicket(userID, true, 200);
//Create the profile ticket.
authInfo.SetProfileTicket(userID, true);
Response.Redirect("default.aspx");
}
else
messageLabel.Text = "Login failed!";
}
catch(Exception)
{
messageLabel.Text = "Login failed!";
}
}
"Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
news:Okjz#V3jEHA.2020@cpmsftngxa10.phx.gbl...
> Can you post the code of your function in which you included this sample?
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> EBusiness Server Team
> --------------------
> Reply-To: "jorge" <jorge@visualpr.net>
> From: "jorge" <jorge@visualpr.net>
> References: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
> <HOZweoviEHA.1088@cpmsftngxa10.phx.gbl>
> <uhaipi2iEHA.3876@TK2MSFTNGP15.phx.gbl>
> <6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl>
> Subject: Re: How can i obtain client personal profiles when i only have
> user ID??
> Date: Tue, 31 Aug 2004 17:58:41 +0200
> Lines: 64
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.3790.181
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
> Message-ID: <eOzrpN3jEHA.1356@TK2MSFTNGP09.phx.gbl>
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
> Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14683
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> my problem is i donīt know how do it
> "Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
> news:6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl...
> rights.
more[vbcol=seagreen]
profileContext.GetProfile("GeneralInfo.user_id",[vbcol=seagreen]
user[vbcol=seagreen]
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
microsoft.public.commerceserver.general:14622[vbcol=seagreen]
thanks[vbcol=seagreen]
>
>
>
| |
| Andre Podnozov [MSFT] 2004-09-02, 6:21 pm |
| So at which point does this code fail?
This posting is provided "AS IS" with no warranties, and confers no rights.
EBusiness Server Team
--------------------
Reply-To: "jorge" <jorge@visualpr.net>
From: "jorge" <jorge@visualpr.net>
References: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
<HOZweoviEHA.1088@cpmsftngxa10.phx.gbl>
<uhaipi2iEHA.3876@TK2MSFTNGP15.phx.gbl>
<6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl>
<eOzrpN3jEHA.1356@TK2MSFTNGP09.phx.gbl>
<Okjz#V3jEHA.2020@cpmsftngxa10.phx.gbl>
Subject: Re: How can i obtain client personal profiles when i only have
user ID??
Date: Tue, 31 Aug 2004 18:53:36 +0200
Lines: 167
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Message-ID: <umloVs3jEHA.536@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14689
X-Tomcat-NG: microsoft.public.commerceserver.general
is a login page and when pass and nick are correct i want know her name,
last name and email this is the code to login button
private void loginBtn_Click(object sender, System.EventArgs e)
{
AuthenticationInfo authInfo = CommerceContext.Current.AuthenticationInfo;
Profile prof;
ProfileContext profContext = CommerceContext.Current.ProfileSystem;
string pwd;
try
{
prof = profContext.GetProfile(userName.Text, "UserObject");
pwd = (string)prof.Properties["GeneralInfo.user_security_password"].Value;
if(string.Compare(pwd, password.Text)==0)
{
//Extract the user's ID
string userID = (string)prof.Properties["GeneralInfo.user_id"].Value;
//Set the authorization ticket.
authInfo.SetAuthTicket(userID, true, 200);
//Create the profile ticket.
authInfo.SetProfileTicket(userID, true);
Response.Redirect("default.aspx");
}
else
messageLabel.Text = "Login failed!";
}
catch(Exception)
{
messageLabel.Text = "Login failed!";
}
}
"Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
news:Okjz#V3jEHA.2020@cpmsftngxa10.phx.gbl...
> Can you post the code of your function in which you included this sample?
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> EBusiness Server Team
> --------------------
> Reply-To: "jorge" <jorge@visualpr.net>
> From: "jorge" <jorge@visualpr.net>
> References: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
> <HOZweoviEHA.1088@cpmsftngxa10.phx.gbl>
> <uhaipi2iEHA.3876@TK2MSFTNGP15.phx.gbl>
> <6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl>
> Subject: Re: How can i obtain client personal profiles when i only have
> user ID??
> Date: Tue, 31 Aug 2004 17:58:41 +0200
> Lines: 64
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.3790.181
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
> Message-ID: <eOzrpN3jEHA.1356@TK2MSFTNGP09.phx.gbl>
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
> Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14683
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> my problem is i donīt know how do it
> "Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
> news:6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl...
> rights.
more[vbcol=seagreen]
profileContext.GetProfile("GeneralInfo.user_id",[vbcol=seagreen]
user[vbcol=seagreen]
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
microsoft.public.commerceserver.general:14622[vbcol=seagreen]
thanks[vbcol=seagreen]
>
>
>
| |
|
| this code not fail, but is in this page where i need obtain userīs details,
if you can send me the code to do it
"Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
news:KJsZMIRkEHA.1088@cpmsftngxa10.phx.gbl...
> So at which point does this code fail?
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> EBusiness Server Team
> --------------------
> Reply-To: "jorge" <jorge@visualpr.net>
> From: "jorge" <jorge@visualpr.net>
> References: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
> <HOZweoviEHA.1088@cpmsftngxa10.phx.gbl>
> <uhaipi2iEHA.3876@TK2MSFTNGP15.phx.gbl>
> <6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl>
> <eOzrpN3jEHA.1356@TK2MSFTNGP09.phx.gbl>
> <Okjz#V3jEHA.2020@cpmsftngxa10.phx.gbl>
> Subject: Re: How can i obtain client personal profiles when i only have
> user ID??
> Date: Tue, 31 Aug 2004 18:53:36 +0200
> Lines: 167
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.3790.181
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
> Message-ID: <umloVs3jEHA.536@TK2MSFTNGP11.phx.gbl>
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
> Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
> phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14689
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> is a login page and when pass and nick are correct i want know her name,
> last name and email this is the code to login button
>
> private void loginBtn_Click(object sender, System.EventArgs e)
>
> {
>
> AuthenticationInfo authInfo = CommerceContext.Current.AuthenticationInfo;
>
> Profile prof;
>
> ProfileContext profContext = CommerceContext.Current.ProfileSystem;
>
> string pwd;
>
> try
>
> {
>
> prof = profContext.GetProfile(userName.Text, "UserObject");
>
> pwd = (string)prof.Properties["GeneralInfo.user_security_password"].Value;
>
>
>
> if(string.Compare(pwd, password.Text)==0)
>
> {
>
> //Extract the user's ID
>
> string userID = (string)prof.Properties["GeneralInfo.user_id"].Value;
>
> //Set the authorization ticket.
>
> authInfo.SetAuthTicket(userID, true, 200);
>
> //Create the profile ticket.
>
> authInfo.SetProfileTicket(userID, true);
>
> Response.Redirect("default.aspx");
>
> }
>
> else
>
> messageLabel.Text = "Login failed!";
>
>
> }
>
> catch(Exception)
>
> {
>
> messageLabel.Text = "Login failed!";
>
> }
>
> }
>
> "Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
> news:Okjz#V3jEHA.2020@cpmsftngxa10.phx.gbl...
sample?[vbcol=seagreen]
> rights.
>
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
or[vbcol=seagreen]
have[vbcol=seagreen]
> more
message[vbcol=seagreen]
CommerceProfileModule.ProfileContext;[vbcol=seagreen]
> profileContext.GetProfile("GeneralInfo.user_id",
> user
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> microsoft.public.commerceserver.general:14622
> thanks
>
>
>
| |
| Andre Podnozov [MSFT] 2004-09-06, 5:48 pm |
| If i understand your question correctly, you need to get First and Last
name from a profile object. it would be similar to how you get user_id
property after the "Extract the user's ID" comment. So for Last name you
would have:
string userID = (string)prof.Properties["GeneralInfo.last_name"].Value;
And for First name, the property is "GeneralInfo.first_name". There are
many more properties on user profile object, you can look it up in the docs.
Thanks
Andre
This posting is provided "AS IS" with no warranties, and confers no rights.
EBusiness Server Team
--------------------
From: "Jorge" <jorge@visualpr.net>
References: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
<HOZweoviEHA.1088@cpmsftngxa10.phx.gbl>
<uhaipi2iEHA.3876@TK2MSFTNGP15.phx.gbl>
<6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl>
<eOzrpN3jEHA.1356@TK2MSFTNGP09.phx.gbl>
<Okjz#V3jEHA.2020@cpmsftngxa10.phx.gbl>
<umloVs3jEHA.536@TK2MSFTNGP11.phx.gbl>
<KJsZMIRkEHA.1088@cpmsftngxa10.phx.gbl>
Subject: Re: How can i obtain client personal profiles when i only have
user ID??
Date: Thu, 2 Sep 2004 20:50:00 +0200
Lines: 213
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Message-ID: <#bN0n2RkEHA.3944@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13
.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14699
X-Tomcat-NG: microsoft.public.commerceserver.general
this code not fail, but is in this page where i need obtain userīs details,
if you can send me the code to do it
"Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
news:KJsZMIRkEHA.1088@cpmsftngxa10.phx.gbl...
> So at which point does this code fail?
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> EBusiness Server Team
> --------------------
> Reply-To: "jorge" <jorge@visualpr.net>
> From: "jorge" <jorge@visualpr.net>
> References: <eGdkbbniEHA.3632@TK2MSFTNGP09.phx.gbl>
> <HOZweoviEHA.1088@cpmsftngxa10.phx.gbl>
> <uhaipi2iEHA.3876@TK2MSFTNGP15.phx.gbl>
> <6BQqJL3jEHA.3024@cpmsftngxa10.phx.gbl>
> <eOzrpN3jEHA.1356@TK2MSFTNGP09.phx.gbl>
> <Okjz#V3jEHA.2020@cpmsftngxa10.phx.gbl>
> Subject: Re: How can i obtain client personal profiles when i only have
> user ID??
> Date: Tue, 31 Aug 2004 18:53:36 +0200
> Lines: 167
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.3790.181
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
> Message-ID: <umloVs3jEHA.536@TK2MSFTNGP11.phx.gbl>
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: 202.red-80-38-81.pooles.rima-tde.net 80.38.81.202
> Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
> phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14689
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> is a login page and when pass and nick are correct i want know her name,
> last name and email this is the code to login button
>
> private void loginBtn_Click(object sender, System.EventArgs e)
>
> {
>
> AuthenticationInfo authInfo = CommerceContext.Current.AuthenticationInfo;
>
> Profile prof;
>
> ProfileContext profContext = CommerceContext.Current.ProfileSystem;
>
> string pwd;
>
> try
>
> {
>
> prof = profContext.GetProfile(userName.Text, "UserObject");
>
> pwd = (string)prof.Properties["GeneralInfo.user_security_password"].Value;
>
>
>
> if(string.Compare(pwd, password.Text)==0)
>
> {
>
> //Extract the user's ID
>
> string userID = (string)prof.Properties["GeneralInfo.user_id"].Value;
>
> //Set the authorization ticket.
>
> authInfo.SetAuthTicket(userID, true, 200);
>
> //Create the profile ticket.
>
> authInfo.SetProfileTicket(userID, true);
>
> Response.Redirect("default.aspx");
>
> }
>
> else
>
> messageLabel.Text = "Login failed!";
>
>
> }
>
> catch(Exception)
>
> {
>
> messageLabel.Text = "Login failed!";
>
> }
>
> }
>
> "Andre Podnozov [MSFT]" <andrepod@online.microsoft.com> wrote in message
> news:Okjz#V3jEHA.2020@cpmsftngxa10.phx.gbl...
sample?[vbcol=seagreen]
> rights.
>
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
or[vbcol=seagreen]
have[vbcol=seagreen]
> more
message[vbcol=seagreen]
CommerceProfileModule.ProfileContext;[vbcol=seagreen]
> profileContext.GetProfile("GeneralInfo.user_id",
> user
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> microsoft.public.commerceserver.general:14622
> thanks
>
>
>
|
|
|
|
|