/// <summary> /// /// This requires /// </summary> /// <param name="viewData"></param> /// <param name="message"></param> public static HtmlString CreatejQueryDialog(this AjaxHelper ajaxHelper, AjaxDialogOptions dialogOptions) { //we cant have this as an MvcForm, since this likely is in a grid and we dont want forms all over. we also cant emit out a single item to the dom either. string href = string.Format("<a href=\"#\" onclick=\"showJQueryDialogForAction('{0}','{1}','{2}',{3},{4},{5},{6}, '{7}'); return false;\">{8}</a>", dialogOptions.LoadingDivId, dialogOptions.URL, dialogOptions.DialogTitle, dialogOptions.Width, dialogOptions.Height, dialogOptions.ShowSaveButton.ToString().ToLower(), dialogOptions.ShowCloseButton.ToString().ToLower(), dialogOptions.FormId, dialogOptions.LinkText ); return new HtmlString(href); }
/// <summary> /// /// This requires /// </summary> /// <param name="viewData"></param> /// <param name="message"></param> public static HtmlString CreatejQueryDialog(this AjaxHelper ajaxHelper, AjaxDialogOptions dialogOptions) { //we cant have this as an MvcForm, since this likely is in a grid and we dont want forms all over. we also cant emit out a single item to the dom either. string href = string.Format("<a href=\"#\" onclick=\"showJQueryDialogForAction('{0}','{1}','{2}',{3},{4},{5},{6}, '{7}'); return false;\">{8}</a>", dialogOptions.LoadingDivId, dialogOptions.URL, dialogOptions.DialogTitle, dialogOptions.Width, dialogOptions.Height, dialogOptions.ShowSaveButton.ToString().ToLower(), dialogOptions.ShowCloseButton.ToString().ToLower(), dialogOptions.FormId, dialogOptions.LinkText ); return(new HtmlString(href)); }