diff options
| author | wei <> | 2006-09-23 00:05:08 +0000 | 
|---|---|---|
| committer | wei <> | 2006-09-23 00:05:08 +0000 | 
| commit | 0ccf3763474a18b72b6a166399fc1cf569b867f8 (patch) | |
| tree | 15d91d804c0da27fb8995726e48c0001df1f95c8 /demos/quickstart/protected | |
| parent | b6e12bedc51b56cf0f1a5930e69a4c377cd3dfe5 (diff) | |
Fixed #389 and add OnPreDispatch for TCallbackClientSide
Diffstat (limited to 'demos/quickstart/protected')
5 files changed, 112 insertions, 1 deletions
| diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page b/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page new file mode 100644 index 00000000..e8298ee1 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page @@ -0,0 +1,15 @@ +<com:TContent ID="body">
 +<!-- $Id: ActiveCheckBox.page 1405 2006-09-10 01:03:56Z wei $ -->
 +<h1 id="ActiveHyperLink">TActiveHyperLink</h1>
 +<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveHyperLink" />
 +
 +<p>
 +The active control counterpart of <a href=?page=Controls.HyperLink">THyperLink</a>
 +component. During a callback request, changes to the <tt>Text</tt>, <tt>ImageUrl</tt>,
 +<tt>NavigateUrl</tt> and <tt>Target</tt> properties on the server side will also
 +change the corresponding attributes and content on the client-side.
 +</p>
 +
 +<com:RunBar PagePath="ActiveControls.Samples.TActiveHyperLink.Home" />
 +
 +</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index eabb62c9..38fee25d 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -37,7 +37,7 @@ TActiveButton</a> control.</p>    </li>
    <li>
 -  * <a href="?page=ActiveControls.ActiveHyperLink">TActiveHyperLink</a>
 +  <a href="?page=ActiveControls.ActiveHyperLink">TActiveHyperLink</a>
    represents a hyperlink on a Web page.
    </li>
 diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page new file mode 100644 index 00000000..9a314493 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page @@ -0,0 +1,70 @@ +<com:TContent ID="body">
 +
 +<h1>TActiveHyperLink Samples</h1>
 +
 +<table class="sampletable">
 +
 +<tr><td class="samplenote">
 +A regular hyperlink:
 +</td><td class="sampleaction">
 +Welcome to
 +<com:TActiveHyperLink
 +	ID="link1"
 +	NavigateUrl="http://www.pradosoft.com/"
 +	Text="PradoSoft.com"
 +	Target="_blank" />.
 +</td>
 +<td class="sampleaction">
 +<com:TActiveButton ID="button1" Text="Change to Navigate Url" OnClick="button1_clicked" />
 +</td>
 +</tr>
 +
 +<tr><td class="samplenote">
 +A text hyperlink with css style:
 +</td><td class="sampleaction">
 +Welcome to
 +<com:TActiveHyperLink
 +	ID="link2"
 +	NavigateUrl="http://www.pradosoft.com/"
 +	Text="PradoSoft.com"
 +	Target="_blank"
 +	BackColor="silver"
 +	Font.Italic="true" />.
 +</td>
 +<td class="sampleaction">
 +<com:TActiveButton ID="button2" Text="Change to Target" OnClick="button2_clicked" />
 +</td>
 +</tr>
 +
 +<tr><td class="samplenote">
 +An image hyperlink:
 +</td><td class="sampleaction">
 +<com:TActiveHyperLink
 +	ID="link3"
 +	NavigateUrl="http://www.pradosoft.com/"
 +	ImageUrl=<%~hello_world.gif%>
 +	Text="Hello World" />.
 +</td>
 +<td class="sampleaction">
 +<com:TActiveButton ID="button3" Text="Change to Text" OnClick="button3_clicked" />
 +</td>
 +</tr>
 +
 +<tr><td class="samplenote">
 +A hyerplink with body contents as link text:
 +</td><td class="sampleaction">
 +<com:TActiveHyperLink
 +	ID="link4"
 +	NavigateUrl="http://www.pradosoft.com/"
 +	Target="_blank">
 +Body contents
 +</com:TActiveHyperLink>
 +</td>
 +<td class="sampleaction">
 +<com:TActiveButton ID="button4" Text="Change to Image" OnClick="button4_clicked" />
 +</td>
 +</tr>
 +
 +</table>
 +<com:TJavascriptLogger />
 +</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php new file mode 100644 index 00000000..c125d902 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php @@ -0,0 +1,26 @@ +<?php
 +
 +class Home extends TPage
 +{
 +	function button1_clicked($sender, $param)
 +	{
 +		$this->link1->NavigateUrl = 'http://www.google.com';
 +	}
 +
 +	function button2_clicked($sender, $param)
 +	{
 +		$this->link2->Target = '_self';
 +	}
 +
 +	function button3_clicked($sender, $param)
 +	{
 +		$this->link3->Text = 'PradoSoft.com';
 +	}
 +
 +	function button4_clicked($sender, $param)
 +	{
 +		$img = $this->publishFilePath(dirname(__FILE__).'/hello_world.gif');
 +		$this->link4->ImageUrl = $img;
 +	}
 +}
 +?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gifBinary files differ new file mode 100644 index 00000000..bc81443c --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif | 
