76 references to HtmlEncode
System.ServiceModel.Web (9)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (9)
123
XElement.Parse(SR2.GetString(SR2.HelpPageOperationUri, HttpUtility.
HtmlEncode
(BuildFullUriTemplate(baseUri, operationInfo.UriTemplate)))),
124
XElement.Parse(SR2.GetString(SR2.HelpPageOperationMethod, HttpUtility.
HtmlEncode
(operationInfo.Method))));
127
div.Add(XElement.Parse(SR2.GetString(SR2.HelpPageCallbackText, HttpUtility.
HtmlEncode
(operationInfo.JavascriptCallbackParameterName))), table);
152
div.Add(XElement.Parse(SR2.GetString(SR2.HelpPageMethodNotAllowedWithLink, HttpUtility.
HtmlEncode
(helpUri.AbsoluteUri))));
179
string encodedHelpLink = HttpUtility.
HtmlEncode
(helpUri.AbsoluteUri);
183
string errorMessage = AppSettings.DisableHtmlErrorPageExceptionHtmlEncoding ? error.Message : HttpUtility.
HtmlEncode
(error.Message);
209
div.Add(XElement.Parse(SR2.GetString(SR2.HelpPageEndpointNotFoundWithLink, HttpUtility.
HtmlEncode
(helpUri.AbsoluteUri))));
221
XElement.Parse(SR2.GetString(SR2.HelpPageRedirect, HttpUtility.
HtmlEncode
(originalTo), HttpUtility.
HtmlEncode
(newLocation))));
System.Web (53)
ErrorFormatter.cs (19)
547
HttpUtility.
HtmlEncode
(fusionLog),
917
errDesc = HttpUtility.
HtmlEncode
(errDesc);
923
errDesc = HttpUtility.
HtmlEncode
(errDesc);
1124
AdaptiveStackTrace.Add(HttpUtility.
HtmlEncode
(stackTraceText));
1134
_coloredSquare2Content = HttpUtility.
HtmlEncode
(sb.ToString());
1200
_htmlEncodedUrl = HttpUtility.
HtmlEncode
(url);
1245
_htmlEncodedUrl = HttpUtility.
HtmlEncode
(url);
1341
detailsDesc = HttpUtility.
HtmlEncode
(detailsDesc);
1368
notesDesc = HttpUtility.
HtmlEncode
(notesDesc);
1508
sb.Append(HttpUtility.
HtmlEncode
(sourceLine));
1652
string htmlEncodedText = HttpUtility.
HtmlEncode
(e.ErrorNumber);
1657
htmlEncodedText = HttpUtility.
HtmlEncode
(e.ErrorText);
1687
sb.Append(HttpUtility.
HtmlEncode
(_sourceFilePath));
1696
sb.Append(HttpUtility.
HtmlEncode
(itc.ConvertToString(_sourceFileLineNumber)));
1712
sb.Append(HttpUtility.
HtmlEncode
(e.ErrorNumber));
1716
sb.Append(HttpUtility.
HtmlEncode
(e.ErrorText));
1726
sb.Append(HttpUtility.
HtmlEncode
(HttpRuntime.GetSafePath(e.FileName)));
1751
sb.Append(HttpUtility.
HtmlEncode
(line));
1778
sb.Append(HttpUtility.
HtmlEncode
(s));
Handlers\AssemblyResourceLoader.cs (1)
412
url = HttpUtility.
HtmlEncode
(url);
Handlers\TraceHandler.cs (7)
234
AddCell(trow, "<h2>" + HttpUtility.
HtmlEncode
(vroot.Substring(1)) + "<h2><p>");
289
AddCell(trow, HttpUtility.
HtmlEncode
((string) current.Tables[SR.Trace_Request].Rows[0][SR.Trace_Url]).Substring(vrootLen));
373
parent = HttpUtility.
HtmlEncode
((string) ((DataRow) en.Current)[SR.Trace_Parent_Id]);
374
control = HttpUtility.
HtmlEncode
((string) ((DataRow) en.Current)[SR.Trace_Control_Id]);
543
temp = HttpUtility.FormatPlainTextSpacesAsHtml(HttpUtility.
HtmlEncode
(cells[i].ToString()));
545
temp = HttpUtility.
HtmlEncode
(cells[i].ToString());
576
AddCell(trow, HttpUtility.
HtmlEncode
(datatable.Rows[0][SR.Trace_Session_Id].ToString()));
HttpResponse.cs (2)
1294
title += ": " + HttpUtility.
HtmlEncode
(e.Message);
2406
Write(HttpUtility.
HtmlEncode
(url));
httpserverutility.cs (2)
961
return HttpUtility.
HtmlEncode
(s);
1122
return
HtmlEncode
(Convert.ToString(value, CultureInfo.CurrentCulture));
UI\HtmlControls\HtmlContainerControl.cs (1)
115
InnerHtml = HttpUtility.
HtmlEncode
(value);
UI\Page.cs (6)
5333
Util.QuoteJScriptString(HttpUtility.
HtmlEncode
(e.Message)) :
5334
HttpUtility.
HtmlEncode
(e.Message));
5369
Util.QuoteJScriptString(HttpUtility.
HtmlEncode
(e.Message)) :
5370
HttpUtility.
HtmlEncode
(e.Message));
5429
Util.QuoteJScriptString(HttpUtility.
HtmlEncode
(e.Message)) :
5430
HttpUtility.
HtmlEncode
(e.Message));
UI\WebControls\Adapters\MenuAdapter.cs (3)
282
writer.Write(HttpUtility.
HtmlEncode
(String.Format(
290
writer.Write(HttpUtility.
HtmlEncode
(String.Format(
431
writer.Write(HttpUtility.
HtmlEncode
(item.FormattedText));
UI\WebControls\BoundField.cs (3)
399
dataValueString = HttpUtility.
HtmlEncode
(dataValueString);
433
dataValueString = HttpUtility.
HtmlEncode
(dataValueString);
551
HeaderText = HttpUtility.
HtmlEncode
(unencodedHeaderText);
UI\WebControls\LoginName.cs (1)
94
userName = HttpUtility.
HtmlEncode
(userName);
UI\WebControls\LoginUtil.cs (2)
80
userName = HttpUtility.
HtmlEncode
(userName);
81
password = HttpUtility.
HtmlEncode
(password);
UI\WebControls\ModelErrorMessage.cs (1)
92
Text = HttpUtility.
HtmlEncode
(error.ErrorMessage);
UI\WebControls\PasswordRecovery.cs (2)
1748
userName.Text = HttpUtility.
HtmlEncode
(UserNameInternal);
1754
question.Text = HttpUtility.
HtmlEncode
(Question);
UI\WebControls\SiteMapPath.cs (1)
601
link.Text = HttpUtility.
HtmlEncode
(node.Title);
UI\WebParts\RowToParametersTransformer.cs (1)
259
label.Text = HttpUtility.
HtmlEncode
(OldProviderNames[2*i]);
Util\AspCompat.cs (1)
802
return HttpUtility.
HtmlEncode
(str);
System.Web.DynamicData (6)
DynamicData\DynamicDataExtensions.cs (1)
320
dataValueString = HttpUtility.
HtmlEncode
(dataValueString);
DynamicData\DynamicValidator.cs (2)
98
ErrorMessage = HttpUtility.
HtmlEncode
(e.Message);
124
ErrorMessage = HttpUtility.
HtmlEncode
(DynamicDataResources.DynamicValidator_CannotConvertValue);
DynamicData\FieldTemplateUserControl.cs (3)
440
validator.ErrorMessage = HttpUtility.
HtmlEncode
(s_defaultRequiredAttribute.FormatErrorMessage(column.DisplayName));
442
validator.ErrorMessage = HttpUtility.
HtmlEncode
(columnErrorMessage);
483
validator.ErrorMessage = HttpUtility.
HtmlEncode
(errorMessage);
System.Web.Extensions (1)
Handlers\ScriptResourceHandler.cs (1)
244
HttpUtility.
HtmlEncode
(title) +
System.Web.Mobile (7)
UI\MobileControls\Design\Adapters\DesignerCommandAdapter.cs (1)
103
tmpRequiredWidth = MSHTMLHostUtil.GetHtmlFragmentWidth(String.Format(CultureInfo.CurrentCulture, htmlFragment, HttpUtility.
HtmlEncode
(controlText.Substring(0, allowedLength))));
UI\MobileControls\Design\DeviceSpecificDesigner.cs (1)
178
curChoice = HttpUtility.
HtmlEncode
(DesignerUtility.ChoiceToUniqueIdentifier(CurrentChoice));
UI\MobileControls\Design\MobileControlPersister.cs (3)
309
sw.Write(HttpUtility.
HtmlEncode
(db.Expression));
574
persistValue = HttpUtility.
HtmlEncode
(obj.ToString());
584
persistValue = HttpUtility.
HtmlEncode
(persistValue);
UI\MobileControls\Design\StyleSheetDesigner.cs (2)
484
curStyle = HttpUtility.
HtmlEncode
(CurrentStyle.Name);
501
curChoice = HttpUtility.
HtmlEncode
(DesignerUtility.ChoiceToUniqueIdentifier(CurrentChoice));