Click here to Skip to main content
16,008,175 members

Comments by Member 10624821 (Top 4 by date)

Member 10624821 8-Jan-16 6:37am View    
Or how can i use that Ajaxparameter1 variable in other action methods. So that method will work.
Member 10624821 8-Jan-16 6:36am View    
but this is my Json method. public JsonResult Ajax(string AJAXParameter1).
Member 10624821 7-Jan-16 6:12am View    
One of my view code is

@model C3CardKYC1.Models.DetailsEntry

@{
ViewBag.Title = "Create";
}

Create



@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)

<fieldset>
DetailsEntry

<div class="editor-label">
@Html.LabelFor(model => model.ClientId)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ClientId)
@Html.ValidationMessageFor(model => model.ClientId)
</div>

<div class="editor-label">
@Html.LabelFor(model => model.ClientName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.ClientName)
@Html.ValidationMessageFor(model => model.ClientName)
</div>

<div class="editor-label">
@Html.LabelFor(model => model.EmployeeId)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.EmployeeId)
@Html.ValidationMessageFor(model => model.EmployeeId)
</div>

<div class="editor-label">
@Html.LabelFor(model => model.EmpCitizenId)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.EmpCitizenId)
@Html.ValidationMessageFor(model => model.EmpCitizenId)
</div>

<div class="editor-label">
@Html.LabelFor(model => model.EmpName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.EmpName)
@Html.ValidationMessageFor(model => model.EmpName)
</div>

<div class="editor-label">
@Html.LabelFor(model => model.Nationality)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Nationality)
@Html.ValidationMessageFor(model => model.Nationality)
</div>

<div class="editor-label">
@Html.LabelFor(model => model.DocumentType)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.DocumentType)
@Html.ValidationMessageFor(model => model.DocumentType)
</div>

<p>
<input type="submit" value="Create" />
</p>
</fieldset>
}

<div>
@Html.ActionLink("Back to List", "Index")
</div>

@Html.Partial("displaydocument",Model)
Member 10624821 6-Jan-16 23:50pm View    
I created view model as below
public class intermediate
{

public List<detailsentry> details { get; set; }
public List<Passport> passport { get; set; }
other fields
}
@{
@Html.Partial("displaygrid",Model.details);//here error comes object not set to an instance of an object
}