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;
}

Manas MohapatraRank #182 · 13.2K reputationPosted Jul 28, 2015, 2:40 AM EDT
Swati Sharma17 reputationPosted Jul 28, 2015, 2:47 AM EDT
Swati Sharma17 reputationPosted Jul 28, 2015, 2:53 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Jul 28, 2015, 2:57 AM EDT
Swati Sharma17 reputationPosted Jul 28, 2015, 5:02 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Jul 28, 2015, 5:12 AM EDT
fmehdi mm2 reputationPosted Feb 5, 2016, 10:22 AM EST