5 // Igor Zelmanovich <igorz@mainsoft.com>
7 // (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
10 // Permission is hereby granted, free of charge, to any person obtaining
11 // a copy of this software and associated documentation files (the
12 // "Software"), to deal in the Software without restriction, including
13 // without limitation the rights to use, copy, modify, merge, publish,
14 // distribute, sublicense, and/or sell copies of the Software, and to
15 // permit persons to whom the Software is furnished to do so, subject to
16 // the following conditions:
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System.Collections.Generic;
33 using System.ComponentModel;
34 using System.Security.Permissions;
35 using System.Collections.Specialized;
37 namespace System.Web.UI
39 [ParseChildrenAttribute (true)]
40 [DefaultPropertyAttribute ("Scripts")]
41 [DesignerAttribute ("System.Web.UI.Design.ScriptManagerDesigner, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
42 [NonVisualControlAttribute]
43 [PersistChildrenAttribute (false)]
44 [AspNetHostingPermissionAttribute (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
45 [AspNetHostingPermissionAttribute (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
46 public class ScriptManager : Control, IPostBackDataHandler
49 [Category ("Behavior")]
50 public bool AllowCustomErrorsRedirect {
52 throw new NotImplementedException ();
55 throw new NotImplementedException ();
59 [Category ("Behavior")]
61 public string AsyncPostBackErrorMessage {
63 throw new NotImplementedException ();
66 throw new NotImplementedException ();
71 public string AsyncPostBackSourceElementID {
73 throw new NotImplementedException ();
78 [Category ("Behavior")]
79 public int AsyncPostBackTimeout {
81 throw new NotImplementedException ();
84 throw new NotImplementedException ();
88 [Category ("Behavior")]
89 [MergableProperty (false)]
91 [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
92 [PersistenceMode (PersistenceMode.InnerProperty)]
93 public AuthenticationServiceManager AuthenticationService {
95 throw new NotImplementedException ();
99 [Category ("Behavior")]
100 [DefaultValue (false)]
101 public bool EnablePageMethods {
103 throw new NotImplementedException ();
106 throw new NotImplementedException ();
110 [DefaultValue (true)]
111 [Category ("Behavior")]
112 public bool EnablePartialRendering {
114 throw new NotImplementedException ();
117 throw new NotImplementedException ();
121 [DefaultValue (false)]
122 [Category ("Behavior")]
123 public bool EnableScriptGlobalization {
125 throw new NotImplementedException ();
128 throw new NotImplementedException ();
132 [Category ("Behavior")]
133 [DefaultValue (false)]
134 public bool EnableScriptLocalization {
136 throw new NotImplementedException ();
139 throw new NotImplementedException ();
144 public bool IsDebuggingEnabled {
146 throw new NotImplementedException ();
151 public bool IsInAsyncPostBack {
153 throw new NotImplementedException ();
157 [Category ("Behavior")]
158 [DefaultValue (true)]
159 public bool LoadScriptsBeforeUI {
161 throw new NotImplementedException ();
164 throw new NotImplementedException ();
168 [PersistenceMode (PersistenceMode.InnerProperty)]
170 [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]
171 [Category ("Behavior")]
172 [MergableProperty (false)]
173 public ProfileServiceManager ProfileService {
175 throw new NotImplementedException ();
179 [Category ("Behavior")]
180 public ScriptMode ScriptMode {
182 throw new NotImplementedException ();
185 throw new NotImplementedException ();
190 [Category ("Behavior")]
191 public string ScriptPath {
193 throw new NotImplementedException ();
196 throw new NotImplementedException ();
199 [PersistenceMode (PersistenceMode.InnerProperty)]
201 [Category ("Behavior")]
202 [MergableProperty (false)]
203 public ScriptReferenceCollection Scripts {
205 throw new NotImplementedException ();
209 [PersistenceMode (PersistenceMode.InnerProperty)]
211 [MergableProperty (false)]
212 [Category ("Behavior")]
213 public ServiceReferenceCollection Services {
215 throw new NotImplementedException ();
219 [DefaultValue (true)]
221 public bool SupportsPartialRendering {
223 throw new NotImplementedException ();
226 throw new NotImplementedException ();
230 [EditorBrowsable (EditorBrowsableState.Never)]
232 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
233 public override bool Visible {
238 throw new NotImplementedException ();
242 [Category ("Action")]
243 public event EventHandler<AsyncPostBackErrorEventArgs> AsyncPostBackError;
245 [Category ("Action")]
246 public event EventHandler<ScriptReferenceEventArgs> ResolveScriptReference;
248 public static ScriptManager GetCurrent (Page page)
250 throw new NotImplementedException ();
253 protected virtual bool LoadPostData (string postDataKey, NameValueCollection postCollection)
255 throw new NotImplementedException ();
258 protected internal virtual void OnAsyncPostBackError (AsyncPostBackErrorEventArgs e)
260 if (AsyncPostBackError != null)
261 AsyncPostBackError (this, e);
264 protected override void OnInit (EventArgs e)
269 protected override void OnPreRender (EventArgs e)
271 base.OnPreRender (e);
274 protected virtual void OnResolveScriptReference (ScriptReferenceEventArgs e)
276 if (ResolveScriptReference != null)
277 ResolveScriptReference (this, e);
280 protected virtual void RaisePostDataChangedEvent ()
282 throw new NotImplementedException ();
285 public static void RegisterArrayDeclaration (Control control, string arrayName, string arrayValue)
287 throw new NotImplementedException ();
290 public static void RegisterArrayDeclaration (Page page, string arrayName, string arrayValue)
292 throw new NotImplementedException ();
295 public void RegisterAsyncPostBackControl (Control control)
297 throw new NotImplementedException ();
300 public static void RegisterClientScriptBlock (Control control, Type type, string key, string script, bool addScriptTags)
302 throw new NotImplementedException ();
305 public static void RegisterClientScriptBlock (Page page, Type type, string key, string script, bool addScriptTags)
307 throw new NotImplementedException ();
310 public static void RegisterClientScriptInclude (Control control, Type type, string key, string url)
312 throw new NotImplementedException ();
315 public static void RegisterClientScriptInclude (Page page, Type type, string key, string url)
317 throw new NotImplementedException ();
320 public static void RegisterClientScriptResource (Control control, Type type, string resourceName)
322 throw new NotImplementedException ();
325 public static void RegisterClientScriptResource (Page page, Type type, string resourceName)
327 throw new NotImplementedException ();
330 public void RegisterDataItem (Control control, string dataItem)
332 throw new NotImplementedException ();
335 public void RegisterDataItem (Control control, string dataItem, bool isJsonSerialized)
337 throw new NotImplementedException ();
340 public void RegisterDispose (Control control, string disposeScript)
342 throw new NotImplementedException ();
345 public static void RegisterExpandoAttribute (Control control, string controlId, string attributeName, string attributeValue, bool encode)
347 throw new NotImplementedException ();
350 public static void RegisterHiddenField (Control control, string hiddenFieldName, string hiddenFieldInitialValue)
352 throw new NotImplementedException ();
355 public static void RegisterHiddenField (Page page, string hiddenFieldName, string hiddenFieldInitialValue)
357 throw new NotImplementedException ();
360 public static void RegisterOnSubmitStatement (Control control, Type type, string key, string script)
362 throw new NotImplementedException ();
365 public static void RegisterOnSubmitStatement (Page page, Type type, string key, string script)
367 throw new NotImplementedException ();
370 public void RegisterPostBackControl (Control control)
372 throw new NotImplementedException ();
375 public void RegisterScriptDescriptors (IExtenderControl extenderControl)
377 throw new NotImplementedException ();
380 public void RegisterScriptDescriptors (IScriptControl scriptControl)
382 throw new NotImplementedException ();
385 public static void RegisterStartupScript (Control control, Type type, string key, string script, bool addScriptTags)
387 throw new NotImplementedException ();
390 public static void RegisterStartupScript (Page page, Type type, string key, string script, bool addScriptTags)
392 throw new NotImplementedException ();
395 protected override void Render (HtmlTextWriter writer)
397 throw new NotImplementedException ();
400 public void SetFocus (Control control)
402 throw new NotImplementedException ();
405 public void SetFocus (string clientID)
407 throw new NotImplementedException ();
410 #region IPostBackDataHandler Members
412 bool IPostBackDataHandler.LoadPostData (string postDataKey, NameValueCollection postCollection)
414 return LoadPostData (postDataKey, postCollection);
417 void IPostBackDataHandler.RaisePostDataChangedEvent ()
419 RaisePostDataChangedEvent ();