UI\BatchParser.cs (11)
104using (reader = Util.ReaderFromFile(physicalPath, virtualPath)) {
110reader = Util.ReaderFromStream(stream, virtualPath);
241VirtualPath src = Util.GetAndRemoveVirtualPathAttribute(directive, "src");
249VirtualPath virtualPath = Util.GetAndRemoveVirtualPathAttribute(directive, "virtualpath");
253VirtualPath page = Util.GetAndRemoveVirtualPathAttribute(directive, "page");
257VirtualPath control = Util.GetAndRemoveVirtualPathAttribute(directive, "control");
263VirtualPath src = Util.GetAndRemoveVirtualPathAttribute(directive, "src");
278string deviceName = Util.ParsePropertyDeviceFilter(attribName, out name);
290string src = Util.GetNonEmptyAttribute(name, value);
367VirtualPath virtualPath = Util.GetAndRemoveVirtualPathAttribute(directive, "virtualPath");
389VirtualPath virtualPath = Util.GetAndRemoveVirtualPathAttribute(directive, "virtualPath");
UI\PageParser.cs (33)
219_mainDirectiveConfigSettings["buffer"] = Util.GetStringFromBool(PagesConfig.Buffer);
222_mainDirectiveConfigSettings["enableviewstatemac"] = Util.GetStringFromBool(PagesConfig.EnableViewStateMac);
225_mainDirectiveConfigSettings["enableEventValidation"] = Util.GetStringFromBool(PagesConfig.EnableEventValidation);
228_mainDirectiveConfigSettings["smartnavigation"] = Util.GetStringFromBool(PagesConfig.SmartNavigation);
245_mainDirectiveConfigSettings["maintainScrollPositionOnPostBack"] = Util.GetStringFromBool(PagesConfig.MaintainScrollPositionOnPostBack);
280Util.CheckAssignableType(typeof(Page), _previousPageType);
290Util.CheckAssignableType(typeof(MasterPage), _masterPageType);
311_errorPage = Util.GetNonEmptyAttribute(name, value);
318Util.GetNonEmptyAttribute(name, value);
329Util.CheckThemeAttribute(value);
339Util.CheckThemeAttribute(value);
347if (Util.IsFalseString(value)) {
353else if (!Util.IsTrueString(value)) {
364_culture = Util.GetNonEmptyAttribute(name, value);
395Util.GetSpecificCulturesFormattedList(cultureInfo)));
405_lcid = Util.GetNonNegativeIntegerAttribute(name, value);
421Util.GetNonEmptyAttribute(name, value);
430_responseEncoding = Util.GetNonEmptyAttribute(name, value);
442_codePage = Util.GetNonNegativeIntegerAttribute(name, value);
461flags[aspCompatMode] = Util.GetBooleanAttribute(name, value);
474flags[asyncMode] = Util.GetBooleanAttribute(name, value);
485object tmpObj = Util.GetEnumAttribute(name, value, typeof(TraceModeInternal));
490bool traceEnabled = Util.GetBooleanAttribute(name, value);
504bool smartNavigation = Util.GetBooleanAttribute(name, value);
508bool maintainScrollPosition = Util.GetBooleanAttribute(name, value);
512flags[validateRequest] = Util.GetBooleanAttribute(name, value);
569int timeoutInSeconds = Util.GetNonNegativeIntegerAttribute(attribName, value);
618object tmpObj = Util.GetEnumAttribute(name, value, typeof(TransactionOption));
648varyByContentEncoding = Util.GetAndRemoveNonEmptyAttribute(directive, "varybycontentencoding");
653varyByHeader = Util.GetAndRemoveNonEmptyAttribute(directive, "varybyheader");
658object tmpObj = Util.GetAndRemoveEnumAttribute(directive, typeof(OutputCacheLocation), "location");
664sqlDependency = Util.GetAndRemoveNonEmptyAttribute(directive, "sqldependency");
672if (Util.GetAndRemoveBooleanAttribute(directive, "nostore", ref noStoreValue)) {
UI\SimpleWebHandlerParser.cs (15)
228_lineNumber += Util.LineCount(text, textPos, match.Index);
237_lineNumber += Util.LineCount(text, textPos, match.Index + match.Length);
253if (!Util.IsWhiteSpaceString(remainingText))
307if (Util.GetAndRemoveBooleanAttribute(directive, "debug", ref fDebug))
316if (Util.GetAndRemoveNonNegativeIntegerAttribute(directive, "warninglevel", ref warningLevel)) {
322string compilerOptions = Util.GetAndRemoveNonEmptyAttribute(
356string language = Util.GetAndRemoveNonEmptyAttribute(directive, "language");
367_typeName = Util.GetAndRemoveRequiredAttribute(directive, "class");
376string assemblyName = Util.GetAndRemoveNonEmptyAttribute(directive, "name");
377VirtualPath src = Util.GetAndRemoveVirtualPathAttribute(directive, "src");
401Util.CheckUnknownDirectiveAttributes(directiveName, directive);
468if (Util.TypeNameContainsAssembly(typeName)) {
479t = Util.GetTypeFromAssemblies(_referencedAssemblies, typeName, false /*ignoreCase*/);
483t = Util.GetTypeFromAssemblies(_linkedAssemblies, typeName, false /*ignoreCase*/);
521Util.CheckAssignableType(typeof(IHttpHandler), t);
UI\TemplateControlParser.cs (17)
64_mainDirectiveConfigSettings["enableviewstate"] = Util.GetStringFromBool(PagesConfig.EnableViewState);
113VirtualPath virtualPath = Util.GetAndRemoveVirtualPathAttribute(directive, "virtualpath");
118VirtualPath tmp = Util.GetAndRemoveVirtualPathAttribute(directive, "page");
128tmp = Util.GetAndRemoveVirtualPathAttribute(directive, "control");
161Util.CheckUnknownDirectiveAttributes(directiveName, directive);
176tmpObj = Util.GetAndRemoveEnumAttribute(mainDirective,
209flags[noAutoEventWireup] = !Util.GetBooleanAttribute(name, value);
220parseData[name] = Util.GetNonEmptyAttribute(name, value);
273string typeName = Util.GetAndRemoveNonEmptyNoSpaceAttribute(directive, "typeName");
274VirtualPath virtualPath = Util.GetAndRemoveVirtualPathAttribute(directive, "virtualPath");
292Util.CheckUnknownDirectiveAttributes(directiveName, directive);
323bool fHasDuration = Util.GetAndRemovePositiveIntegerAttribute(directive, "duration", ref duration);
330outputCacheProfile = Util.GetAndRemoveNonEmptyAttribute(directive, "cacheProfile");
339varyByCustom = Util.GetAndRemoveNonEmptyAttribute(directive, "varybycustom");
344varyByControls = Util.GetAndRemoveNonEmptyAttribute(directive, "varybycontrol");
349varyByParams = Util.GetAndRemoveNonEmptyAttribute(directive, "varybyparam");
369Util.CheckUnknownDirectiveAttributes(directiveName, directive, UnknownOutputCacheAttributeError);
UI\TemplateParser.cs (40)
639Util.CheckAssignableType(DefaultFileLevelBuilderType, cba.BuilderType);
745using (reader = Util.ReaderFromFile(physicalPath, CurrentVirtualPath)) {
752reader = Util.ReaderFromStream(stream, CurrentVirtualPath);
968_lineNumber += Util.LineCount(text, textPos,
1137_lineNumber += Util.LineCount(text, textPos,
1297int iFirstNonWhiteSpace = Util.FirstNonWhiteSpaceIndex(literal);
1303_lineNumber -= Util.LineCount(literal, iFirstNonWhiteSpace, literal.Length);
1315if (Util.IsWhiteSpaceString(literal))
1336int iFirstNonWhiteSpace = Util.FirstNonWhiteSpaceIndex(literal);
1338_lineNumber -= Util.LineCount(literal, iFirstNonWhiteSpace, literal.Length);
1486string filter = Util.ParsePropertyDeviceFilter(tagName, out realTagName);
1631VirtualPath virtualPath = Util.GetAndRemoveVirtualPathAttribute(attribs, "src");
1648_currentScript.Script = Util.StringFromVirtualPath(virtualPath);
1780string assemblyName = Util.GetAndRemoveNonEmptyAttribute(directive, "name");
1781VirtualPath src = Util.GetAndRemoveVirtualPathAttribute(directive, "src");
1784Util.CheckUnknownDirectiveAttributes(directiveName, directive);
1814string interfaceName = Util.GetAndRemoveRequiredAttribute(directive, "interface");
1817Util.CheckUnknownDirectiveAttributes(directiveName, directive);
1853string deviceName = Util.ParsePropertyDeviceFilter(attribName, out attribName);
1904flags[debug] = Util.GetBooleanAttribute(name, value);
1913flags[noLinePragmas] = !Util.GetBooleanAttribute(name, value);
1917_warningLevel = Util.GetNonNegativeIntegerAttribute(name, value);
1933flags[useExplicit] = Util.GetBooleanAttribute(name, value);
1936flags[strict] = Util.GetBooleanAttribute(name, value);
1941string language = Util.GetNonEmptyAttribute(name, value);
1951parseData[name] = Util.GetNonEmptyAttribute(name, value);
1956parseData[name] = Util.GetNonEmptyAttribute(name, value);
1964_generatedClassName = Util.GetNonEmptyFullClassNameAttribute(name, value,
1973ProcessCodeFile(VirtualPath.Create(Util.GetNonEmptyAttribute(name, value)));
2060_baseTypeName = Util.GetNonEmptyFullClassNameAttribute("inherits", baseTypeName,
2147string ns = Util.GetAndRemoveNonEmptyNoSpaceAttribute(directive, "namespace");
2155Util.CheckUnknownDirectiveAttributes(directiveName, directive);
2211Util.CheckVirtualFileExists(_codeFileVirtualPath);
2355int commaIndex = Util.CommaIndexInTypeName(typeName);
2375t = Util.GetTypeFromAssemblies(_referencedAssemblies, typeName, ignoreCase);
2380t = Util.GetTypeFromAssemblies(AssemblyDependencies, typeName, ignoreCase);
2548if (!IgnoreParseErrors && Util.IsWhiteSpaceString(code)) {
2694string filter = Util.ParsePropertyDeviceFilter(attribName, out realAttributeName);
2757int lineNumber = _lineNumber + Util.LineCount(text, match.Index, attrValue.Index);
2960AssemblySet assemblyDependencies = Util.GetReferencedAssemblies(assembly);
UI\Util.cs (14)
360TextReader reader = Util.ReaderFromStream(stream, virtualPath);
651string val = Util.GetAndRemove(directives, key);
678if (Util.ContainsWhiteSpace(value)) {
762string val = Util.GetAndRemoveNonEmptyAttribute(directives, key, required);
788string val = Util.GetAndRemoveNonEmptyNoSpaceAttribute(directives, key, required);
845Util.FirstDictionaryKey(directive), directiveName));
859string s = Util.GetAndRemove(directives, key);
889string s = Util.GetAndRemove(directives, key);
923string s = Util.GetAndRemove(directives, key);
947string s = Util.GetAndRemove(directives, key);
1224return Util.FilePathFromFileUrl(t.Assembly.EscapedCodeBase);
1294assemblyPath = Util.GetAssemblyCodeBase(assembly);
1606injectedOnClick = Util.GetClientValidateEvent(validationGroup);
1612injectedOnClick = Util.GetClientValidatedPostback(control, validationGroup);
UI\WebControls\TreeNode.cs (9)
767"'" + Util.QuoteJScriptString(Text, true) + "'," +
768"'" + Util.QuoteJScriptString(InternalValuePath, true) + "'," +
770"'" + Util.QuoteJScriptString(DataPath, true) + "','" +
781"'" + Util.QuoteJScriptString(Text, true) + "'," +
782"'" + Util.QuoteJScriptString(InternalValuePath, true) + "'," +
784"'" + Util.QuoteJScriptString(DataPath, true) + "','" +
1274onClick = Util.MergeScript(onClick,
1283onClick = Util.MergeScript(onClick,
1287onClick = Util.MergeScript(onClick, GetToggleNodeAttributeValue(myId, lineType));