Mono Support How to decode userId from user activation link 

Viewed 23741 time(s), 5 post(s), 7/12/2012 1:40:18 PM - by developer
7/12/2012 1:40:18 PM
165 Reputation 19 Total posts

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.

1
7/12/2012 1:55:28 PM
2218 Reputation 300 Total posts

Hello,

To decode the userId URL parameter you can use the following:

Guid decodedUserId = MonoSoftware.MonoX.UrlParams.UserId.Value.Guid;

Regards

2
7/12/2012 2:21:35 PM
165 Reputation 19 Total posts

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?

3
7/25/2012 5:57:50 PM
155 Reputation 23 Total posts

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

4
7/27/2012 10:23:36 AM
15993 Reputation 2214 Total posts

Hi,

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

Regards

5
This is a demo site for MonoX. Please visit Mono Software for more info.