Executing C# code from front end
<p>I have something like this</p>

<p></p>

<p>private string GetUserImage(string userId)
{
    MembershipUser user = Membership.GetUser();
    ProfileBase profile = ProfileBase.Create(user.UserName);
    return profile.GetPropertyValue("Photo").ToString();<br>
}
</p>

<p>it works fine, but I need to create a user object by passing Guid like this
MembershipUser user = Membership.GetUser(new Guid(userId));</p>

<p>what may be the cause. it woks fine from C# code behind.</p>

<p>Regards,
tvr</p>
