I need to get a member username to prefill a hidden field. I'm using a custom membership provider, so the {member.email} etc doesn't work. Can I use @User.Identity.Name for instance, I have that working fine in an html form, but I'd rather use Contour. Any ideas/ examples?
User is logged in, but I have a custom membership provider, in a seperate database. Members are working fine, i.e they appear in the members section and the normal .net membership works. I think {member.email} only works with the umbraco database?
Contour membership
I need to get a member username to prefill a hidden field. I'm using a custom membership provider, so the {member.email} etc doesn't work. Can I use @User.Identity.Name for instance, I have that working fine in an html form, but I'd rather use Contour. Any ideas/ examples?
You should be able to get the logged in member using {member.loginname} or {member.email}. Is the user logged ?
User is logged in, but I have a custom membership provider, in a seperate database. Members are working fine, i.e they appear in the members section and the normal .net membership works. I think {member.email} only works with the umbraco database?
Ok, I figured it out. I'm using a session value and [%sessionvalue]
is working on a reply...