MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

How to decode userId from user activation link  (Mono Support )

Viewed 20644 time(s), 5 post(s) 7/12/2012 1:40:18 PMby developer
developer

developer

7/12/2012 1:40:18 PM
Hello,

I need to develop my own AccountActivation.aspx. Therefore I need to decode userId from activation link to proper ASP.NET UserId. How can I do this?

Activation link: http://www.xyz.com/Membership/AccountActivation.aspx?userId=FOZ7ctyomU6mgKCMAQFfww

Thanks for reply.
This content has not been rated yet. 
165 Reputation 19 Total posts
mzilic

mzilic

7/12/2012 1:55:28 PM
Hello,

To decode the userId URL parameter you can use the following:
Guid decodedUserId = MonoSoftware.MonoX.UrlParams.UserId.Value.Guid;

Regards
This content has not been rated yet. 
2218 Reputation 300 Total posts
developer

developer

7/12/2012 2:21:35 PM
Great, it works... Thank you very much for fast reply.

And one small question - this static variables MonoSoftware.MonoX.UrlParams.UserId has always actual parameter value set by background process?
This content has not been rated yet. 
165 Reputation 19 Total posts
geobirbilis

geobirbilis

7/25/2012 5:57:50 PM
btw, it would be nice if the discussion page title was showing the title of the thread instead of just "Mono Support - Discussion Forums". Now when you drag-drop the URL to store it as a file, you get the same filename
This content has not been rated yet. 
155 Reputation 23 Total posts
khorvat

khorvat

7/27/2012 10:23:36 AM
Hi,

this is added and it will be included in the next release.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts