1186 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier f2e90236bb 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
* list: added PageHandlerFactory.

	* System.Web/HttpApplication.cs:
	* System.Web/HttpApplicationFactory.cs:
	* System.Web/HttpRequest.cs:
	* System.Web/HttpRuntime.cs:
	* System.Web.Compilation/AspElements.cs:
	* System.Web.Compilation/AspGenerator.cs:
	* System.Web.Compilation/AspParser.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/TemplateFactory.cs: Modified file.
	* System.Web.Configuration/HttpCapabilitiesBase.cs:
	* System.Web.Hosting/SimpleWorkerRequest.cs:
	* System.Web.UI/PageHandlerFactory.cs:
	* System.Web.UI/PageParser.cs:
	* System.Web.UI/TemplateControlParser.cs: we are now able to compile
	pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.

svn path=/trunk/mcs/; revision=7880
2002-09-28 07:44:14 +00:00
Gonzalo Paniagua Javier 2e92d252d3 2002-09-25 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: implemented ObBubbleEvent.
	* Page.cs: temporary workaround to make POST work with xsp server.

svn path=/trunk/mcs/; revision=7829
2002-09-26 00:56:48 +00:00
Gonzalo Paniagua Javier 7b6b950e75 2002-09-22 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: fixed InvokeEventMethod now that Type.GetMethod does not
	return pvt methods.

svn path=/trunk/mcs/; revision=7727
2002-09-23 01:42:48 +00:00
Gonzalo Paniagua Javier 9848badf22 2002-09-11 Gonzalo Paniagua Javier <[email protected]>
* list: added new files.
	* System.Web.Compilation/AspElements.cs: added WebService directive.
	* System.Web.Compilation/WebServiceCompiler.cs: New file.
	* System.Web.UI/SimpleWebHandlerParser.cs: New file.
	* System.Web.UI/WebServiceParser.cs: New file.

svn path=/trunk/mcs/; revision=7364
2002-09-11 15:53:53 +00:00
Gonzalo Paniagua Javier f1829ef3ee Removed debugging stuff
svn path=/trunk/mcs/; revision=6890
2002-08-22 14:14:21 +00:00
Gonzalo Paniagua Javier 6a0775fc8e 2002-08-22 Gonzalo Paniagua Javier <[email protected]>
* LosFormatter.cs: almost fully implemented.

svn path=/trunk/mcs/; revision=6889
2002-08-22 14:12:14 +00:00
Gonzalo Paniagua Javier 802d88b3f7 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
* CompiledTemplateBuilder.cs: InstantiateIn is virtual.
	* EmptyControlCollection.cs: throw correct exception.
	* LosFormatter.cs: stubbed out.
	* OutputCacheLocation.cs: little fix.

svn path=/trunk/mcs/; revision=6728
2002-08-19 00:18:18 +00:00
Gonzalo Paniagua Javier 922dfc4b3d 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspElements.cs:
	* System.Web.Compilation/AspParser.cs:
	* System.Web.Compilation/AspTokenizer.cs:
	* System.Web.Compilation/ChangeLog:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/TemplateFactory.cs:
	* System.Web.UI/ApplicationFileParser.cs:
	* System.Web.UI/BaseParser.cs:
	* System.Web.UI/PageParser.cs:
	* System.Web.UI/TemplateControl.cs:
	* System.Web.UI/TemplateControlParser.cs:
	* System.Web.UI/TemplateParser.cs: first steps to move xsp into
	System.Web.

svn path=/trunk/mcs/; revision=6668
2002-08-16 05:36:06 +00:00
Gonzalo Paniagua Javier daa29c8628 2002-07-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs: request to render postback script can be
	after form started rendering.

	* System.Web.UI.WebControls/Calendar.cs: lots of fixes. Render days.
	Still left to persist selected days when changing month.

	* System.Web.UI.WebControls/Unit.cs: fixed Percentage and Pixel.

	* System.Web.UI.WebControls/WebControl.cs: a few properties are now
	using ControlStyle instead of ViewState to persist.

svn path=/trunk/mcs/; revision=6258
2002-07-30 09:34:59 +00:00
Gonzalo Paniagua Javier cd5ed858d9 2002-07-22 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: added more page events to invoke automagically if some
	methods are defined.

svn path=/trunk/mcs/; revision=6044
2002-07-23 01:17:39 +00:00
Gonzalo Paniagua Javier c204d07d8c 2002-07-22 Gonzalo Paniagua Javier <[email protected]>
* Control.cs:
	(SaveViewState): save state even when control is not visible.
	(SaveViewStateRecursive):
	(LoadViewStateRecursive): made internal.

svn path=/trunk/mcs/; revision=6017
2002-07-22 16:17:06 +00:00
Gonzalo Paniagua Javier b16f322b92 2002-07-21 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: improved event raising to allow client postback for a wider
	variety of actions (clicking an hyperlink, ...).

svn path=/trunk/mcs/; revision=5997
2002-07-22 00:27:51 +00:00
Gonzalo Paniagua Javier 9a5f21719a 2002-07-20 Gonzalo Paniagua Javier <[email protected]>
* UserControl.cs: implemented Load/SaveViewState.

svn path=/trunk/mcs/; revision=5977
2002-07-21 00:23:52 +00:00
Gonzalo Paniagua Javier 9ee5e0198a 2002-07-20 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/AttributeCollection.cs:
	(Add): handle 'style' through styleCollection.

	* System.Web.UI/CssStyleCollection.cs:
	(fillStyle): renamed to FillStyle and made it internal.

	* System.Web.UI/Page.cs:
	(GetViewStateString): fixed, broken after other recent changes.
	(ProcessPostData): allow a second try for postback data after OnLoad.
	(ProcessRequest): clear controls collection, removed call to
	UnloadRecursive.

	* System.Web.UI.HtmlControls/HtmlControl.cs: the attributes must use
	ViewState as its StateBag, if not style values are lost between
	postbacks.

	* System.Web.UI.WebControls/TextBox.cs: default for Wrap is true.
	(OnPreRender): don't save Text if there are no listeners on TextChanged.

svn path=/trunk/mcs/; revision=5954
2002-07-20 07:07:39 +00:00
Gonzalo Paniagua Javier bb699e5ad9 2002-07-19 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Control.cs: uncommented Dispose.

	* System.Web.UI/Page.cs:
	(DeterminePostBackMode): more checkings.
	(GetPostBackClientHyperLink): implemented.
	(GetPostBackEventReference): added some comments with the HTML that MS
	generates for that.
	(ProcessRequest): fixed processing order. The page is unloaded after
	a request and regenerated from view state on subsequents posts.

	* System.Web.UI.WebControls/DropDownList.cs:
	(ToolTip): fixed.

	* System.Web.UI.WebControls/ListItem.cs:
	(LoadViewState): fixed.

	* System.Web.UI.WebControls/ListItemCollection.cs:
	(TrackViewState): use items instead of 'this' in foreach.

	* System.Web.UI.WebControls/Style.cs:
	(LoadViewState): more checking of parameters.

	* System.Web.UI.WebControls/WebControl.cs: implemented LoadViewState
	and SaveViewState.

svn path=/trunk/mcs/; revision=5945
2002-07-19 18:55:14 +00:00
Gonzalo Paniagua Javier d2e41bdda3 2002-07-17 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: fixed related to ViewState. Added RemovedControl.

	* ControlCollection.cs: notify owner of control removal.

	* CssStyleCollection.cs: almost rewritten to make it render the style
	attribute after changes to it.

	* Page.cs: follow the guidelines in 'Control execution lifecycle'.
	Removed Xml code.

	* StateBag.cs: don't use IDictionary.GetEnumerator on the
	HybridDictionary: it makes the program give an InvalidCastException at
	runtime. Why?

svn path=/trunk/mcs/; revision=5863
2002-07-17 16:07:33 +00:00
Gonzalo Paniagua Javier c429415731 2002-07-16 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: fire Init and Load events for all children.

svn path=/trunk/mcs/; revision=5820
2002-07-16 04:02:01 +00:00
Gonzalo Paniagua Javier 235993771c Crap, forgot to compile it. Fixed compilation
svn path=/trunk/mcs/; revision=5802
2002-07-15 00:56:02 +00:00
Gonzalo Paniagua Javier fce3e84773 2002-07-14 Gonzalo Paniagua Javier <[email protected]>
* UserControl.cs: New file.

svn path=/trunk/mcs/; revision=5800
2002-07-15 00:46:35 +00:00
Gonzalo Paniagua Javier f91038300e Fixed compilation.
svn path=/trunk/mcs/; revision=5784
2002-07-13 22:32:37 +00:00
Gonzalo Paniagua Javier 86c2d39c6a 2002-07-13 Gonzalo Paniagua Javier <[email protected]>
* ControlBuilderAttribute.cs: finished implementation.

svn path=/trunk/mcs/; revision=5768
2002-07-13 18:06:04 +00:00
Gonzalo Paniagua Javier 91930711e8 2002-07-12 Gonzalo Paniagua Javier <[email protected]>
* list: added some more files from System.Web.Hosting.

	* System.Web.UI/ConstructorNeedsTagAttribute.cs: the default
	constructor sets the property to false.

	* System.Web.UI.HtmlControls/HtmlGenericControl.cs: fixed TagName
	signature and get/set.

	* System.Web.UI.HtmlControls/HtmlInputImage.cs: added attribute and
	fixed signature of ServerClick.

	* System.Web.UI.HtmlControls/HtmlInputText.cs: added attribute.

	* System.Web.UI.WebControls/AdRotator.cs:
	* System.Web.UI.WebControls/Button.cs:
	* System.Web.UI.WebControls/Calendar.cs:
	* System.Web.UI.WebControls/CheckBox.cs:
	* System.Web.UI.WebControls/CheckBoxList.cs:
	* System.Web.UI.WebControls/DataList.cs:
	* System.Web.UI.WebControls/DropDownList.cs:
	* System.Web.UI.WebControls/HyperLink.cs:
	* System.Web.UI.WebControls/HyperLinkColumn.cs:
	* System.Web.UI.WebControls/Image.cs:
	* System.Web.UI.WebControls/ImageButton.cs:
	* System.Web.UI.WebControls/Label.cs:
	* System.Web.UI.WebControls/LinkButton.cs:
	* System.Web.UI.WebControls/ListBox.cs:
	* System.Web.UI.WebControls/Panel.cs:
	* System.Web.UI.WebControls/PlaceHolder.cs:
	* System.Web.UI.WebControls/RadioButton.cs:
	* System.Web.UI.WebControls/RadioButtonList.cs:
	* System.Web.UI.WebControls/Table.cs:
	* System.Web.UI.WebControls/TableRow.cs:
	* System.Web.UI.WebControls/TextBox.cs:
	* System.Web.UI.WebControls/WebControl.cs: removed attributes
	added by mistake (i used GetCustomAttributes (true), d'oh!).

	* System.Web.UI.WebControls/DataListItem.cs: implemented RenderItem.

	* System.Web.UI.WebControls/Repeater.cs: implemented CreateItem and
	InitializeItem.

svn path=/trunk/mcs/; revision=5749
2002-07-13 02:07:57 +00:00
Gonzalo Paniagua Javier 8f35dc38ed 2002-07-12 Gonzalo Paniagua Javier <[email protected]>
* System.Web.build: removed some more excludes.

	* System.Web.Hosting/AppDomainFactory.cs:
	* System.Web.Hosting/IAppDomainFactory.cs:
	* System.Web.Hosting/IISAPIRuntime.cs:
	* System.Web.Hosting/ISAPIRuntime.cs: make them compile.

	* System.Web.UI/AttributeCollection.cs: added CssStyleCollection.

	* System.Web.UI/CssStyleCollection.cs: use a StateBag instead of a
	Hashtable. Added internal .ctor.

	* System.Web.UI/DataBinding.cs: propertyType is a Type. Implemented
	Equals and GetHashCode.

	* System.Web.UI/DataBoundLiteralControl.cs:
	(LoadViewState):
	(SaveViewState): implemented.

	* System.Web.UI/Page.cs: FileDependencies is not public.

	* System.Web.UI/ParseChildrenAttribute.cs: give a value to Default.
	(GetHashCode):
	(Equals):
	(IsDefaultAttribute): implemented.

svn path=/trunk/mcs/; revision=5743
2002-07-12 19:19:55 +00:00
Gonzalo Paniagua Javier d2b127ebfa 2002-07-08 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: fixed Visible property.
	* Page.cs: fixed GetViewStateString.

svn path=/trunk/mcs/; revision=5653
2002-07-08 18:02:45 +00:00
Gonzalo Paniagua Javier 7ea0661a5b slightly changed view_state generation to allow multiple calls getting the same value.
svn path=/trunk/mcs/; revision=5606
2002-07-05 18:47:38 +00:00
Gonzalo Paniagua Javier 11d553ce61 2002-07-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs:
	(GetViewStateString): new function to give the server access to the
	generated view state string.
	(Validate): d'oh!

svn path=/trunk/mcs/; revision=5604
2002-07-05 18:12:14 +00:00
Gonzalo Paniagua Javier ba81961a6c 2002-07-05 Gonzalo Paniagua Javier <[email protected]>
* list: updated. Currently mcs cannot compile System.Web because it
	cannot find NameObjectCollectionBase.KeysCollection.

	* System.Web.build: don't display unused event nor always default value
	warnings by now.

	* System.Web.UI/Control.cs:
	(SaveViewstateRecursive): implemented.
	(SaveViewState): fixed.
	(IParserAccessor.AddParsedSubObject): don't use 'this'.

	* System.Web.UI/Page.cs: added code to save view state to an xml file.
	It's not being used right now.

	* System.Web.UI.WebControls/AdRotator.cs:
	(LoadAdFile): make the dictionary null after every iteration.

	* System.Web.UI.WebControls/LinkButton.cs:
	* System.Web.UI.WebControls/ListControl.cs:
	* System.Web.UI.WebControls/ListItem.cs: fixed warnings.

svn path=/trunk/mcs/; revision=5603
2002-07-05 14:35:29 +00:00
Gonzalo Paniagua Javier 129ad6efaa 2002-06-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpResponse.cs:
	* System.Web.SessionState/HttpSessionState.cs:
	* System.Web.UI/LiteralControl.cs:
	* System.Web.UI.HtmlControls/HtmlAnchor.cs:
	* System.Web.UI.HtmlControls/HtmlButton.cs:
	* System.Web.UI.HtmlControls/HtmlControl.cs:
	* System.Web.UI.HtmlControls/HtmlForm.cs:
	* System.Web.UI.HtmlControls/HtmlGenericControl.cs:
	* System.Web.UI.HtmlControls/HtmlInputButton.cs:
	* System.Web.UI.HtmlControls/HtmlInputCheckBox.cs:
	* System.Web.UI.HtmlControls/HtmlInputControl.cs:
	* System.Web.UI.HtmlControls/HtmlInputFile.cs:
	* System.Web.UI.HtmlControls/HtmlInputHidden.cs:
	* System.Web.UI.HtmlControls/HtmlInputImage.cs:
	* System.Web.UI.HtmlControls/HtmlInputRadioButton.cs:
	* System.Web.UI.HtmlControls/HtmlInputText.cs:
	* System.Web.UI.HtmlControls/HtmlSelect.cs:
	* System.Web.UI.HtmlControls/HtmlTable.cs:
	* System.Web.UI.HtmlControls/HtmlTableCell.cs:
	* System.Web.UI.HtmlControls/HtmlTableRow.cs:
	* System.Web.UI.HtmlControls/HtmlTextArea.cs:

	Fixes based on class status page:

		- Add attributes (DefaultEvent, ParseChildren).
		- Fix declarations.
		- Explicitly implement some interfaces (IPostBackDataHandler
		and IPostBackEventHandler).
		- Implemented some missing methods.

svn path=/trunk/mcs/; revision=5506
2002-06-30 20:44:49 +00:00
Gonzalo Paniagua Javier a524bd67b5 2002-06-29 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpContext.cs:
	(Session): return null instead of throwing an exception.

	* System.Web/HttpRequest.cs:
	(HttpMethod): return RequestType if not set.
	(GetRawContent): return QueryString if we don't have a
	HttpWorkerRequest.

	* System.Web/HttpUtility.cs: fixed Decode and Encode.

	* System.Web.UI/Control.cs: reimplemented FindControls.

	* System.Web.UI/Page.cs:
	(.ctor): set the page for this control.
	(IsPostBack): return valid value.
	(DeterminePostBackMode): finished.
	(OnFormRender): render __VIEWSTATE (uses GetTypeHashCode()).
	(ProcessPostData): implemented. Raises change and postback events.
	(ProcessRequest): changed to support reuse of the instance.
	(RegisterRequiresPostBack): implemented.

	* System.Web.UI/ValidatorCollection.cs: implemented all methods.

	* System.Web.UI.WebControls/Button.cs:
	(.ctor): fixed to render the correct tag.
	(IPostBAckEventHandler.RaisePostBackEvent): fixed.

svn path=/trunk/mcs/; revision=5499
2002-06-29 16:27:54 +00:00
Gonzalo Paniagua Javier 0b02144e55 2002-06-25 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs:
	* System.Web/HttpContext.cs: added System.Web.SessionState namespace.

	* System.Web/HttpSessionState.cs: removed. It is under
	System.Web.SessionState.

	* System.Web.UI/Control.cs:
	* System.Web.UI/Page.cs: first attemp to save view state.

	* System.Web.UI.HtmlControls/HtmlForm.cs: don't render Action.

svn path=/trunk/mcs/; revision=5455
2002-06-25 20:54:16 +00:00
Gonzalo Paniagua Javier 75426b4397 2002-06-24 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs: implemented more properties using information
	we already have in Context.
	(OnFormRender):
	(OnFormPostRender):
	(VerifyRenderingInServerForm): implemented.

	* System.Web.UI.HtmlControls/HtmlForm.cs:
	(RenderChildren): use OnFormRender and OnFormPostRender.

	* System.Web.UI.WebControls/WebControl.cs:
	(AddAttributesToRender): call Page.VerifyRenderingInServerForm. All
	WebControl derived classes should be rendered inside a HtmlForm.

svn path=/trunk/mcs/; revision=5434
2002-06-24 20:59:53 +00:00
Gonzalo Paniagua Javier 33e2f0ce33 2002-06-22 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: changed InvokeEventMethod to use a GetMethod that works with
	out runtime. Renamed Page_Init and Page_Load.

	After this, we can load a dll and render HTML in linux.

svn path=/trunk/mcs/; revision=5414
2002-06-22 15:06:08 +00:00
Gonzalo Paniagua Javier 087e90c0ff 2002-06-20 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Control.cs:
	(AddedControl): new function that is called whenever a control is
	added to a collection of controls in a container. It sets the defaults
	except for Page.

	* System.Web.UI/ControlCollection.cs: call AddedControl in Add/AddAt.

	* System.Web.UI/DataBoundLiteralControl.cs: implemented constructor,
	Text, Render, SetStaticString and SetDataBoundString.

	* System.Web.UI/Page.cs: removed SetDefaults.

	* System.Web.UI.WebControls/Repeater.cs: implemented
	CreateControlHierarchy. Fixed some event processing methods.

svn path=/trunk/mcs/; revision=5357
2002-06-20 07:59:53 +00:00
Gonzalo Paniagua Javier 865ba07b1a 2002-06-19 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/CompiledTemplateBuilder.cs: new file. Used in the
	code generated by xsp.

	* System.Web.UI/Control.cs:
	(BindingContainer): implemented.
	(EnsureChildControls): avoid stack overflow.

	* System.Web.UI/DataBinder.cs: implemented Eval and PropertyValue.

	* System.Web.UI.WebControls/Repeater.cs:
	(Controls):
	(OnDataBinding): fixed stack overflow.

	Still need more work in Repeater.cs to make it render.

svn path=/trunk/mcs/; revision=5345
2002-06-19 14:49:12 +00:00
Gonzalo Paniagua Javier 57907c2dce 2002-06-18 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/HtmlTextWriter.cs: fixed style attributes rendering
	(almost the same bug as in regular attributes).

	* System.Web.UI.WebControls/ListBox.cs: mono-stylized.
	(AddAttributesToRender): also call parent class method.

svn path=/trunk/mcs/; revision=5326
2002-06-18 11:44:39 +00:00
Gonzalo Paniagua Javier 0e138b26f1 2002-06-17 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Control.cs: implemented PreventAutoID.

	* System.Web.UI/Page.cs:
	(SetDefaults): don't set ID automatically if Control.PreventAutoID has
	been called.

	* System.Web.UI.WebControls/Style.cs: fixed IsEmpty and Width.

	* System.Web.UI.WebControls/Table.cs: mono-stylized.
	(TableRowControlCollection.AddAt): fixed.
	(AddAttributesToRender): fixed.

	* System.Web.UI.WebControls/TableCell.cs: mono-stylized.
	(.ctor): use PreventAutoID.
	(AddAttributesToRender): fixed.
	(AddParsedSubObject): fixed.

	* System.Web.UI.WebControls/TableRow.cs: mono-stylized. Added
	ParseChildren attribute.

	* System.Web.UI.WebControls/TableStyle.cs:
	(get_GridLine): fixed.

svn path=/trunk/mcs/; revision=5307
2002-06-17 11:10:08 +00:00
Gonzalo Paniagua Javier 54758e896f 2002-06-12 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs:
	(Validators): if the collection is null, create one.
	(GetPostBackEventReference 2): don't throw exception.
	(GetPostBackClientEvent): return a string with containing the method
	name, the control name and the argument.

	* System.Web.UI.WebControls/LinkButton.cs: mono-stylized.
	(AddParsedSubObject):
	(RenderControls): little fixes.

	* System.Web.UI.WebControls/WebControl.cs:
	(AddAttributesToRender): fixed usage of IEnumerator.

svn path=/trunk/mcs/; revision=5256
2002-06-12 15:45:07 +00:00
Gonzalo Paniagua Javier 04a9b1a6d3 2002-06-12 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs: SetPage is now called SetDefaults and also
	sets a default ID for controls that don't have one yet.

	* System.Web.UI.WebControls/Literal.cs: beautified.

svn path=/trunk/mcs/; revision=5252
2002-06-12 13:02:52 +00:00
Gonzalo Paniagua Javier 1c82e6f86f 2002-06-12 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs:
	(GetPostBackClient):
	(RegisterRequiresPostBack): don't throw NotImplementedException to
	keep going.
	(ProcessRequest): set the current page as the Page property for *all*
	the controls, not just the direct children of the page.

	* System.Web.UI.WebControls/Button.cs:
	(AddAttributesToRender): fixed (classic) stack overflow.

	* System.Web.UI.WebControls/CheckBox.cs: mono-stylized.
	(AutoPostBack): fixed stack overflow.
	(Render): fixed alignment issues. Also set the For attribute always
	for the label.

svn path=/trunk/mcs/; revision=5239
2002-06-12 00:17:16 +00:00
Gonzalo Paniagua Javier b79e2220a3 2002-06-11 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Caching/CacheDependency.cs: fixed a couple of typos and
	don't throw NotImplementedException in constructors.

	* System.Web.UI/Control.cs:
	(MapPathSecure): until security is implemented, return the same path
	received as argument.
	(RenderControl): call OnPreRender before rendering the control. So
	AdRotator can read its configuration file.Is there any other place
	where this should be done?

	* System.Web.UI/HtmlTextWriter.cs:
	(AddAttribute): fixed. Now it really stores attributes.
	(RenderBeginTag): fixed a couple of bugs (little ones but hard to find).

	* System.Web.UI.WebControls/AdRotator.cs: GetData does not work as it
	should, but now it returns useful data (only the first ad in the file).
	Set the NavigateUrl property in the hyperlink if available.

	* System.Web.UI.WebControls/HyperLink.cs: fixed constructor and a
	couple of stack overflows.

	* System.Web.UI.WebControls/Image.cs: added an attribute and fixed
	stack overflow.

	* System.Web.UI.WebControls/WebControl.cs:
	(RenderBeginTag): fixed.
	(TagName): don't call Enum.IsDefined twice.

svn path=/trunk/mcs/; revision=5230
2002-06-11 19:37:03 +00:00
Gonzalo Paniagua Javier 343b0a1d2b 2002-06-09 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/ControlCollection.cs:
	(AddAt): if index is -1 behave as a plain Add.

	* System.Web.UI.HtmlControls/HtmlSelect.cs:
	(RenderAttributes): new -> override and fixes stack overflow.
	(RenderChildren): only 1 option can be selected at any given time
	except when Multiple property is true.
	(Multiple): the attribute value is either "true" or "false", not
	"multiple".

	* System.Web.UI.HtmlControls/HtmlTable.cs:
	(Add):
	(AddAt): allow HtmlTableRow as children, not HtmlTableCell.

	* System.Web.UI.HtmlControls/HtmlTableCell.cs:
	(RenderEndTag): new -> override.

	* System.Web.UI.HtmlControls/HtmlTableRow.cs:
	(RenderChildren): fixed another stack overflow.
	(RenderEndTag): new -> override.

	* System.Web.UI.HtmlControls/HtmlTextArea.cs:
	(RenderAttributes): new -> override.

svn path=/trunk/mcs/; revision=5193
2002-06-09 19:28:27 +00:00
Gonzalo Paniagua Javier 99f37626e5 2002-06-06 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs: for each child control to render, assign
	Control.Page. Probably also needed in HtmlContainerControl derived
	classes.

	* System.Web.UI.HtmlControls/HtmlControl.cs: Render contents moved to
	new RenderBeginTag method, defined in MS docs.

	* System.Web.UI.HtmlControls/HtmlForm.cs: Render output when no IE
	browser.

	* System.Web.UI.HtmlControls/HtmlInputButton.cs: added constructor
	without arguments. Xsp used it, though now it always use the other
	.ctor.

	* System.Web.UI.HtmlControls/HtmlInputControl.cs: cosmetic changes and
	implemented set_Name.

svn path=/trunk/mcs/; revision=5135
2002-06-06 11:38:30 +00:00
Gonzalo Paniagua Javier 62aeab6dc1 2002-06-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/AttributeCollection.cs: don't need a Hastable. StateBag
	now works fine and takes care of the details.

	* System.Web.UI/Control.cs: added HasChildren property.

	* System.Web.UI/StateBag.cs: fixed a couple of nasty bugs.

	* System.Web.UI.HtmlControls/HtmlButton.cs: RenderAttributes is an
	override, not new.

	* System.Web.UI.HtmlControls/HtmlContainerControl.cs: use the new
	Render method in HtmlControl.

	* System.Web.UI.HtmlControls/HtmlControl.cs: added Render method to
	render the tag and its attributes. Works for container and
	non-containers.

	* System.Web.UI.HtmlControls/HtmlImage.cs: RenderAttributes don't need
	to be new. Implemented Height property.

svn path=/trunk/mcs/; revision=5130
2002-06-05 15:58:32 +00:00
Gonzalo Paniagua Javier 3165dc992d 2002-06-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web.build: added /debug flag. I wanna see line numbers in
	exceptions thrown.

	* System.Web.UI/Page.cs: run OnInit, OnLoad y PreRender before
	rendering the page. Invoke Page_Init and/or Page_Load if the user
	supplied them (though this should depend on AutoEventWireUp attribute
	of Page directive)

	* System.Web.UI.HtmlControls/HtmlContainerControl.cs: some formatting
	and use HttpUtility.Encode instead of Page.Server to encode InnerText.

svn path=/trunk/mcs/; revision=5126
2002-06-04 23:09:33 +00:00
Gonzalo Paniagua Javier f1b29831f9 2002-06-04 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Control.cs: don't throw exception in ControlID. By now,
	it returns ID.

	* System.Web.UI/Page.cs:
	(ProcessRequest): implemented.

	* System.Web.UI.HtmlControls/HtmlAnchor.cs:
	(RenderAttributes): new -> override and fixed little bug that made
	it cause an stack overflow.

	* System.Web.UI.HtmlControls/HtmlContainerControl.cs: reformatted and
	added tag and its attributes rendering.

	* System.Web.UI.HtmlControls/HtmlGenericControl.cs: removed TagName,
	which is already in HtmlControl.

	* System.Web.UI.HtmlControls/HtmlTable.cs:
	(RenderEndTag): new -> override.

svn path=/trunk/mcs/; revision=5117
2002-06-04 16:49:33 +00:00
Gonzalo Paniagua Javier 22f23b9995 2002-06-04 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: implemented Browser property.

	* System.Web.UI/Page.cs: finished stubbing out. Implemented some
	methods.

	* System.Web.SessionState/HttpSessionState.cs:
	* System.Web.SessionState/SessionStateModule.cs: new files with some
	implementation and the rest stubbed.

svn path=/trunk/mcs/; revision=5116
2002-06-04 13:27:21 +00:00
Gonzalo Paniagua Javier b90100aed8 2002-06-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpBrowserCapabilities.cs: stubbed out.

	* System.Web.Configuration/HttpCapabilitiesBase.cs: New file.

	* System.Web.Security/DefaultAuthenticationEventArgs.cs: New file.

	* System.Web.SessionState/IReadOnlySessionState.cs: New file.

	* System.Web.SessionState/IRequiresSessionState.cs: New file.

	* System.Web.SessionState/SessionStateMode.cs: New file.

	* System.Web.UI/Page.cs:
	(FileDependencies): now is public public.
	(EnableViewStateMAC): uncommented and made protected.
	(GetTypeHashCode): added method.

	* System.Web.UI.HtmlControls/HtmlForm.cs:
	(RenderAttributes): changed new by override.
	(Name): allow setting the property.

	* System.Web.UI.WebControls/WebControl.cs: added attributes
	PersistChildrenAttribute and ParseChildrenAttribute.

	* System.Web.Configuration/ChangeLog:
	* System.Web.Configuration/HttpCapabilitiesBase.cs:
	* System.Web.Security/ChangeLog:
	* System.Web.Security/DefaultAuthenticationEventArgs.cs:
	* System.Web.SessionState/ChangeLog:
	* System.Web.SessionState/IReadOnlySessionState.cs:
	* System.Web.SessionState/IRequiresSessionState.cs:
	* System.Web.SessionState/SessionStateMode.cs: new files.

	Now we are able to compile some files generated by xsp with our
	System.Web classes.

svn path=/trunk/mcs/; revision=5102
2002-06-03 20:41:49 +00:00
Duncan Mak 727a100466 2002-05-24 Duncan Mak <[email protected]>
* ListItemCollection.cs (this): Changes the visibility level of
	the indexer.

	* TemplateControl.cs (SetStringResourcePointer): Fixed typo.

svn path=/trunk/mcs/; revision=4915
2002-05-24 20:27:24 +00:00
Duncan Mak 1c3bd71d78 2002-05-24 Duncan Mak <[email protected]>
* Repeater.cs (OnItemCommand):
	(OnItemCreated):
	(OnItemDataBound): Added necessary casts.

	* StateBag.cs (Item): Changed the visibility level of the this
	[object] indexer.

svn path=/trunk/mcs/; revision=4914
2002-05-24 19:46:06 +00:00
Duncan Mak dec1cff0e6 2002-05-24 Duncan Mak <[email protected]>
* DataBinder.cs (Eval)
	(GetIndexedPropertyValue)
	(GetPropertyValue): Fixed return types.

svn path=/trunk/mcs/; revision=4909
2002-05-24 18:28:50 +00:00