Click here to Skip to main content
15,912,932 members

Comments by Jonny Galt (Top 4 by date)

Jonny Galt 11-Mar-13 17:33pm View    
So what would be the right way to pass a dynamic status message from the controller to the dialog partial view after inserting a record. Any pointer to a resource would be appreciated...
Jonny Galt 11-Mar-13 17:25pm View    
The partialView is a modal dialog that is called with this line of code as an anchor...
Open anchor tag
id="uiBtnManual" rel="/Invitee/InsertSingleInvitee" title="Import your guests manually">Manual Insert
Close anchor tag

Here is the Ajax form

@using (Ajax.BeginForm(
"InsertSingleInvitee",
"Invitee",
new AjaxOptions
{
UpdateTargetId = "updateInsert",
InsertionMode = InsertionMode.Replace,
OnSuccess = "showUpdateInsertMessage",
OnFailure = "showUpdateInsertError"
},
new
{
@class = "form-horizontal"
}))
{....}
Jonny Galt 11-Mar-13 17:23pm View    
Deleted
The partialView is a modal dialog that is called with this line of code...
<!--Manual Insert-->

Here is the Ajax form

@using (Ajax.BeginForm(
"InsertSingleInvitee",
"Invitee",
new AjaxOptions
{
UpdateTargetId = "updateInsert",
InsertionMode = InsertionMode.Replace,
OnSuccess = "showUpdateInsertMessage",
OnFailure = "showUpdateInsertError"
},
new
{
@class = "form-horizontal"
}))
{....}
Jonny Galt 11-Mar-13 17:19pm View    
Deleted
The partialView is a modal dialog that is called with this line of code...
Manual Insert

Here is the Ajax form

@using (Ajax.BeginForm(
"InsertSingleInvitee",
"Invitee",
new AjaxOptions
{
UpdateTargetId = "updateInsert",
InsertionMode = InsertionMode.Replace,
OnSuccess = "showUpdateInsertMessage",
OnFailure = "showUpdateInsertError"
},
new
{
@class = "form-horizontal"
}))
{....}