Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.Parser Error Message: Only one 'model' statement is allowed in a file.
Source Error:
|
Source File: /Views/tblhotelmasters/Create.cshtml Line: 6
@model WebPortal_Planmiles.Models.Data.tblhotelmaster
@{
ViewBag.Title = "Create";
}
@model int
@{
var chk = "checked";
var checked1 = Model == 1 ? chk : null;
var checked2 = Model == 2 ? chk : null;
var checked3 = Model == 3 ? chk : null;
var checked4 = Model == 4 ? chk : null;
var checked5 = Model == 5 ? chk : null;
var htmlField = ViewData.TemplateInfo.HtmlFieldPrefix;
}
7 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
fmehdi mmPosted Feb 5, 2016, 3:22 PM
Manas MohapatraPosted Jul 28, 2015, 9:12 AM
Swati SharmaPosted Jul 28, 2015, 9:02 AM
Manas MohapatraPosted Jul 28, 2015, 6:57 AM
Swati SharmaPosted Jul 28, 2015, 6:53 AM
Swati SharmaPosted Jul 28, 2015, 6:47 AM
Manas MohapatraPosted Jul 28, 2015, 6:40 AM