# 07 Ağustos 2003 Perşembe

Note: This is a very old piece of work and I'm not maintaining it anymore.

Introduction

Three custom controls, a button, an image button and a hyperlink which opens a new window with given attributes when clicked.

Supported properties:

  • Left: Gets or sets the left position of the new window.
  • Location: Specifies whether to display the input field for entering URLs directly into the new browser.
  • MenuBar: Specifies whether to display the menu bar.
  • Resizable: Specifies whether to display resize handles at the corners of the new window.
  • ScrollBars: Specifies whether to display horizontal and vertical scroll bars.
  • Status: Specifies whether to add a status bar at the bottom of the window.
  • ToolBar: Specifies whether to display the browser toolbar, making buttons such as Back, Forward, and Stop available.
  • Top: Gets or sets the top position of the new window.
  • WindowHeight: Specifies the height of the new window.
  • WindowName: Specifies the window name to refer to the new window programmatically.
  • WindowWidth: Specifies the width of the new window.
  • Plus the properties derived from the respective parent control.

 Controls supports design-time use. You may want to add them to your toolbox:

  1. On the Tools menu, click Customize Toolbox.
  2. On the .NET Framework Components tab of the Customize ToolBox dialog box, click the Browse button. Find Altinoren.HTMLControls.BrowserWindow.dll, select it, and click Open to add BWButton, BWHyperLink and BWImageButton  to the list of components in the Customize Toolbox dialog box.
  3. Select BrowserWindowBWButton, BWHyperLink and BWImageButton in the list of .NET Framework components and click OK. Three new controls are added to the Toolbox.

You may also use the controls directly from your "\Bin" folder, without adding them to your toolbox. See the demo page.

Licence

The component and source is provided "as is" and there are neither warranties to the quality of the work nor any expressed or implied agreements that the programmer will release any updates. The programmer will release updates and provide any support at his own discretion.

Download

v2.0

  • New: BrowserWindow now includes a Button, an ImageButton and a HyperLink control.

Credits

Original idea: RemoteWindow from MetaBuilders. I modified Andy's code but the original idea worth 99% of the control. While there, be sure to check his other controls.

posted on 07 Ağustos 2003 Perşembe 22:27:25 UTC  #   
# 08 Aralık 2002 Pazar

Introduction

This is a button control that hides or shows other controls on the page when clicked. An alternative text for the button is shown when it hides another control, allowing to toggle between two states.

All the action is handled on the client, there's no need to do a roundtrip to the server. This is useful when you want show a selectably advanced interface to the user, like showing advanced search features with a button click (web 2.0 nowadays? :)

Supported properties:

  • AlternativeText: Alternative text to be displayed on the button when in Hidden state.
  • ControlToShowHide: The name of the control to show or hide.
  • InitialState: Starting state of the control that the button handles. Visible or Hidden.
  • PersistState: Whether the last state at the client will be persisted after a postback.
  • Plus properties derived from the Button control.

The control supports design-time use. You may want to add it to your toolbox:

  1. On the Tools menu, click Customize Toolbox.
  2. On the .NET Framework Components tab of the Customize ToolBox dialog box, click the Browse button. Find Altinoren.HTMLControls.ShowHideButton.dll, select it, and click Open to add ShowHideButton to the list of components in the Customize Toolbox dialog box.
  3. Select ShowHideButton in the list of .NET Framework components and click OK. ShowHideButton is added to the Toolbox.

You may use the control directly from your "\Bin" folder. See ShowHideButton.aspx included in the .zip file.

Works on IE5+ and NS7. Ignores click on Opera 6.05.

Note: Since the control prevents postback, setting CommandName and CommandArgument does nothing.

To Do:

  • Include a LinkButton and an ImageButton with the same capability.

Licence

The component and source is provided "as is" and there are neither warranties to the quality of the work nor any expressed or implied agreements that the programmer will release any updates. The programmer will release updates and provide any support at his own discretion.

Download

v1.0

  • Feature: The control can persist the latest state at the client after a postback. Check PersistState property.

v0.9.1

  • BugFix: Solved a minor issue on toolbox icon.

v0.9

  • Feature: Now supports NS7.

v0.8.5

  • BugFix: The dropdown to select ControlToShowHide in Properties window works properly when used in a user control.
  • BugFix: Does not show self among the available choices in ControlToShowHide dropdown.
  • Temporary Hack: Does not do a postback on NS and Opera browsers.
  • Temporary Hack: Works when there's a validator control on the page.
posted on 08 Aralık 2002 Pazar 00:04:32 UTC  #