public MvcHtmlString RequestOptions(string httpMethod, string updateTargetId, string loadingElementId) { var ajaxOptions = new AjaxOptions { HttpMethod = httpMethod, UpdateTargetId = updateTargetId, LoadingElementId = loadingElementId }; string attributeAsQueryString = ajaxOptions.ToQueryString().ToString(); confirmInfo.Attributes = StringEncrypter.UrlEncrypter.Encrypt(attributeAsQueryString); var htmlHelper = new HtmlHelper(helper.ViewContext, helper.ViewDataContainer, helper.RouteCollection); var attributes = HtmlHelper.AnonymousObjectToHtmlAttributes(this.htmlAttributes); attributes.Add("title", confirmInfo.Title); attributes.Add("data-toggle", "popover"); attributes.Add("data-placement", "top"); return(htmlHelper.HtmlLink(innerHtml, "GetConfirmationPopover", "Shared", null, null, null, confirmInfo.ToRouteValues(), attributes, permissionCodes)); }