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

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -