195 references to ClientScript
System.Web (183)
UI\Control.cs (2)
492Page.ClientScript.ValidateEvent(uniqueID, eventArgument); 3433_occasionalFields.SpacerImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(WebControl), "Spacer.gif");
UI\HtmlControls\HtmlAnchor.cs (1)
234string postBackEventReference = Page.ClientScript.GetPostBackEventReference(options, true);
UI\HtmlControls\HtmlInputButton.cs (1)
155Page.ClientScript.RegisterForEventValidation(UniqueID);
UI\HtmlControls\HtmlInputCheckBox.cs (1)
164Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute);
UI\HtmlControls\HtmlInputHidden.cs (1)
132Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute);
UI\HtmlControls\HtmlInputRadioButton.cs (1)
185Page.ClientScript.RegisterForEventValidation(Value, RenderedNameAttribute);
UI\HtmlControls\HtmlInputText.cs (1)
183Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute);
UI\HtmlControls\HtmlSelect.cs (1)
802Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute);
UI\HtmlControls\HtmlTextArea.cs (1)
186Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute);
UI\HtmlForm.cs (4)
258sb.Append(HttpEncoderUtility.UrlEncodeSpaces(HttpUtility.HtmlAttributeEncode(Page.ClientScript.GetWebResourceUrl(typeof(HtmlForm), "SmartNav.htm")))); 355Page.ClientScript.RegisterClientScriptResource(typeof(HtmlForm), "SmartNav.js"); 408page.ClientScript.RegisterOnSubmitStatement(typeof(HtmlForm), "OnSubmitScript", formOnSubmit); 432page.ClientScript.RegisterDefaultButtonScript(c, writer, false /* UseAddAttribute */);
UI\Page.cs (36)
659if (ClientScript.HasSubmitStatements || 2267ClientScript.RegisterHiddenField(ViewStateGeneratorFieldID, GetClientStateIdentifier().ToString("X8", CultureInfo.InvariantCulture)); 2303ClientScript.RenderHiddenFields(writer); 2312ClientScript.RegisterHiddenField(_scrollPositionXID, _scrollPositionX.ToString(CultureInfo.InvariantCulture)); 2313ClientScript.RegisterHiddenField(_scrollPositionYID, _scrollPositionY.ToString(CultureInfo.InvariantCulture)); 2314ClientScript.RegisterStartupScript(typeof(Page), PageScrollPositionScriptKey, @" 2364ClientScript.RegisterClientScriptResource(typeof(HtmlForm), "Focus.js"); 2366if (!ClientScript.IsClientScriptBlockRegistered(typeof(HtmlForm), "Focus")) { 2368ClientScript.RegisterStartupScript( 2385ClientScript.RegisterOnSubmitStatement(typeof(Page), PageReEnableControlsScriptKey, "WebForm_ReEnableControls();"); 2398ClientScript.RenderClientScriptBlocks(writer); 2407ClientScript.RegisterArrayDeclaration(EnabledControlArray, "'" + control.ClientID + "'"); 2410ClientScript.RenderArrayDeclares(writer); 2411ClientScript.RenderExpandoAttribute(writer); 2424ClientScript.RegisterHiddenField(ViewStateEncryptionID, String.Empty); 2429ClientScript.RegisterHiddenField(previousPageID, path); 2433ClientScript.SaveEventValidationField(); 2436if (ClientScript.HasRegisteredHiddenFields) { 2446ClientScript.RenderHiddenFields(writer); 2464ClientScript.RenderClientStartupScripts(writer); 2588return ClientScript.GetPostBackEventReference(control, String.Empty); 2605return ClientScript.GetPostBackEventReference(control, argument); 2615return ClientScript.GetPostBackEventReference(control, argument); 2625return ClientScript.GetPostBackClientHyperlink(control, argument, false); 2706ClientScript.RegisterHiddenField(lastFocusID, String.Empty); 2728ClientScript.RegisterHiddenField(postEventSourceID, String.Empty); 2729ClientScript.RegisterHiddenField(postEventArgumentID, String.Empty); 2800ClientScript.RenderWebFormsScript(writer); 2810return ClientScript.IsClientScriptBlockRegistered(typeof(Page), key); 2820return ClientScript.IsStartupScriptRegistered(typeof(Page), key); 2833ClientScript.RegisterArrayDeclaration(arrayName, arrayValue); 2846ClientScript.RegisterHiddenField(hiddenFieldName, hiddenFieldInitialValue); 2858ClientScript.RegisterClientScriptBlock(typeof(Page), key, script); 2872ClientScript.RegisterStartupScript(typeof(Page), key, script, false); 2884ClientScript.RegisterOnSubmitStatement(typeof(Page), key, script); 5404string validation = ClientScript.GetEventValidationFieldValue();
UI\PartialCachingControl.cs (6)
159Page.ClientScript.RegisterScriptBlock(registerCallData.Key, 164Page.ClientScript.RegisterOnSubmitStatementInternal(registerCallData.Key, 169Page.ClientScript.RegisterArrayDeclaration(registerCallData.StringParam1, 174Page.ClientScript.RegisterHiddenField(registerCallData.StringParam1, 179Page.ClientScript.RegisterExpandoAttribute(registerCallData.StringParam1, 322Page.ClientScript.RegisterForEventValidation(registerCallData.StringParam1,
UI\Util.cs (4)
1592string postbackReference = control.Page.ClientScript.GetPostBackEventReference(control, argument, true); 1608control.Page.ClientScript.RegisterForEventValidation(control.UniqueID); 1615injectedOnClick = control.Page.ClientScript.GetPostBackEventReference(control, String.Empty, true); 1619control.Page.ClientScript.RegisterForEventValidation(control.UniqueID);
UI\WebControls\Adapters\MenuAdapter.cs (2)
212link.NavigateUrl = Page.ClientScript.GetPostBackClientHyperlink(owner, "u"); 487link.NavigateUrl = Page.ClientScript.GetPostBackClientHyperlink(owner,
UI\WebControls\BaseValidator.cs (6)
411page.ClientScript.RegisterExpandoAttribute(controlId, attributeName, attributeValue, encode); 624if (Page.ClientScript.IsClientScriptBlockRegistered(typeof(BaseValidator), ValidatorIncludeScriptKey)) { 628Page.ClientScript.RegisterClientScriptResource(typeof(BaseValidator), ValidatorFileName); 629Page.ClientScript.RegisterOnSubmitStatement(typeof(BaseValidator), onSubmitScriptKey, onSubmitScript); 631Page.ClientScript.RegisterStartupScript(typeof(BaseValidator), ValidatorIncludeScriptKey, ValidatorStartupScript, addScriptTags: true); 659Page.ClientScript.RegisterArrayDeclaration(arrayName, element);
UI\WebControls\BulletedList.cs (1)
370return Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true);
UI\WebControls\Button.cs (2)
303string reference = Page.ClientScript.GetPostBackEventReference(options, false); 311Page.ClientScript.RegisterForEventValidation(options);
UI\WebControls\Calendar.cs (3)
941sb.Append(Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true)); 1120selectUrl = Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true); 1321writer.Write(Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true));
UI\WebControls\CheckBox.cs (2)
547onClick = Util.MergeScript(onClick, Page.ClientScript.GetPostBackEventReference(options, true)); 556Page.ClientScript.RegisterForEventValidation(this.UniqueID);
UI\WebControls\DetailsView.cs (2)
2272Page.ClientScript.RegisterForEventValidation(UniqueID, argument); 3171ClientScriptManager scriptOM = Page.ClientScript;
UI\WebControls\GridView.cs (2)
2798Page.ClientScript.RegisterForEventValidation(UniqueID, argument); 3720ClientScriptManager scriptOM = Page.ClientScript;
UI\WebControls\HiddenField.cs (1)
146Page.ClientScript.RegisterForEventValidation(uniqueID);
UI\WebControls\ImageButton.cs (2)
330page.ClientScript.RegisterForEventValidation(options); 333string postBackEventReference = page.ClientScript.GetPostBackEventReference(options, false);
UI\WebControls\ImageMap.cs (1)
218Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true));
UI\WebControls\LinkButton.cs (1)
301postBackEventReference = Page.ClientScript.GetPostBackEventReference(options, true);
UI\WebControls\ListControl.cs (2)
528onChange = Util.MergeScript(onChange, Page.ClientScript.GetPostBackEventReference(options, true)); 805Page.ClientScript.RegisterForEventValidation(UniqueID, li.Value);
UI\WebControls\Menu.cs (3)
716_cachedPopOutImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(Menu), ("Menu_Popout.gif")); 812_cachedScrollDownImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(Menu), ("Menu_ScrollDown.gif")); 859_cachedScrollUpImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(Menu), ("Menu_ScrollUp.gif"));
UI\WebControls\MenuItem.cs (1)
937_owner.Page.ClientScript.GetPostBackClientHyperlink(_owner, InternalValuePath, true, true));
UI\WebControls\MenuRendererClassic.cs (3)
117Menu.Page.ClientScript.RegisterClientScriptResource(Menu, typeof(Menu), "Menu.js"); 191Menu.Page.ClientScript.GetWebResourceUrl(typeof(Menu), "SmartNav.htm"), 197Menu.Page.ClientScript.RegisterStartupScript(Menu, GetType(),
UI\WebControls\MenuRendererStandards.cs (3)
64Menu.Page.ClientScript.RegisterClientScriptResource(Menu.Page, typeof(Menu), "MenuStandards.js"); 65Menu.Page.ClientScript.RegisterStartupScript(typeof(MenuRendererStandards), key, initScript); 334return Menu.Page.ClientScript.GetPostBackEventReference(Menu, item.InternalValuePath, true);
UI\WebControls\Panel.cs (1)
297Page.ClientScript.RegisterDefaultButtonScript(c, writer, true /* UseAddAttribute */);
UI\WebControls\RadioButton.cs (2)
201Page.ClientScript.RegisterForEventValidation(UniqueGroupName, ValueAttribute); 232onClick = Util.MergeScript(onClick, Page.ClientScript.GetPostBackEventReference(options));
UI\WebControls\RadioButtonList.cs (1)
356Page.ClientScript.RegisterForEventValidation(UniqueID);
UI\WebControls\TextBox.cs (2)
508onChange = Util.MergeScript(onChange, page.ClientScript.GetPostBackEventReference(options, true)); 530page.ClientScript.RegisterForEventValidation(this.UniqueID, String.Empty);
UI\WebControls\TreeNode.cs (6)
788_owner.Page.ClientScript.RegisterForEventValidation(_owner.UniqueID, 1187href = _owner.Page.ClientScript.GetPostBackClientHyperlink(_owner, 1200href = _owner.Page.ClientScript.GetPostBackClientHyperlink(_owner, "t" + InternalValuePath, true); 1284_owner.Page.ClientScript.GetPostBackClientHyperlink(_owner, "t" + InternalValuePath, true, true)); 1317href = _owner.Page.ClientScript.GetPostBackClientHyperlink( 1335string href = _owner.Page.ClientScript.GetPostBackClientHyperlink(
UI\WebControls\TreeView.cs (64)
343_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Arrows_Collapse.gif"); 347_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Contacts_Collapse.gif"); 351_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_Collapse.gif"); 355_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_MSDN_Collapse.gif"); 359_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Windows_Help_Collapse.gif"); 486_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Arrows_Expand.gif"); 490_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Contacts_Expand.gif"); 494_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_Expand.gif"); 498_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_MSDN_Expand.gif"); 502_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Windows_Help_Expand.gif"); 750_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Simple_NoExpand.gif"); 754_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Simple2_NoExpand.gif"); 758_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Arrows_NoExpand.gif"); 762_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Contacts_NoExpand.gif"); 766_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_NoExpand.gif"); 770_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_MSDN_NoExpand.gif"); 774_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Windows_Help_NoExpand.gif"); 1912rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList_RootNode.gif"); 1916rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList2_RootNode.gif"); 1920rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList3_RootNode.gif"); 1924rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList4_RootNode.gif"); 1928rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_News_RootNode.gif"); 1932rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Inbox_RootNode.gif"); 1936rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Events_RootNode.gif"); 1940rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_FAQ_RootNode.gif"); 1944rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_RootNode.gif"); 1963parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList_ParentNode.gif"); 1967parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList2_ParentNode.gif"); 1971parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList3_ParentNode.gif"); 1975parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList4_ParentNode.gif"); 1979parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_News_ParentNode.gif"); 1983parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Inbox_ParentNode.gif"); 1987parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Events_ParentNode.gif"); 1991parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_FAQ_ParentNode.gif"); 1995parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_ParentNode.gif"); 2015leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList_LeafNode.gif"); 2019leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList2_LeafNode.gif"); 2023leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList3_LeafNode.gif"); 2027leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList4_LeafNode.gif"); 2031leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_News_LeafNode.gif"); 2035leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Inbox_LeafNode.gif"); 2039leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Events_LeafNode.gif"); 2043leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_FAQ_LeafNode.gif"); 2047leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_LeafNode.gif"); 2061ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_NoExpand.gif"); 2075ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_NoExpand.gif"); 2083ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Expand.gif"); 2097ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Expand.gif"); 2104ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Collapse.gif"); 2118ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Collapse.gif"); 2124ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_I.gif"); 2132ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_R.gif"); 2140ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_RExpand.gif"); 2148ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_RCollapse.gif"); 2156ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_T.gif"); 2164ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_TExpand.gif"); 2172ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_TCollapse.gif"); 2180ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_L.gif"); 2188ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_LExpand.gif"); 2196ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_LCollapse.gif"); 2204ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Dash.gif"); 2212ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_DashExpand.gif"); 2220ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_DashCollapse.gif"); 2585ClientScriptManager scriptOM = Page.ClientScript;
UI\WebControls\ValidationSummary.cs (1)
340Page.ClientScript.RegisterArrayDeclaration(arrayName, element);
UI\WebParts\CatalogPartChrome.cs (1)
189_page.ClientScript.RegisterForEventValidation(Zone.CheckBoxName);
UI\WebParts\PersonalizationProvider.cs (1)
118page.ClientScript.RegisterHiddenField(scopeFieldName, fieldValue);
UI\WebParts\WebPartManager.cs (5)
3722Page.ClientScript.RegisterStartupScript( 3729Page.ClientScript.RegisterStartupScript( 3736Page.ClientScript.RegisterStartupScript( 3854Page.ClientScript.RegisterClientScriptResource(this, typeof(WebPartManager), "WebParts.js"); 3898Page.ClientScript.RegisterStartupScript(this, typeof(WebPartManager), String.Empty, startupScript, false);
UI\WebParts\WebPartMenu.cs (2)
80_menuUser.Page.ClientScript.RegisterStartupScript((Control)_menuUser, typeof(WebPartMenu), clientID, script, false); 287_menuUser.Page.ClientScript.RegisterForEventValidation(target, eventArgument);
System.Web.DataVisualization (2)
Common\General\ImageMap.cs (2)
483writer.AddAttribute(HtmlTextWriterAttribute.Href, chart.Page.ClientScript.GetPostBackClientHyperlink(chart, this.PostBackValue)); 489writer.AddAttribute(HtmlTextWriterAttribute.Onclick, chart.Page.ClientScript.GetPostBackEventReference(chart, this.PostBackValue));
System.Web.Extensions (10)
UI\PageWrapper.cs (1)
39return new ClientScriptManagerWrapper(_page.ClientScript);
UI\ScriptRegistrationManager.cs (9)
178control.Page.ClientScript.RegisterArrayDeclaration(arrayName, arrayValue); 195control.Page.ClientScript.RegisterClientScriptBlock(type, key, script, addScriptTags); 218control.Page.ClientScript.RegisterClientScriptInclude(type, key, url); 261control.Page.ClientScript.RegisterClientScriptResource(type, resourceName); 272control.Page.ClientScript.RegisterClientScriptInclude(type, resourceName, resourceUrl, true); 341control.Page.ClientScript.RegisterExpandoAttribute(controlId, attributeName, attributeValue, encode); 363control.Page.ClientScript.RegisterHiddenField(hiddenFieldName, hiddenFieldInitialValue); 383control.Page.ClientScript.RegisterOnSubmitStatement(type, key, script); 406control.Page.ClientScript.RegisterStartupScript(type, key, script, addScriptTags);