1 2006-11-27 Igor Zelmanovich <igorz@mainsoft.com>
3 * HtmlForm.cs: refactoring: Registering of client scripts
6 2006-11-17 Marek Habersack <grendello@gmail.com>
8 * HtmlInputHidden.cs: Added support for event validation.
10 * HtmlInputCheckBox.cs: Added support for event validation.
12 * HtmlInputImage.cs: Added support for event validation.
14 * HtmlInputButton.cs: Added support for event validation.
16 * HtmlSelect.cs: Added support for event validation.
18 * HtmlTextArea.cs: Added support for event validation.
20 * HtmlButton.cs: Added support for event validation.
22 * HtmlInputRadioButton.cs: Added support for event validation.
24 * HtmlInputText.cs: Added support for event validation.
26 2006-11-13 Igor Zelmanovich <igorz@mainsoft.com>
28 * HtmlContainerControl.cs: fixed: InnerHtml property
30 2006-09-18 Igor Zelmanovich <igorz@mainsoft.com>
33 HtmlTitle control is created if it was not declared in .aspx
35 2006-09-17 Igor Zelmanovich <igorz@mainsoft.com>
38 make rendering of the onclick attribute to consider ValidationGroup property
40 2006-09-17 Igor Zelmanovich <igorz@mainsoft.com>
43 make rendering of the onclick attribute to consider ValidationGroup property
45 2006-09-17 Igor Zelmanovich <igorz@mainsoft.com>
48 make rendering of the onclick attribute to consider ValidationGroup property
50 2006-09-17 Igor Zelmanovich <igorz@mainsoft.com>
53 implemented CausesValidation and ValidationGroup properties
55 2006-09-10 Vladimir Krasnov <vladimirk@mainsoft.com>
57 * HtmlInputFile.cs: fixed Value property
59 2006-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
61 * HtmlTextArea.cs: encode the value in 1.x too. Patch by Dean Brettle.
63 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
66 * HtmlTableRow.cs: fixed ParseChildren attribute to be compliant
69 2006-07-12 Andrew Skiba <andrews@mainsoft.com>
71 * HtmlInputControl.cs: remove obsolete #if NET_2_0
73 2006-06-06 Juraj Skripsky <js@hotfeet.ch>
75 * HtmlForm.cs (RenderAttributes): Sync with changes to HttpRequest.
78 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
80 * HtmlTextArea.cs: Value is HtmlEncoded/Decoded in 2.0. Fixes
83 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
85 * HtmlInputRadioButton.cs: Value returns the ID only when there's no
86 "value" set. Fixes bug #78101.
88 2006-03-19 Vladimir Krasnov <vladimirk@mainsoft.com>
90 * HtmlAnchor.cs: fixed RenderAttributes, if target attribute is empty
91 it shouldn't be rendered
92 * HtmlForm.cs: fixed Method, default method "post" should be added if
93 its value null or empty string
94 * HtmlInputImage.cs: fixed SetAtt, it removes attributes if it has null
95 value, the fix is to remove attributes with empty string value too
97 2006-02-23 Chris Toshok <toshok@ximian.com>
99 * HtmlButton.cs: fix corcompare output.
101 * HtmlInputButton.cs: same.
103 * HtmlInputImage.cs: same.
105 * HtmlInputReset.cs: same.
107 2006-01-22 Chris Toshok <toshok@ximian.com>
109 * HtmlInputButton.cs:
110 s/GetPostBackClientEvent/GetPostBackEventReference.
112 2005-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
114 * HtmlTableRow.cs: Cells is virtual in latest 1.1.
116 2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
118 * HtmlTableRow.cs: fixed the same problem in bug #76815 but this time
120 * HtmlTable.cs: moved WriteLine around.
122 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
124 * HtmlForm.cs: more class-status fixes.
126 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
128 * HtmlTextArea.cs: 'Name' is the UniqueID. Fixes bug #76802.
130 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
132 * HtmlTable.cs: use the base class RenderChildren, as '_rows'
133 might not be the actual collection being used. Fixes bug #76815.
135 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
137 * HtmlInputFile.cs: if no one else set the encoding type for the
138 containing form and there's a HtmlInputFile, set Enctype to
139 'multipart/form-data'. Fixes bug #76837.
141 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
143 * HtmlInputButton.cs: render the onclick attribute only when the
144 button is a 'submit' and no validators or when the button is a
145 'button' and there's a registered ServerClick event. Fixes bug #76781.
147 2005-09-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
149 * HtmlForm.cs: register the form and require viewstate hidden field to
150 be rendered in Render() even if OnInit is not called.
152 2005-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
154 * HtmlHead.cs: fix the 2.0 build.
156 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
158 * HtmlForm.cs: when transfering from one page to another and using
159 cookieless session, we were doing pretty bad. Now, if the current path
160 and the original are the same, we just use the filename. Otherwise
161 we make the action location be relative to the original URL.
163 2005-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
165 * HtmlInputButton.cs: render the onclick for doing a postback even when
166 there are no validators.
168 2005-09-19 Sebastien Pouliot <sebastien@ximian.com>
170 * HtmlInputPassword.cs: Removed ctor(string) as it's not in 2.0 RC.
172 2005-09-19 Sebastien Pouliot <sebastien@ximian.com>
174 * HtmlAnchor.cs: Added [SupportsEventValidation] on class and
175 [UrlProperty] on HRef property for 2.0.
176 * HtmlButton.cs: Added [SupportsEventValidation] for 2.0.
177 * HtmlHead.cs: Remove IPageHeader interface.
178 * HtmlImage.cs: Added [UrlProperty] on Src property for 2.0.
179 * HtmlInputButton.cs: Added [SupportsEventValidation] for 2.0.
180 * HtmlInputCheckBox.cs: Added [SupportsEventValidation] for 2.0.
181 * HtmlInputHidden.cs: Added [SupportsEventValidation] for 2.0.
182 * HtmlInputImage.cs: Added [SupportsEventValidation] on class and
183 [UrlProperty] on Src property for 2.0.
184 * HtmlInputPassword.cs: Added [SupportsEventValidation].
185 * HtmlInputRadioButton.cs: Added [SupportsEventValidation] for 2.0.
186 * HtmlInputReset.cs: Added [SupportsEventValidation].
187 * HtmlInputSubmit.cs: Added [SupportsEventValidation].
188 * HtmlInputText.cs: Added [SupportsEventValidation] on class and
189 re-enabled RenderAttribute for 2.0.
190 * HtmlLink.cs: Added [UrlProperty] on HRef property for 2.0.
191 * HtmlSelect.cs: Added [SupportsEventValidation] for 2.0.
192 * HtmlTextArea.cs: Added [SupportsEventValidation] for 2.0.
194 2005-09-18 Chris Toshok <toshok@ximian.com>
196 * HtmlButton.cs (RenderAttribute): make sure to use WriteAttribute
197 instead of AddAttribute when dealing with "onclick."
199 2005-09-14 Sebastien Pouliot <sebastien@ximian.com>
201 * HtmlHead.cs: Fixed parameter orders for CreateStyleRule.
203 2005-09-11 Chris Toshok <toshok@ximian.com>
205 * HtmlInputFile.cs (set_Value): add a message to the
206 NotSupportedException.
208 * HtmlInputControl.cs (RenderAttributes): add Page != null to the
209 checks before we register our control with the
210 __enabledControlArray JS array.
212 2005-09-09 Chris Toshok <toshok@ximian.com>
214 * HtmlInputButton.cs (CausesValidation): this is stored in
215 Attributes, not ViewState.
216 (ValidationGroup): same.
217 (RenderAttributes): remove CausesValidation from the list of
218 Attributes before calling base.RenderAttributes. Don't, however,
219 remove ValidationGroup, to replicate an MS bug.
221 2005-09-07 Chris Toshok <toshok@ximian.com>
223 * HtmlForm.cs (DefaultFocus): not stored in Attributes either.
224 (Name): not sure about this property.. the getter apparently just
225 returns UniqueID, and the setter does nothing that I can figure
227 (RenderAttributes): don't bother to remove "name", since it's not
228 in the attributes anyway.
230 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
232 * HtmlInputControl.cs: use the Name property instead of the ClientID.
233 The 'name' attribute rendered contains colons if inside a
236 2005-09-07 Chris Toshok <toshok@ximian.com>
238 * HtmlInputCheckBox.cs (Checked): uncomment the
239 MinimizableAttributeTypeConverter attribute.
241 * HtmlControl.cs (Disabled): uncomment the
242 MinimizableAttributeTypeConverter attribute.
244 * HtmlForm.cs (SubmitDisabledControls): remove the MonoTODO.
246 * HtmlTableCell.cs (NoWrap): uncomment the
247 MinimizableAttributeTypeConverter attribute.
249 * HtmlLink.cs (Href): remove the MonoTODO.
251 * HtmlMeta.cs (Name): remove the MonoTODO.
253 (Render): add (pretty bogus, really..) implementation. not sure
254 why we need this one.
256 2005-09-06 Chris Toshok <toshok@ximian.com>
258 * HtmlInputControl.cs (RenderAttributes): Check Page.Form for
261 2005-09-06 Chris Toshok <toshok@ximian.com>
263 * HtmlInputControl.cs (RenderAttributes): use ClientID instead of
266 2005-09-06 Chris Toshok <toshok@ximian.com>
268 * HtmlHead.cs (AddParsedSubObject): nuke, not in corcompare.
269 (AddedControl): move the HtmlTitle logic here.
270 (RemovedControl): clear out the title if that was the control that
273 * HtmlLink.cs: new implementation.
275 * HtmlMeta.cs: new implementation.
277 2005-09-06 Chris Toshok <toshok@ximian.com>
279 * HtmlInputControl.cs (RenderAttributes): add ourselves to the
280 __enabledControlArray JS array if we're currently enabled and the
281 form is set to SubmitDisabledControls.
283 * HtmlForm.cs (OnInit): call Page.RegisterForm here.
284 (DetermineRenderUplevel): split this out of OnPreRender and make
285 it internal so HtmlInputControl can call it.
286 (OnPreRender): add handling for SubmitDisabledControls.
288 2005-09-05 Chris Toshok <toshok@ximian.com>
290 * HtmlForm.cs (DefaultButton): this isn't stored as an Attribute,
291 or in the ViewState. where then?
292 (DefaultFocus): this one is stored in the ViewState, not as an
294 (SubmitDisabledControls): implement just as a boolean flag, not in
295 the viewstate or attributes.
296 (RenderAttributes): defaultfocus and defaultbutton are no longer
299 2005-09-04 Chris Toshok <toshok@ximian.com>
301 * HtmlInputButton: Fix the 2.0/1.0 postback stuff the right way.
303 * HtmlInputCheckBox: Fix the 2.0/1.0 postback stuff the right way.
305 * HtmlInputFile.cs: Fix the 2.0/1.0 postback stuff the right way.
307 * HtmlInputHidden.cs: Fix the 2.0/1.0 postback stuff the right
308 way, and in OnPreRender, call Page.RegisterRequiresPostback.
310 * HtmlInputImage.cs: Fix the 2.0/1.0 postback stuff the right way,
311 and in OnPreRender, call Page.RegisterRequiresPostback.
313 * HtmlInputRadioButton.cs (OnPreRender): call
314 Page.RegisterRequiresPostback.
316 * HtmlInputText.cs: Fix the 2.0/1.0 postback stuff the right way.
317 Also, in OnPreRender, call Page.RegisterRequiresPostback.
319 * HtmlTextArea.cs (OnPreRender): call
320 Page.RegisterRequiresPostback.
322 2005-09-02 Chris Toshok <toshok@ximian.com>
324 * HtmlSelect.cs: implement 2.0 DataSourceID data binding.
326 2005-09-02 Chris Toshok <toshok@ximian.com>
328 * HtmlInputReset.cs (ValidationGroup): remove the MonoTODO.
330 * htmlinputimage.cs: implement the 2.0 versions of loadpostdata,
331 raisepostdatachangedevent, and raisepostbackevent.
332 (validationgroup): implement.
334 * htmlinputcheckbox.cs: implement the 2.0 versions of loadpostdata
335 and raisepostdatachangedevent.
337 * HtmlInputHidden.cs: implement the 2.0 versions of LoadPostData
338 and RaisePostDataChangedEvent.
340 * HtmlInputButton.cs (RaisePostBackEventInternal): split out the
341 body of both RaisePostBackEvent impl's here, and fix it up so we
342 use the property Page.Validate call in 2.0.
343 (RaisePostBackEvent): call RaisePostBackEventInternal.
344 (IPostBackEventHandler.RaisePostBackEvent): same.
346 * HtmlImage.cs (Align): the test case shows that we don't need to
349 2005-09-01 Sebastien Pouliot <sebastien@ximian.com>
351 * HtmlTableCell.cs, HtmlTableRowCollection.cs, HtmlInputFile.cs,
352 HtmlHead.cs, HtmlInputReset.cs, HtmlForm.cs, HtmlInputText.cs,
353 HtmlHeadBuilder.cs, HtmlInputRadioButton.cs, HtmlAnchor.cs,
354 HtmlButton.cs, HtmlTextArea.cs, HtmlGenericControl.cs,
355 HtmlTableRow.cs, HtmlSelect.cs, HtmlControl.cs, HtmlImage.cs,
356 HtmlSelectBuilder.cs, HtmlTable.cs, HtmlInputButton.cs,
357 HtmlInputImage.cs, HtmlTableCellCollection.cs, HtmlInputCheckBox.cs,
358 HtmlInputHidden.cs, HtmlTitle.cs, HtmlInputPassword.cs,
359 HtmlContainerControl.cs, HtmlInputSubmit.cs: Add missing security
360 attributes AspNetHostingPermission for Minimal level on all classes
361 (LinkDemand) and for non-sealed classes (InheritanceDemand).
363 2005-08-29 Chris Toshok <toshok@ximian.com>
365 * System.Web.UI.HtmlControls/HtmlTableCell.cs,
366 System.Web.UI.HtmlControls/HtmlInputFile.cs,
367 System.Web.UI.HtmlControls/HtmlForm.cs,
368 System.Web.UI.HtmlControls/HtmlInputText.cs,
369 System.Web.UI.HtmlControls/HtmlInputRadioButton.cs,
370 System.Web.UI.HtmlControls/HtmlAnchor.cs,
371 System.Web.UI.HtmlControls/HtmlButton.cs,
372 System.Web.UI.HtmlControls/HtmlTextArea.cs,
373 System.Web.UI.HtmlControls/HtmlGenericControl.cs,
374 System.Web.UI.HtmlControls/HtmlSelect.cs,
375 System.Web.UI.HtmlControls/HtmlTableRow.cs,
376 System.Web.UI.HtmlControls/HtmlControl.cs,
377 System.Web.UI.HtmlControls/HtmlImage.cs,
378 System.Web.UI.HtmlControls/HtmlTable.cs,
379 System.Web.UI.HtmlControls/HtmlInputButton.cs,
380 System.Web.UI.HtmlControls/HtmlInputControl.cs,
381 System.Web.UI.HtmlControls/HtmlInputImage.cs,
382 System.Web.UI.HtmlControls/HtmlInputCheckBox.cs,
383 System.Web.UI.HtmlControls/HtmlInputHidden.cs,
384 System.Web.UI/Control.cs: Add WebSysDescription/WebCategory
387 2005-08-29 Chris Toshok <toshok@ximian.com>
389 * HtmlInputSubmit.cs: new implementation.
391 * HtmlInputReset.cs (ValidationGroup): implement
393 * HtmlInputButton.cs (ValidationGroup): implement.
395 2005-08-29 Chris Toshok <toshok@ximian.com>
397 * HtmlButton.cs: Fix some 2.0 Page/ClientScript obsolete warnings.
401 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
403 * HtmlAnchor.cs: no need for the resolvedHRef field, as it might be set
404 but not used. Call ResolveUrl when rendering the attributes instead.
406 2005-08-28 Chris Toshok <toshok@ximian.com>
408 * HtmlHeadBuilder.cs: this is public.
410 * HtmlSelectBuilder.cs: in 2.0 this is public.
412 * HtmlInputButton.cs: fix boilerplate.
414 * HtmlInputImage.cs (RaisePostBackEvent): add missing argument.
415 (IPostBackEventHandler.RaisePostBackEvent): in 2.0, call
416 Page.Validation(ValidationGroup).
418 2005-08-28 Chris Toshok <toshok@ximian.com>
420 * HtmlInputReset.cs: mostly complete implementation.
422 2005-08-28 Chris Toshok <toshok@ximian.com>
424 * HtmlInputPassword.cs: doh, make this NET_2_0 only.
426 2005-08-28 Chris Toshok <toshok@ximian.com>
428 * HtmlInputPassword.cs: implement.
430 2005-08-28 Chris Toshok <toshok@ximian.com>
432 * HtmlImage.cs: corcompare fixes.
434 * HtmlInputCheckBox.cs: same.
436 2005-08-27 Chris Toshok <toshok@ximian.com>
438 * HtmlControl.cs (GetAttribute, SetAttribute): implement.
440 2005-08-27 Chris Toshok <toshok@ximian.com>
442 * HtmlForm.cs (DefaultButton, DefaultFocus): implement properties.
443 (OnPreRender): figure out (hackishly) if we're uplevel rendering.
444 If we have a default button/focus control set, register webform.js
445 as a client script block, and emit some JS to focus the control.
446 (RenderAttributes): verify that the DefaultButton attribute points
447 to a valid IButtonControl implementing control. Also remove the
448 defaultfocus/defaultbutton attributes before calling
449 base.RenderAttributes.
451 2005-08-27 Kornél Pál <kornelpal@hotmail.com>
453 * HtmlTableCell.cs: Fixed to use Consts.
455 2005-08-26 Chris Toshok <toshok@ximian.com>
457 * HtmlButton.cs (ValidationGroup): implement.
458 (RaisePostBackEvent): gross #ifdef-iry to make sure we only have
459 one body of the actual RaisePostBackEvent code. Also, call
460 Page.Validate(ValidationGroup) in the 2.0 case.
462 2005-08-25 Miguel de Icaza <miguel@novell.com>
464 * HtmlHead.cs: Implement constructor, pass the tag.
466 2005-08-25 Sebastien Pouliot <sebastien@ximian.com>
468 * HtmlHead.cs: Fixed base class (to HtmlGenericControl).
470 2005-08-25 Chris Toshok <toshok@ximian.com>
472 * HtmlForm.cs (CreateControlCollection, OnPreRender,
473 RenderControl): implement naively, just calling base.Method.
475 2005-08-25 Chris Toshok <toshok@ximian.com>
477 * HtmlForm.cs (RenderAttributes): don't strip off the stuff after
478 the last '/' when rendering the action. Fixes comments in
481 2005-08-24 Chris Toshok <toshok@ximian.com>
483 * HtmlInputButton.cs, HtmlInputFile.cs, HtmlHead.cs,
484 HtmlInputImage.cs, HtmlForm.cs, HtmlInputCheckBox.cs,
485 HtmlInputHidden.cs, HtmlButton.cs, HtmlSelect.cs, HtmlControl.cs:
486 Add MonoTODO's for all NotImplementedException's.
488 2005-08-18 Dick Porter <dick@ximian.com>
490 * HtmlTable.cs, HtmlInputButton.cs, HtmlInputFile.cs, HtmlHead.cs,
491 HtmlInputImage.cs, HtmlForm.cs, HtmlInputText.cs,
492 HtmlInputCheckBox.cs, HtmlAnchor.cs, HtmlInputRadioButton.cs,
493 HtmlButton.cs, HtmlInputHidden.cs, HtmlTextArea.cs,
494 HtmlTableRow.cs, HtmlSelect.cs, HtmlControl.cs, HtmlTitle.cs,
495 HtmlContainerControl.cs: 2.0 API fixes and stubs and attribute fixes
497 2005-08-15 Sebastien Pouliot <sebastien@ximian.com>
499 * HtmlInputRadioButton.cs, HtmlInputText.cs, HtmlTextArea.cs: Renamed
500 Load method (bad choice) to DefaultLoadPostData.
502 2005-08-15 Sebastien Pouliot <sebastien@ximian.com>
504 * HtmlAnchor.cs: Fixed protected RaisePostBackEvent in 2.0.
505 * HtmlInputRadioButton.cs: Fixed Value property and LoadPostData
506 method. Fixed support for protected LoadPostData and
507 RaisePostDataChangedEvent in 2.0 (recursion).
508 * HtmlInputText.cs: Fixed LoadPostData. Fixed support for protected
509 LoadPostData and RaisePostDataChangedEvent in 2.0 (recursion).
510 * HtmlTextArea.cs: Fixed LoadPostData. Fixed support for protected
511 LoadPostData and RaisePostDataChangedEvent in 2.0 (recursion).
513 2005-08-15 Sebastien Pouliot <sebastien@ximian.com>
515 * HtmlTableCell.cs: Added "string" [TypeConverter] attribute to NoWrap
516 for 2.0 profile. The class seems to be internal and not (yet?)
519 2005-08-13 Sebastien Pouliot <sebastien@ximian.com>
521 * HtmlAnchor.cs: Add Localizable attribute to 2.0 profile.
522 * HtmlEmptyTagControlBuilder.cs: New. ControlBuilder required for
523 (at least) HtmlInputControl in 2.0 profile.
524 * HtmlInputControl.cs: Use a new ControlBuilder class for 2.0 profile.
525 * HtmlInputText.cs: Fix DefaultValue attribute for 2.0 profile.
527 2005-08-09 Dick Porter <dick@ximian.com>
529 * HtmlSelect.cs: Clear databindings when adding a new one; cope
530 with assorted combinations of empty text and value fields; write
531 <option> tags manually to match ms HTML output. All fix nunit
534 2005-08-08 Sebastien Pouliot <sebastien@ximian.com>
536 * HtmlInputControl.cs: Remove code to handle password (wrong place)
537 and fixed type handling for 2.0.
538 * HtmlInputText.cs: Added code to remove (only in 1.x) the value when
539 the type == password. Tests indicates that the value is present for
542 2005-08-05 Dick Porter <dick@ximian.com>
544 * HtmlSelect.cs: Fix databinding when one or other of Name and
545 Value aren't supplied (thanks to Peter for the patch); Make
546 <option> indenting match ms output.
548 2005-07-30 Ben Maurer <bmaurer@ximian.com>
550 * HtmlForm.cs: Make sure we actually put the "?" in the url
552 2005-07-29 Dick Porter <dick@ximian.com>
554 * HtmlForm.cs: Simplify the rendering code by using QueryStringRaw
555 instead of building the query string by hand
557 2005-07-27 Dick Porter <dick@ximian.com>
559 * HtmlInputCheckBox.cs: New implementation
561 2005-07-26 Peter Dennis Bartok <pbartok@novell.com>
563 * HtmlSelect.cs: Added missing attributes
565 2005-07-26 Dick Porter <dick@ximian.com>
567 * HtmlSelect.cs: New implementation
569 2005-07-26 Miguel de Icaza <miguel@novell.com>
571 * HtmlForm.cs: It is possible to have keys with no values in the
572 query string, do not try to process those on the foreach loop.
574 The question is: what should happen if I only get the key?
576 Example: file_with_a_form.aspx?a
578 2005-07-25 Peter Dennis Bartok <pbartok@novell.com>
580 * HtmlForml.cs: Implemented UniqueID (new in sp1)
581 * HtmlButton.cs, HtmlInputButton.cs, HtmlInputImage.cs: Attribute fixes
583 2005-07-24 Dick Porter <dick@ximian.com>
585 * HtmlForm.cs: Add the trailing query string to the form action;
586 fixes bug shown in Test/standalone/htmlform/qs_postback.aspx
588 2005-07-22 Dick Porter <dick@ximian.com>
590 * HtmlInputFile.cs: Add assembly attributes
592 2005-07-21 Dick Porter <dick@ximian.com>
594 * HtmlImage.cs: The src attribute needs to be a relative URL;
595 close the HTML element when rendering attributes, to match the MS
598 * HtmlForm.cs: Added assembly attributes; don't render ID twice;
599 don't render enctype and target if they are empty strings;
600 implement a Render overload to keep corcompare quiet.
602 2005-07-20 Chris Toshok <toshok@ximian.com>
604 * HtmlForm.cs (RenderAttributes): if there are submit statements,
605 we need to render those.
607 * HtmlInputImage.cs: same.
609 * HtmlInputButton.cs: hook up the client validation stuff.
611 * HtmlButton.cs: same, except a lot more complicated due to
614 2005-07-19 Dick Porter <dick@ximian.com>
616 * HtmlImage.cs: Added attributes; use Int32.Parse instead of
619 2005-07-18 Sebastien Pouliot <sebastien@ximian.com>
621 * HtmlInputControl.cs: Fix Type when using ctor(null). Now use
622 ControlID for Name (and not ID). Added ControlBuilder attribute.
623 * HtmlTable.cs: Simplify check when adding controls.
624 * HtmlTableRow.cs: Simplify check when adding controls.
626 2005-07-18 Jackson Harper <jackson@ximian.com>
628 * HtmlInputHidden.cs: Use Events Add/Remove. Add DefaultEvent
631 2005-07-15 Jackson Harper <jackson@ximian.com>
633 * HtmlInputImage.cs: Use Events Add/Remove. Remove uneeded
634 constant. Update fetching from viewstate code to use new
637 2005-07-15 Jackson Harper <jackson@ximian.com>
639 * HtmlInputButton.cs: Add DefaultEventAttribute.
641 2005-07-15 Sebastien Pouliot <sebastien@ximian.com>
643 * HtmlInputControl.cs: Removed internal property (no more required to
645 * HtmlInputRadioButton.cs: Optimized events.
646 * HtmlInputText.cs: Optimized events.
647 * HtmlTable.cs: Added CultureInfo.InvariantCulture when parsing
649 * HtmlTableCell.cs: Added CultureInfo.InvariantCulture when parsing
651 * HtmlTextArea.cs: Optimized events.
653 2005-07-15 Sebastien Pouliot <sebastien@ximian.com>
655 * HtmlAnchor.cs: Added URL resolution (doesn't get me the expected
656 result) and fixed compatibility for a weird behaviour of the HRef
657 attribute handling. Optimized events.
659 2005-07-14 Jackson Harper <jackson@ximian.com>
661 * HtmlInputButton.cs: Use Events Add/Remove. Remove Causesvalidation
662 string constant. Use new method for accessing ViewState
663 data. Don't remove value from the view state if it is the default.
665 2005-07-14 Jackson Harper <jackson@ximian.com>
667 * HtmlButton.cs: Use Events Add/Remove. Remove Causesvalidation
668 string constant. Use new method for accessing ViewState
669 data. Don't remove value from the view state if it is the default.
671 2005-07-14 Dick Porter <dick@ximian.com>
673 * HtmlInputFile.cs: New implementation
675 2005-07-14 Jackson Harper <jackson@ximian.com>
677 * HtmlInputControl.cs: Use ClientID for input controls name.
679 2005-07-14 Dick Porter <dick@ximian.com>
681 * HtmlForm.cs: New Implementation
683 2005-07-13 Sebastien Pouliot <sebastien@ximian.com>
685 * HtmlTable.cs: Added missing attributes.
686 * HtmlTableCell.cs: Added missing attributes except for ControlBuilder
687 as the builder's type isn't public.
688 * HtmlInputControl.cs: Added missing attributes.
689 * HtmlInputText.cs: Added missing attributes.
690 * HtmlInputRadioButton.cs: Added missing attributes.
691 * HtmlAnchor.cs: Added missing attributes.
692 * HtmlTextArea.cs: Added missing attributes.
693 * HtmlTableRow.cs: Added missing attributes.
695 2005-07-12 Sebastien Pouliot <sebastien@ximian.com>
697 * HtmlAnchor.cs: Added DefaultValue attributes.
698 * HtmlInputControl.cs: Added DefaultValue attributes.
699 * HtmlInputRadioButton.cs: Added DefaultValue attributes.
700 * HtmlInputText.cs: Added DefaultValue attributes. Added method
701 RenderAttributes in 1.1 profile.
702 * HtmlTable.cs: Fix DefaultValue to "".
703 * HtmlTextArea.cs: Added DefaultValue attributes.
705 2005-07-12 Sebastien Pouliot <sebastien@ximian.com>
707 * HtmlTableCell.cs: Added DefaultValue attributes.
708 * HtmlTable.cs: Added DefaultValue and ParseChildren attributes.
709 * HtmlTableRowCollection.cs: Reworked collection to share data with
711 * HtmlTableCellCollection.cs: Reworked collection to share data with
712 HtmlTableRow.Controls.
713 * HtmlTableRow.cs: Added DefaultValue and ParseChildren attributes.
715 2005-07-09 Sebastien Pouliot <sebastien@ximian.com>
717 * HtmlTableRowCollection.cs: Fixed property name to IsReadOnly.
719 2005-07-08 Sebastien Pouliot <sebastien@ximian.com>
721 * HtmlTextArea.cs: Use CultureInfo.InvariantCulture in ToString ().
723 2005-07-08 Sebastien Pouliot <sebastien@ximian.com>
725 * HtmlContainerControl.cs: Fixed removal of attribute/viewstate for
727 * HtmlTextArea.cs: New implementation.
729 2005-07-07 Jackson Harper <jackson@ximian.com>
731 * HtmlInputImage.cs: New implementation.
733 2005-07-07 Sebastien Pouliot <sebastien@ximian.com>
735 * HtmlAnchor.cs: protected RaisePostBackEvent is in 2.0 only.
736 * HtmlInputControl.cs: New implementation.
737 * HtmlInputRadioButton.cs: New implementation.
738 * HtmlInputText.cs: New implementation.
740 2005-07-07 Jackson Harper <jackson@ximian.com>
742 * HtmlInputHidden.cs: New implementation.
744 2005-07-07 Jackson Harper <jackson@ximian.com>
746 * HtmlAnchor.cs: Call base OnPreRender from override.
748 2005-07-07 Jackson Harper <jackson@ximian.com>
750 * HtmlInputButton.cs: New implementation.
752 2005-07-07 Dick Porter <dick@ximian.com>
754 * HtmlImage.cs: New implementation
756 2005-07-07 Sebastien Pouliot <sebastien@ximian.com>
758 * HtmlAnchor.cs: Fixed to remove attributes properly.
759 * HtmlTable.cs: New implementation.
760 * HtmlTableCell.cs: New implementation.
761 * HtmlTableCellCollection.cs: New implementation.
762 * HtmlTableRow.cs: New implementation.
763 * HtmlTableRowCollection.cs: New implementation.
765 2005-07-06 Jackson Harper <jackson@ximian.com>
767 * HtmlButton.cs: New implementation.
769 2005-07-06 Sebastien Pouliot <sebastien@ximian.com>
771 * HtmlAnchor.cs: New implementation.
773 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
776 * HtmlControl.cs: updates for 1.1 SP1.
778 2005-05-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
780 * HtmlInputFile.cs: fixed typo in the setter for MaxLength. Closes bug
783 2005-05-06 Lluis Sanchez Gual <lluis@novell.com>
785 * HtmlHead.cs: Fix warning.
787 2005-04-22 Lluis Sanchez Gual <lluis@novell.com>
789 * HtmlForm.cs: Use the new WriteSubmitStatements method from
792 2005-03-11 Lluis Sanchez Gual <lluis@novell.com>
794 * HtmlInputButton.cs, HtmlAnchor.cs, HtmlButton.cs: Don't use
795 Page.GetPostBackClientEvent since it is deprecated in 2.0.
797 2005-02-25 Lluis Sanchez Gual <lluis@novell.com>
799 * HtmlForm.cs: Register the form in the page, so the page knows
800 which is the main form.
802 2005-02-18 Lluis Sanchez Gual <lluis@novell.com>
804 * HtmlHead.cs: Method name fix.
806 2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
808 * HtmlForm.cs: submitStatements holds Hashtables.
810 2004-12-20 Lluis Sanchez Gual <lluis@novell.com>
812 * HtmlHead.cs: Implemented.
813 * HtmlHeadBuilder.cs: Implemented.
814 * HtmlTitle.cs: Implemented.
816 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
818 * HtmlForm.cs: MakeRelative() can be null. Thanks to Denis Gervaille.
820 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
822 * HtmlForm.cs: fixed the Action property when running a different
823 page than the one requested (Transfer). Closes bug #69318.
825 2004-11-26 Lluis Sanchez Gual <lluis@novell.com>
827 * HtmlForm.cs: Add submit statements from the new Page.ClientScript
830 2004-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
832 * HtmlForm.cs: disabled smartnavigation as we have no scripts to support
833 it and failed when the browser was IE.
835 2004-05-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
837 * HtmlForm.cs: default value for Enctype is "".
838 * HtmlInputFile.cs: if no one set the encoding type for the HtmlForm,
839 we set it to "multipart/form-data". Fixes bug #58359.
841 2004-01-15 Alon Gazit <along@mainsoft.com>
842 * HtmlForm.cs: The property name always return the value of the
845 2003-12-28 Alon Gazit <along@mainsoft.com>
846 * HtmlSelect.cs: fix typo in LoadPostData().
848 2003-12-29 Alon Gazit <along@mainsoft.com>
849 * HtmlInputButton.cs: update the implementation of RenderAttributes().
850 Change the if statement that determines if the onclick script is
853 2003-12-28 Alon Gazit <along@mainsoft.com>
854 * HtmlSelect.cs: add parentheses to if statement.
855 Currently the else statement refers to the inner if statement.
857 2003-12-28 Alon Gazit <along@mainsoft.com>
858 * HtmlSelect.cs: fix upper bound of for statement.
860 2003-12-19 Jackson Harper <jackson@ximian.com>
862 * HtmlInputFile.cs: Do not set value when loading post data.
864 2003-12-14 Alon Gazit <along@mainsoft.com>
865 * HtmlInputButton.cs: The problem was in RenderAttributes().
866 Before adding the script to the HTML, the number of Validators should
867 be checked. fixes bug #52158.
869 2003-12-07 Alon Gazit <along@mainsoft.com>
870 * HtmlTableCell.cs: fixing a typo in NoWrap property.
872 2003-12-04 Jackson Harper <jackson@ximian.com>
874 * HtmlInputRadioButton.cs: Lookup name in postadata and compare to
875 value. This is because radio button groups are created by setting
876 the name to the same value with each button, then on postback the
877 value of the name is the id of the selected radio button.
879 2003-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
881 * HtmlContainerControl.cs: encode/decode InnerText. Fixes bug #51653.
883 2003-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
885 * HtmlSelect.cs: with the new LosFormatter, we get array types right, so
886 remove the code used to workaround that.
888 2003-12-01 Jackson Harper <jackson@ximian.com>
890 * HtmlControl.cs: Fix disabled property. Patch by Alon Gazit
891 <along@mainsoft.com>.
893 2003-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
895 * HtmlSelect.cs: don't add items without data. Patch by Alon Gazit
896 <along@mainsoft.com>. Fixes bug #51377.
898 2003-11-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
900 * HtmlInputRadioButton.cs: initialize event indexer. Patch by Alon Gazit
901 <along@mainsoft.com>.
903 2003-10-29 Jackson Harper <jackson@ximian.com>
905 * HtmlControl.cs: Make disabled an attribute of the control so it
906 is rendered. This is a slightly modifed version of a patch
907 by Yaron Shkop. Fixes bug #50160.
909 2003-10-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
911 * HtmlTextArea.cs: fixed infinite recursion.
913 2003-10-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
915 * HtmlForm.cs: render the onsubmit attribute.
917 2003-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
919 * HtmlGenericControl.cs: ConstructorNeedsTag defaults to false so we
920 need to pass true here. Fixes bug #47918.
922 2003-07-17 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
924 * HtmlContainerControl.cs: Added attributes
925 * HtmlControl.cs: Added attributes
926 * HtmlInputControl.cs: Fixed public signature
927 * HtmlInputRadioButton.cs: Fixed public signature
928 * HtmlSelect.cs: Added missing attribute
929 * HtmlTable.cs: Added missing attribute
931 2003-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
933 * HtmlSelect.cs: fixed bug #44894.
935 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
938 * HtmlInputControl.cs:
939 * HtmlSelect.cs: added control builder attribute.
941 * HtmlSelectBuilder.cs: builder for HtmlSelect.
943 * HtmlControlBuilder.cs: common builder for all HtmlControls.
945 2003-01-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
947 * HtmlControl.cs: _tagName is now internal.
948 * HtmlGenericControl.cs: use the field in HtmlControl to keep the tag
951 2003-01-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
953 * System.Web.UI.HtmlControls/HtmlForm.cs: render 'action' attribute.
955 2003-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
957 * HtmlInputButton.cs: fixed bug #35677.
959 2003-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
961 * HtmlInputControl.cs: fixed bug #35673.
963 2003-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
965 * HtmlInputText.cs: fixed bug #35670.
967 2002-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
969 * HtmlSelect.cs: fixed LoadViewstate.
971 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
973 * HtmlButton.cs: make it do a POST if the button has any ServerClick
976 2002-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
980 * HtmlContainerControl.cs:
983 * HtmlGenericControl.cs:
985 * HtmlInputButton.cs:
986 * HtmlInputCheckBox.cs:
987 * HtmlInputControl.cs:
989 * HtmlInputHidden.cs:
991 * HtmlInputRadioButton.cs:
997 * HtmlTextArea.cs: added almost all missing attributes.
999 2002-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1001 * HtmlControl.cs: the attributes must use ViewState as its StateBag,
1002 if not style values are lost between postbacks.
1004 2002-07-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1008 * HtmlInputButton.cs:
1009 * HtmlInputCheckBox.cs:
1010 * HtmlInputHidden.cs:
1011 * HtmlInputImage.cs:
1013 * HtmlTextArea.cs: Initialize EventHandlerList indexer.
1015 * HtmlContainerControl.cs: almost rewritten to use a LiteralControl
1016 instead of maintaining some flags and strings. Implemented
1019 * HtmlControl.cs: fixed constructor and added ViewStateIgnoreCase.
1021 * HtmlSelect.cs: fixed TrackViewState, SaveViewState, SelectedIndices
1024 2002-07-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1026 * HtmlGenericControl.cs: fixed TagName signature and get/set.
1027 * HtmlInputImage.cs: added attribute and fixed signature of ServerClick.
1028 * HtmlInputText.cs: added attribute.
1030 2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1032 * HtmlForm.cs: don't render action attribute.
1034 2002-07-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1036 * HtmlContainerControl.cs:
1037 (CreateControlCollection): added. All containers must have a non-empty
1040 2002-06-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1042 * System.Web.UI.HtmlControls/HtmlAnchor.cs:
1043 * System.Web.UI.HtmlControls/HtmlButton.cs:
1044 * System.Web.UI.HtmlControls/HtmlControl.cs:
1045 * System.Web.UI.HtmlControls/HtmlForm.cs:
1046 * System.Web.UI.HtmlControls/HtmlGenericControl.cs:
1047 * System.Web.UI.HtmlControls/HtmlInputButton.cs:
1048 * System.Web.UI.HtmlControls/HtmlInputCheckBox.cs:
1049 * System.Web.UI.HtmlControls/HtmlInputControl.cs:
1050 * System.Web.UI.HtmlControls/HtmlInputFile.cs:
1051 * System.Web.UI.HtmlControls/HtmlInputHidden.cs:
1052 * System.Web.UI.HtmlControls/HtmlInputImage.cs:
1053 * System.Web.UI.HtmlControls/HtmlInputRadioButton.cs:
1054 * System.Web.UI.HtmlControls/HtmlInputText.cs:
1055 * System.Web.UI.HtmlControls/HtmlSelect.cs:
1056 * System.Web.UI.HtmlControls/HtmlTable.cs:
1057 * System.Web.UI.HtmlControls/HtmlTableCell.cs:
1058 * System.Web.UI.HtmlControls/HtmlTableRow.cs:
1059 * System.Web.UI.HtmlControls/HtmlTextArea.cs:
1061 Fixes based on class status page:
1063 - Add attributes (DefaultEvent, ParseChildren).
1065 - Explicitly implement some interfaces (IPostBackDataHandler
1066 and IPostBackEventHandler).
1067 - Implemented some missing methods.
1069 2002-06-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1072 (RenderChildren): use OnFormRender and OnFormPostRender.
1074 2002-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1077 (RenderAttributes): new -> override and fixes stack overflow.
1078 (RenderChildren): only 1 option can be selected at any given time
1079 except when Multiple property is true.
1080 (Multiple): the attribute value is either "true" or "false", not
1085 (AddAt): allow HtmlTableRow as children, not HtmlTableCell.
1088 (RenderEndTag): new -> override.
1091 (RenderChildren): fixed another stack overflow.
1092 (RenderEndTag): new -> override.
1095 (RenderAttributes): new -> override.
1098 2002-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1100 * HtmlInputHidden.cs: fixed constructor.
1102 * HtmlInputRadioButton.cs:
1103 (RenderAttributes): fixed stack overflow.
1106 (RenderedName): new -> override.
1108 (Value): new property.
1111 (RenderAttributes): fixed the same kind of stack overflow and make
1112 string comparison case insensitive.
1114 2002-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1116 * HtmlForm.cs: fixed name of Enctype property and render enctype
1119 * HtmlInputControl.cs: tag type is "input", not "type".
1121 2002-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1123 * HtmlControl.cs: Render contents moved to new RenderBeginTag method,
1126 * HtmlForm.cs: Render output when no IE browser.
1128 * HtmlInputButton.cs: added constructor without arguments. Xsp used it,
1129 though now it always use the other .ctor.
1131 * HtmlInputControl.cs: cosmetic changes and implemented set_Name.
1133 2002-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1135 * HtmlButton.cs: RenderAttributes is an override, not new.
1137 * HtmlContainerControl.cs: use the new Render method in HtmlControl.
1139 * HtmlControl.cs: added Render method to render the tag and its
1140 attributes. Works for container and non-containers.
1142 * HtmlImage.cs: RenderAttributes don't need to be new. Implemented
1145 2002-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1147 * HtmlContainerControl.cs: some formatting and use HttpUtility.Encode
1148 instead of Page.Server to encode InnerText.
1150 2002-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1153 (RenderAttributes): new -> override and fixed little bug that made
1154 it cause an stack overflow.
1156 * HtmlContainerControl.cs: reformatted and added tag and attributes
1159 * HtmlGenericControl.cs: removed TagName, which is already in
1163 (RenderEndTag): new -> override.
1165 2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1167 * System.Web.UI.HtmlControls/HtmlForm.cs:
1168 (RenderAttributes): changed new by override.
1169 (Name): allow setting the property.
1171 2002-05-10 Duncan Mak <duncan@ximian.com>
1173 * HtmlTableCellCollection.cs (this): Updated the indexer to return
1174 the right type, HtmlTableCell instead of HtmlTableRow.
1176 * HtmlInputImage.cs (OnServerClick): Commented out parts that
1179 * HtmlForm.cs (RenderAttributes):
1180 (RenderChildren): Commented out code that doesn't compile.
1182 2002-05-07 Duncan Mak <duncan@ximian.com>
1184 * HtmlSelect.cs (TrackViewState): Added 'new' keyword to avoid
1185 clashing with the method defined in the parent class.
1186 (OnDataBinding): Added missing casts.
1188 * HtmlForm.cs (Render): Fixed call too SetAttribute, need to cast
1189 'this' to IAttributeAccessor before calling interface method.
1190 Also renamed some calls to reflect changes in the API.
1192 * HtmlControl.cs (WriteOnClickAttribute): Made it not static and
1195 2001-09-03 Leen Toelen <toelen@hotmail.com>
1197 * HtmlAnchor.cs: Initial implementation.
1198 * HtmlTextArea.cs: Initial implementation.
1200 2001-08-22 Bob Smith <bob@thestuff.net>
1202 * HtmlContainerControl.cs: Initial implementation.
1203 * HtmlControl.cs: Initial implementation.
1204 * HtmlGenericControl.cs: Initial implementation.