asp.net - Executing C# code from front end -


i have this

<script language="c#" runat="server">  private string getuserimage(string userid) {     membershipuser user = membership.getuser();     profilebase profile = profilebase.create(user.username);     return profile.getpropertyvalue("photo").tostring();     } </script > 

it works fine, need create user object passing guid this

membershipuser user = membership.getuser(new guid(userid)); 

what may cause. woks fine c# code behind.

regards, tvr

to call method page should public or protected. not private.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -