How can i obtain client personal profiles when i only have user ID??
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > How can i obtain client personal profiles when i only have user ID??




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How can i obtain client personal profiles when i only have user ID??  
jorge


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 09:19 AM

Hello
i would like how obtain customer profile when i have only userID, thanks for
all







[ Post a follow-up to this message ]



    RE: How can i obtain client personal profiles when i only have user ID??  
Andre Podnozov [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11: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









[ Post a follow-up to this message ]



    Re: How can i obtain client personal profiles when i only have user ID??  
Jorge


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11:07 PM

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







[ Post a follow-up to this message ]



    Re: How can i obtain client personal profiles when i only have user ID??  
Jorge


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11:07 PM

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







[ Post a follow-up to this message ]



    Re: How can i obtain client personal profiles when i only have user ID??  
Andre Podnozov [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-04 11: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
>





[ Post a follow-up to this message ]



    Re: How can i obtain client personal profiles when i only have user ID??  
jorge


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-04 11:21 PM

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 messa
ge
> news:HOZweoviEHA.1088@cpmsftngxa10.phx.gbl... 
> rights. 
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09[vbcol=seagreen]
 
> for 







[ Post a follow-up to this message ]



    Re: How can i obtain client personal profiles when i only have user ID??  
Andre Podnozov [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-04 11: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 messa
ge
> news:HOZweoviEHA.1088@cpmsftngxa10.phx.gbl... 
> rights. 
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09[vbcol=seagreen]
 
> for 








[ Post a follow-up to this message ]



    Re: How can i obtain client personal profiles when i only have user ID??  
jorge


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-04 11:21 PM

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"].Valu
e;



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 messa
ge
> 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] 
>
>
>







[ Post a follow-up to this message ]



    Re: How can i obtain client personal profiles when i only have user ID??  
Andre Podnozov [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-04 11: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"].Valu
e;



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 messa
ge
> 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] 
>
>
>








[ Post a follow-up to this message ]



    Re: How can i obtain client personal profiles when i only have user ID??  
Jorge


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-02-04 11:21 PM

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"].Va
lue;
>
>
>
> 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 messa
ge
> 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 
>
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:41 AM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register