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
Post a Comment