Click here to Skip to main content
15,890,282 members

Comments by Moses_k (Top 8 by date)

Moses_k 3-Nov-20 12:23pm View    
@using (Ajax.BeginForm("RegisterSec", "ClubUsers", new { id = "__AjaxAntiForgeryForm" }, new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "user" }))
{


@Html.AntiForgeryToken();




Register


code






@Html.Captcha("...", "", 4, "...", true)
کد امنیتی





@*

code
*@









@*@if (ViewData.ModelState.Any(x => x.Value.Errors.Any()))
{
@Html.Raw(HttpUtility.HtmlDecode(@Html.ValidationSummary(true, "", new { @class = "text-danger" }).ToHtmlString()))
}*@




@*




Confirm



*@


Register




}

this is for index part without partial view...

in controller part

if (IsValidate == true)
return PartialView("Register", model);
else
//return RedirectToAction("Index", "Home", new { model});

return PartialView();
Moses_k 3-Nov-20 12:10pm View    
ok
Moses_k 21-Oct-20 3:51am View    
Thanks for your answer. I have just a profile Image and it is small and the same size.
Moses_k 20-Oct-20 6:41am View    
Yeah, I want to get this size on disk
Moses_k 4-Oct-20 7:11am View    
this is Error Message => Sequence contains no matching element

this line raised noted error =>
string keyName = dbEntry.Entity.GetType().GetProperties().Single(p => p.GetCustomAttributes(typeof(KeyAttribute), false).Count() > 0).Name;