daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Sep 11th, 2018 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @inherits Umbraco.Web.Macros.PartialViewMacroPage
  2.  
  3.  
  4. @using System.Web.Mvc.Html
  5. @using ClientDependency.Core.Mvc
  6. @using Microsoft.CodeAnalysis.CSharp.Syntax
  7. @using Umbraco.Web
  8. @using Umbraco.Web.Controllers
  9.  
  10. @{
  11.     var registerModel = new ClarkslegalCMS.Models.RegisterModel();
  12.  
  13.  
  14.     Html.EnableClientValidation();
  15.     Html.EnableUnobtrusiveJavaScript();
  16.     Html.RequiresJs("/umbraco_client/ui/jquery.js");
  17.     Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.min.js");
  18.     Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.unobtrusive.min.js");
  19.  
  20.     var success = TempData["FormSuccess"] != null;
  21. }
  22.  
  23. @Html.RenderJsHere()
  24.  
  25. @using (Html.BeginUmbracoForm("RegisterUserForEvent", "Register"))
  26.     {
  27.         <fieldset>
  28.             <legend>Register Member</legend>
  29.             @Html.TextBoxFor(m => registerModel.firstName)
  30.             <br />
  31.             @Html.TextBoxFor(m => registerModel.email)
  32.             <br />
  33.  
  34.             <button type="submit">Register</button>
  35.         </fieldset>
  36.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top