377 references to Util
System.Web (377)
Cache\SubstitutionResponseElement.cs (1)
31_targetTypeName = System.Web.UI.Util.GetAssemblyQualifiedTypeName(_callback.Method.ReflectedType);
Compilation\AssemblyBuilder.cs (10)
215Util.AddAssemblyToStringCollection(a, ccu.ReferencedAssemblies); 281Util.AddAssembliesToStringCollection(_initialReferencedAssemblies, compileUnit.ReferencedAssemblies); 284Util.AddAssembliesToStringCollection(_additionalReferencedAssemblies, compileUnit.ReferencedAssemblies); 347if (!Util.IsValidFileName(name)) { 694Util.RemoveOrRenameFile(compilParams.OutputAssembly); 719Util.AddAssembliesToStringCollection(_initialReferencedAssemblies, compilParams.ReferencedAssemblies); 1131string codeFileContent = Util.StringFromFile(badBaseClassError.FileName); 1141badBaseClassError.Line = Util.LineCount(codeFileContent, 0, classOffset) + 1; 1185return Util.StringFromFileIfExists(linePragma); 1192return Util.StringFromFileIfExists(generatedFilePath);
Compilation\AssemblyResolver.cs (3)
372path = System.Web.UI.Util.GetAssemblyCodeBase(a); 381path = System.Web.UI.Util.GetAssemblyCodeBase(a); 485path = System.Web.UI.Util.GetAssemblyCodeBase(a);
Compilation\BaseCodeDomTreeGenerator.cs (7)
40using Util = System.Web.UI.Util; 150return Util.MakeFullTypeName(_sourceDataNamespace.Name, _sourceDataClass.Name); 155return Util.MakeFullTypeName(Parser.BaseTypeNamespace, _intermediateClass.Name); 201className = Util.MakeValidTypeNameFromString(className); 276Util.MakeFullTypeName(Parser.BaseTypeNamespace, Parser.BaseTypeName))); 331string fullClassName = Util.MakeFullTypeName(_sourceDataNamespace.Name, _sourceDataClass.Name); 649Debug.Assert(!Util.IsLateBoundComClassicType(declaredType));
Compilation\BaseResourcesBuildProvider.cs (2)
25using Util=System.Web.UI.Util; 50_ns = Util.GetNamespaceAndTypeNameFromVirtualPath(VirtualPathObject,
Compilation\BaseTemplateBuildProvider.cs (2)
173string assemblyName = Util.GetAssemblyNameFromFileName(assemblyFilename); 208collection.Add(Util.MakeFullTypeName(_parser.BaseTypeNamespace, _parser.BaseTypeName));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (2)
1158Type memberType = Util.GetNonPrivateFieldType(Parser.BaseType, builder.ID); 1163memberType = Util.GetNonPrivatePropertyType(Parser.BaseType, builder.ID);
Compilation\BuildManager.cs (15)
430_scriptVirtualDir = Util.GetScriptLocation(); 1303if (Util.TypeNameContainsAssembly(typeName)) { 1335type = Util.GetTypeFromAssemblies(TheBuildManager.TopLevelReferencedAssemblies, 1341type = Util.GetTypeFromAssemblies(configAssemblies, typeName, ignoreCase); 1380return Util.GetTypeFromAssemblies(CodeAssemblies, typeName, ignoreCase); 1598Util.CheckVirtualFileExists(virtualPath); 2457if (Util.IsNonEmptyDirectory(_precompTargetPhysicalDir)) { 2508Util.DeleteFileNoException(fileData.FullName); 2520return !Util.IsNonEmptyDirectory(_precompTargetPhysicalDir); 2955if (Util.IsCultureName(fileData.Name)) { 3009Encoding encoding = Util.GetEncodingFromConfigPath(vfile.VirtualPathObject); 3012string newAspxFile = Util.StringFromFile(destPhysicalPath, ref encoding); 3016Util.GetAssemblyQualifiedTypeName(result.ResultType)); 3029Util.ClearReadOnlyAttribute(destPhysicalPath); 3147Util.CheckAssignableType(requiredBaseType, objectFactory.InstantiatedType);
Compilation\BuildManagerHost.cs (5)
271string assemblyPath = Util.GetAssemblyPathFromType(t); 354Util.AddAssembliesToStringCollection(assemblyList, paths); 408TextReader reader = Util.ReaderFromStream(stream, virtualPath); 490Util.AddAssembliesToStringCollection(referencedAssemblies, compilerParameters.ReferencedAssemblies); 548Util.AddAssembliesToStringCollection(parser.AssemblyDependencies,
Compilation\BuildProvider.cs (3)
189return Util.ReaderFromStream(stream, virtualPath); 308return Util.GetCultureName(VirtualPath); 480string sourceString = Util.StringFromVirtualPath(VirtualPathObject);
Compilation\BuildResult.cs (4)
542string path = Util.GetAssemblyCodeBase(a); 560string path = Util.GetAssemblyCodeBase(a); 947hashCodeCombiner.AddObject(Util.GetRecompilationHash(pagesConfig)); 1251hashCodeCombiner.AddObject(Util.GetRecompilationHash(pagesConfig));
Compilation\BuildResultCache.cs (8)
52string assemblyName = Util.GetAssemblyNameFromFileName(Path.GetFileName(assemblyPath)); 342String assemblyPath = Util.GetAssemblyCodeBase(assembly); 484cacheKey = Util.MakeValidFileName(cacheKey); 723string[] hashTokens = Util.StringFromFile(fileName).Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries); 787if (Util.IsCultureName(subDirName)) { 812Util.DeleteFileIfExistsNoException(fullAssemblyPath + ".dll"); 813Util.DeleteFileIfExistsNoException(fullAssemblyPath + ".pdb"); 955Util.RemoveOrRenameFile(fileData.FullName);
Compilation\CodeDirectoryCompiler.cs (1)
353if (_onlyBuildLocalizedResources && System.Web.UI.Util.GetCultureName(child.VirtualPath) == null) {
Compilation\CodeDOMUtility.cs (1)
25using Util = System.Web.UI.Util;
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (5)
20using Util = System.Web.UI.Util; 46Util.MakeValidTypeNameFromString(outputAssemblyName).ToLower(CultureInfo.InvariantCulture); 185return "Create_" + Util.MakeValidTypeNameFromString(typeToCreate); 200string shortAssemblyName = Util.GetAssemblyShortName(t.Assembly); 202Type factoryType = a.GetType(factoryFullClassNameBase + Util.MakeValidTypeNameFromString(shortAssemblyName));
Compilation\PageThemeCodeDomTreeGenerator.cs (1)
311className = System.Web.UI.Util.MakeValidTypeNameFromString(className);
Compilation\PreservationFileReader.cs (1)
56Util.RemoveOrRenameFile(preservationFile);
Compilation\SourceFileBuildProvider.cs (1)
34string sourceString = Util.StringFromVirtualPath(VirtualPathObject);
Compilation\ThemeDirectoryCompiler.cs (1)
47appThemeCacheKey = "Theme_" + Util.MakeValidTypeNameFromString(themeName);
Compilation\WebReferencesBuildProvider.cs (2)
23using Util=System.Web.UI.Util; 79chunks[i] = Util.MakeValidTypeNameFromString(chunks[i]);
Compilation\WsdlBuildProvider.cs (2)
21using Util=System.Web.UI.Util; 29string ns = Util.GetNamespaceFromVirtualPath(VirtualPathObject);
Compilation\XsdBuildProvider.cs (2)
24using Util=System.Web.UI.Util; 37string ns = Util.GetNamespaceFromVirtualPath(VirtualPathObject);
Configuration\CodeSubDirectory.cs (1)
81if (!Util.IsValidFileName(directoryName)) {
Configuration\CompilationSection.cs (1)
855string assemblyName = Util.GetAssemblyNameFromFileName(binDlls[i].Name);
Configuration\HttpCapabilitiesSectionHandler.cs (2)
406lineNumber += System.Web.UI.Util.LineCount(text, textpos, match.Index + match.Length); 417lineNumber += System.Web.UI.Util.LineCount(text, textpos, match.Index + match.Length);
Configuration\IgnoreDeviceFilterElement.cs (1)
75if (System.Web.UI.Util.ContainsWhiteSpace(elem.Name)) {
Configuration\PagesSection.cs (3)
486if (!Util.VirtualFileExistsWithAssert(masterPageVirtualPath)) { 533if ((!String.IsNullOrEmpty(themeName)) && (!Util.ThemeExists(themeName))) { 562(!Util.ThemeExists(styleSheetThemeName))) {
Configuration\TagPrefixInfo.cs (1)
178if (System.Web.UI.Util.ContainsWhiteSpace(elem.TagPrefix)) {
ErrorFormatter.cs (2)
1063assemblyDir = System.Web.UI.Util.GetAssemblyCodeBase(declaringType.Assembly); 1465reader = System.Web.UI.Util.ReaderFromStream(stream, System.Web.VirtualPath.Create(virtualPath));
Handlers\AssemblyResourceLoader.cs (1)
164VirtualPath clientScriptsLocation = Util.GetScriptLocation();
Hosting\ApplicationManager.cs (3)
1439if (!System.Web.UI.Util.HasWriteAccessToDirectory(tempDirectory)) { 1444System.Web.UI.Util.GetCurrentAccountName(), tempDirectory)); 1447Debug.Assert(System.Web.UI.Util.HasWriteAccessToDirectory(tempDirectory));
Hosting\MapPathBasedVirtualPathProvider.cs (1)
24using Util=System.Web.UI.Util;
Hosting\VirtualPathProvider.cs (1)
16using Util=System.Web.UI.Util;
HttpApplicationFactory.cs (1)
232AssemblySet referencedAssemblies = System.Web.UI.Util.GetReferencedAssemblies(
HttpCachePolicy.cs (1)
316string targetTypeName = System.Web.UI.Util.GetAssemblyQualifiedTypeName(handler.Method.ReflectedType);
HttpRuntime.cs (6)
966if (!System.Web.UI.Util.HasWriteAccessToDirectory(tempDirectory)) { 976System.Web.UI.Util.GetCurrentAccountName(), tempDirectory)); 980Debug.Assert(System.Web.UI.Util.HasWriteAccessToDirectory(tempDirectory)); 1170try { Assembly.Load(System.Web.UI.Util.GetAssemblyNameFromFileName(fi.Name)); } 1299if (!System.Web.UI.Util.HasWriteAccessToDirectory(_tempDir)) { 1301System.Web.UI.Util.GetCurrentAccountName(), _tempDir));
Routing\RouteCollection.cs (1)
215string url = System.Web.UI.Util.GetUrlWithApplicationPath(requestContext.HttpContext, virtualPath);
SiteMapProvider.cs (1)
358return System.Web.UI.Util.IsUserAllowedToPath(context, virtualPath);
UI\BaseTemplateParser.cs (7)
90Util.CheckAssignableType(typeof(UserControl), t); 185string tagPrefix = Util.GetAndRemoveNonEmptyIdentifierAttribute(directive, 188string tagName = Util.GetAndRemoveNonEmptyIdentifierAttribute(directive, 191VirtualPath src = Util.GetAndRemoveVirtualPathAttribute(directive, 194string ns = Util.GetAndRemoveNonEmptyNoSpaceAttribute(directive, 198string assemblyName = Util.GetAndRemoveNonEmptyAttribute(directive, "assembly", 249Util.CheckUnknownDirectiveAttributes(directiveName, directive);
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\ClientScriptManager.cs (7)
294var callBackFrameUrl='" + Util.QuoteJScriptString(GetWebResourceUrl(typeof(Page), "SmartNav.htm"), false) + @"'; 397postBackEventReference += Util.QuoteJScriptString(argument, forUrl) + "')"; 437builder.Append(Util.QuoteJScriptString(postbackRef)); 457builder.Append(Util.QuoteJScriptString(options.Argument)); 485builder.Append(Util.QuoteJScriptString(options.ActionUrl)); 702attributeValue = Util.QuoteJScriptString(attributeValue); 1478_typeNameForSerialization = System.Web.UI.Util.GetAssemblyQualifiedTypeName(_type);
UI\CollectionBuilder.cs (1)
123if (!Util.IsWhiteSpaceString(s)) {
UI\Control.cs (1)
2410return Util.SerializeWithAssert(new ObjectStateFormatter(), state).Length;
UI\ControlBuilder.cs (7)
852if (Util.IsWhiteSpaceString(entry.Expression)) { 1253if ((AllowWhitespaceLiterals() == false) && Util.IsWhiteSpaceString(s)) 1613string fullTagName = Util.CreateFilteredName(filter, tagName); 1684Util.CheckAssignableType(typeof(ControlBuilder), cba.BuilderType); 1758allowMultipleInstances = Util.IsMultiInstanceTemplateProperty(pInfo); 2193Util.InvokeMethod(methodInfo, obj, parameters); 2482Util.InvokeMethod(methodInfo, obj, parameters);
UI\HiddenFieldPageStatePersister.cs (2)
32Pair combinedState = (Pair)Util.DeserializeWithAssert(StateFormatter2, viewStateString, Purpose.WebForms_HiddenFieldPageStatePersister_ClientState); 53Page.ClientState = Util.SerializeWithAssert(StateFormatter2, new Pair(ViewState, ControlState), Purpose.WebForms_HiddenFieldPageStatePersister_ClientState);
UI\HtmlControls\HtmlButton.cs (1)
123Util.WriteOnClickAttribute(
UI\HtmlControls\HtmlInputButton.cs (1)
149Util.WriteOnClickAttribute(
UI\HtmlControls\HtmlInputImage.cs (1)
335Util.WriteOnClickAttribute(
UI\HtmlControls\HtmlInputSubmit.cs (1)
67Util.WriteOnClickAttribute(
UI\MasterPage.cs (1)
201if (literal == null || Util.FirstNonWhiteSpaceIndex(literal.Text) >= 0) {
UI\MasterPageParser.cs (2)
74Util.CheckAssignableType(typeof(MasterPage), _masterPageType); 98Util.CheckAssignableType(typeof(MasterPage), type);
UI\ObjectStateFormatter.cs (1)
1168bool canConvert = System.Web.UI.Util.CanConvertToFrom(converter, typeof(string));
UI\ObjectTag.cs (3)
81Util.GetAndRemoveBooleanAttribute(attribs, "latebinding", 111if (_fLateBinding || Util.IsLateBoundComClassicType(_type)) { 147if (_fLateBinding || Util.IsLateBoundComClassicType(_type)) {
UI\Page.cs (10)
81if (!Util.IsWhiteSpaceString(text)) { 82int iFirstNonWhiteSpace = Util.FirstNonWhiteSpaceIndex(text); 84_firstLiteralLineNumber = Parser._lineNumber - Util.LineCount(text, iFirstNonWhiteSpace, text.Length); 1484Util.CheckAssignableType(typeof(HtmlTextWriter), writerType); 2371"WebForm_AutoFocus('" + Util.QuoteJScriptString(focusedControlId) + "');", 3436if (!Util.IsUserAllowedToPath(Context, _previousPagePath)) { 5333Util.QuoteJScriptString(HttpUtility.HtmlEncode(e.Message)) : 5369Util.QuoteJScriptString(HttpUtility.HtmlEncode(e.Message)) : 5412Response.Write(needsCallbackLoadScript ? Util.QuoteJScriptString(result) : result); 5429Util.QuoteJScriptString(HttpUtility.HtmlEncode(e.Message)) :
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\PageTheme.cs (1)
27if (!Util.IsWhiteSpaceString(s)) {
UI\ParsedAttributeCollection.cs (8)
39_allFiltersDictionary[Util.CreateFilteredName(fac.Filter, entry.Key.ToString())] = entry.Value; 66_allFiltersDictionary.Add(Util.CreateFilteredName(filter, name), value); 113string currentFilter = Util.ParsePropertyDeviceFilter(key, out attrName); 149_allFiltersDictionary.Remove(Util.CreateFilteredName(filter, name)); 172_allFiltersDictionary[Util.CreateFilteredName(filter, name)] = value; 212string filter = Util.ParsePropertyDeviceFilter(key.ToString(), out attrName); 246string filter = Util.ParsePropertyDeviceFilter(key.ToString(), out attrName); 278string filter = Util.ParsePropertyDeviceFilter(key.ToString(), out attrName);
UI\PropertyConverter.cs (2)
115ret = Util.InvokeMethod(methodInfo, null, parameters); 129ret = Util.InvokeMethod(methodInfo, null, parameters);
UI\SessionPageStatePersister.cs (2)
49Pair combinedState = (Pair)Util.DeserializeWithAssert(StateFormatter2, combinedSerializedStateString, Purpose.WebForms_SessionPageStatePersister_ClientState); 139Page.ClientState = Util.SerializeWithAssert(StateFormatter2, new Pair(requiresControlStateInSession, clientData), Purpose.WebForms_SessionPageStatePersister_ClientState);
UI\SimpleHandlerFactory.cs (1)
43Util.CheckAssignableType(typeof(IHttpHandler), result.ResultType);
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\SkinBuilder.cs (1)
66Util.InvokeMethod(methodInfo, control, parameters);
UI\TemplateControl.cs (3)
662Util.CheckAssignableType(typeof(UserControl), t); 672Util.CheckAssignableType(typeof(Control), t); 737Util.CheckAssignableType(typeof(UserControl), objectFactory.InstantiatedType);
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\TemplatePropertyEntry.cs (1)
23return Util.IsMultiInstanceTemplateProperty(PropertyInfo);
UI\UserControlParser.cs (3)
77Util.GetAndRemoveBooleanAttribute(directive, "shared", ref _fSharedPartialCaching); 79_provider = Util.GetAndRemoveNonEmptyAttribute(directive, "providerName"); 85sqlDependency = Util.GetAndRemoveNonEmptyAttribute(directive, "sqldependency");
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\BulletedList.cs (1)
368return ClientScriptManager.JscriptPrefix + Util.GetClientValidatedPostback(this, ValidationGroup, eventArgument);
UI\WebControls\Button.cs (3)
292onClick = Util.EnsureEndWithSemiColon(OnClientClick); 297onClick += Util.EnsureEndWithSemiColon(userOnClick); 305onClick = Util.MergeScript(onClick, reference);
UI\WebControls\ChangePassword.cs (2)
2191Util.CopyBaseAttributesToInnerControl(this, _changePasswordContainer); 2202Util.CopyBaseAttributesToInnerControl(this, _successContainer);
UI\WebControls\CheckBox.cs (2)
452onClick = Util.EnsureEndWithSemiColon(onClick); 547onClick = Util.MergeScript(onClick, Page.ClientScript.GetPostBackEventReference(options, true));
UI\WebControls\ImageButton.cs (4)
311onClick = Util.EnsureEndWithSemiColon(OnClientClick); 315onClick += Util.EnsureEndWithSemiColon(userOnClick); 335onClick = Util.MergeScript(onClick, postBackEventReference); 341onClick = Util.EnsureEndWithSemiColon(onClick) + "return false;";
UI\WebControls\LinkButton.cs (3)
269string onClick = Util.EnsureEndWithSemiColon(OnClientClick); 277onClick += Util.EnsureEndWithSemiColon(userOnClick); 360options.ActionUrl = Util.QuoteJScriptString(options.ActionUrl, true);
UI\WebControls\ListControl.cs (2)
510onChange = Util.EnsureEndWithSemiColon(onChange); 528onChange = Util.MergeScript(onChange, Page.ClientScript.GetPostBackEventReference(options, true));
UI\WebControls\Literal.cs (1)
24if (Util.IsWhiteSpaceString(s)) {
UI\WebControls\login.cs (1)
1427Util.CopyBaseAttributesToInnerControl(this, container);
UI\WebControls\MenuRendererClassic.cs (1)
190createDataObjectScript.Append(Util.QuoteJScriptString(
UI\WebControls\PasswordRecovery.cs (3)
1740Util.CopyBaseAttributesToInnerControl(this, container); 1973Util.CopyBaseAttributesToInnerControl(this, container); 2011Util.CopyBaseAttributesToInnerControl(this, _userNameContainer);
UI\WebControls\RadioButton.cs (1)
232onClick = Util.MergeScript(onClick, Page.ClientScript.GetPostBackEventReference(options));
UI\WebControls\TextBox.cs (2)
490onChange = Util.EnsureEndWithSemiColon(onChange); 508onChange = Util.MergeScript(onChange, page.ClientScript.GetPostBackEventReference(options, true));
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));
UI\WebControls\TreeView.cs (3)
2596imageUrl = Util.QuoteJScriptString(imageUrl); 2696+ Util.QuoteJScriptString(CollapseImageToolTip) + "\";\r\n" + 2698+ Util.QuoteJScriptString(ExpandImageToolTip) + "\";\r\n" +
UI\WebControls\Wizard.cs (1)
2648Util.CopyBaseAttributesToInnerControl(Owner, _renderTable);
UI\WebControls\xml.cs (4)
46if (!Util.IsWhiteSpaceString(text)) { 49int iFirstNonWhiteSpace = Util.FirstNonWhiteSpaceIndex(text); 54Line += Util.LineCount(text, 0, iFirstNonWhiteSpace); 344int iFirstNonWhiteSpace = Util.FirstNonWhiteSpaceIndex(text);
UI\WebParts\GenericWebPart.cs (1)
257base.ExportMode = (WebPartExportMode)(Util.GetEnumAttribute(
UI\WebParts\PropertyGridEditorPart.cs (1)
168return Util.CanConvertToFrom(property.Converter, typeof(string));
UI\WebParts\WebPartChrome.cs (7)
427Util.QuoteJScriptString(resolvedHelpUrl) + 435Util.QuoteJScriptString(resolvedHelpUrl) + 440Util.QuoteJScriptString(resolvedHelpUrl) + 457Util.QuoteJScriptString(resolvedHelpUrl) + 487Util.QuoteJScriptString(exportUrl) + 493Util.QuoteJScriptString(exportUrl) + 499Util.QuoteJScriptString(exportUrl) +
UI\WebParts\WebPartManager.cs (8)
3070if (Util.CanConvertToFrom(converter, typeof(string))) { 3082if (Util.CanConvertToFrom(converter, typeof(string))) { 3102if (Util.CanConvertToFrom(typeConverter, typeof(string))) { 3726"var __wpmExportWarning='" + Util.QuoteJScriptString(ExportSensitiveDataWarning) + "';", 3733"var __wpmCloseProviderWarning='" + Util.QuoteJScriptString(CloseProviderWarning) + "';", 3740"var __wpmDeleteWarning='" + Util.QuoteJScriptString(DeleteWarning) + "';", 4241if (Util.CanConvertToFrom(tempConverter, typeof(string))) { 4251if (Util.CanConvertToFrom(tempConverter, typeof(string))) {
UI\WebParts\WebPartMenu.cs (8)
72menu" + clientID + ".itemStyle = '" + Util.QuoteJScriptString(menuItemStyleCss) + @"'; 73menu" + clientID + ".itemHoverStyle = '" + Util.QuoteJScriptString(menuItemHoverStyleCss) + @"'; 250Util.QuoteJScriptString(resolvedHelpUrl) + 264Util.QuoteJScriptString(exportUrl) + 282Util.QuoteJScriptString(target) + 284Util.QuoteJScriptString(eventArgument) + 293Util.QuoteJScriptString(Util.EnsureEndWithSemiColon(verb.ClientClickHandler)) +
Util\FastPropertyAccessor.cs (1)
110String typeName = System.Web.UI.Util.MakeValidTypeNameFromString(type.Name) +
Util\HashCodeCombiner.cs (2)
96AddObject(System.Web.UI.Util.GetAssemblyQualifiedTypeName(t)); 235if (System.Web.UI.Util.GetCultureName(fullPath) == null) {
XmlSiteMapProvider.cs (2)
335if (!System.Web.UI.Util.VirtualFileExistsWithAssert(_normalizedVirtualPath)) { 865coll.Add(_securityTrimmingEnabledAttrName, System.Web.UI.Util.GetStringFromBool(secuityTrimmingEnabled));