本文整理汇总了C#中MvcContext.PostHtmlAll方法的典型用法代码示例。如果您正苦于以下问题:C# MvcContext.PostHtmlAll方法的具体用法?C# MvcContext.PostHtmlAll怎么用?C# MvcContext.PostHtmlAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MvcContext
的用法示例。
在下文中一共展示了MvcContext.PostHtmlAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SaveProfile
internal static void SaveProfile( User m, MvcContext ctx )
{
m.RealName = ctx.Post( "Name" );
m.Title = strUtil.SubString( ctx.Post( "Title" ), 20 );
m.Gender = ctx.PostInt( "Gender" );
m.Blood = ctx.PostInt( "Blood" );
m.Degree = ctx.PostInt( "Degree" );
m.Relationship = ctx.PostInt( "Relationship" );
m.Zodiac = ctx.PostInt( "Zodiac" );
m.BirthYear = ctx.PostInt( "Year" );
m.BirthMonth = ctx.PostInt( "Month" );
m.BirthDay = ctx.PostInt( "Day" );
m.ProvinceId1 = ctx.PostInt( "ProvinceId1" );
m.ProvinceId2 = ctx.PostInt( "ProvinceId2" );
m.City1 = ctx.Post( "City1" );
m.City2 = ctx.Post( "City2" );
m.Profile.Purpose = ctx.Post( "Purpose" );
m.Profile.ContactCondition = ctx.PostInt( "ContactCondition" );
if (config.Instance.Site.ShowSexyInfoInProfile) {
m.Profile.Sexuality = ctx.PostInt( "Sexuality" );
m.Profile.Smoking = ctx.PostInt( "Smoking" );
m.Profile.Sleeping = ctx.PostInt( "Sleeping" );
m.Profile.Body = ctx.PostInt( "Body" );
m.Profile.Hair = ctx.PostInt( "Hair" );
m.Profile.Height = ctx.PostInt( "Height" );
m.Profile.Weight = ctx.PostInt( "Weight" );
m.Profile.OtherInfo = ctx.Post( "OtherInfo" );
}
if (ctx.viewer != null && ctx.viewer.IsAdministrator()) {
m.Profile.Description = ctx.PostHtmlAll( "Description" );
m.Signature = ctx.PostHtmlAll( "Signature" );
}
else {
saveDescriptionAndSignature( m, ctx );
}
}