I am trying to pull the Order Form out of the Bakery Template to use in my web page. When pulling the section of HTML, I am getting the following error in the code: Unknown attribute @Validation.For("orderName")
<div class="fieldcontainer" data-role="fieldcontain">
<label for="orderPhone">Your Name</label>
<input type="text" id="orderName" name="orderName" @Validation.For("orderName")/>
<div>@Html.ValidationMessage("orderName")</div>
</div>
I am assuming it is because I don't have the right .js file loaded. Does anyone know, or can anyone tell me which specific .js file I need to also pull from the Bakery template and load in my page Head?
Thanks!
Without seeing all of your code it's a little hard to tell what the problem is.
Regardless read this great article on Validation and Razor WebPages: http://www.mikesdotnetting.com/Article/191/Validation-In-Razor-Web-Pages-2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.