summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes6
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/ActiveImage.page16
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Home.page2
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html8
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page20
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php17
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gifbin0 -> 1602 bytes
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gifbin0 -> 662 bytes
8 files changed, 68 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes
index 5648a82a..d6f48a47 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1275,6 +1275,7 @@ demos/quickstart/protected/pages/ActiveControls/ActiveButton.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveCheckBox.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveCustomValidator.page -text
demos/quickstart/protected/pages/ActiveControls/ActiveHyperLink.page -text
+demos/quickstart/protected/pages/ActiveControls/ActiveImage.page -text
demos/quickstart/protected/pages/ActiveControls/ActivePager.page -text
demos/quickstart/protected/pages/ActiveControls/AutoComplete.page -text
demos/quickstart/protected/pages/ActiveControls/DragDrop.page -text
@@ -1293,6 +1294,11 @@ demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/H
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/Home.php -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActiveHyperLink/hello_world.gif -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif -text
+demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif -text
demos/quickstart/protected/pages/ActiveControls/Samples/TActivePager/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TAutoComplete/Home.page -text
demos/quickstart/protected/pages/ActiveControls/Samples/TAutoComplete/Home.php -text
diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page
new file mode 100644
index 00000000..8cce8c9e
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/ActiveImage.page
@@ -0,0 +1,16 @@
+<com:TContent ID="body" >
+
+<h1>TActiveImage</h1>
+<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveImage" />
+
+<p class="block-content">
+<tt>TActiveImage</tt> is the active control counter part to <tt>TImage</tt>. <tt>TActiveImage</tt> displays an image on a page. The image is specified via the <tt>ImageUrl</tt> property which takes a relative or absolute URL to the image file. The alignment of the image displayed is set by the <tt>ImageAlign</tt> property. To set alternate text or long description of the image, use <tt>AlternateText</tt> or <tt>DescriptionUrl</tt>, respectively.
+</p>
+
+<p class="block-content">
+TActiveImage allows the <tt>AlternateText</tt>, <tt>ImageAlign</tt>, <tt>ImageUrl</tt>
+and <tt>DescriptionUrl</tt> to be updated during a callback request.
+</p>
+<com:RunBar PagePath="ActiveControls.Samples.TActiveImage.Home" />
+
+<div class="last-modified">$Id$</div></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 62d79cb8..2b6fdac2 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Home.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Home.page
@@ -43,7 +43,7 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
</li>
<li>
- * <a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
+ <a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
represents an image on a Web page.
</li>
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html
new file mode 100644
index 00000000..3a319a1b
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/HelloWorld.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+<title>Hello World!</title>
+</head>
+<body>
+This is Hello World long description file!
+</body>
+</html> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page
new file mode 100644
index 00000000..02cc3446
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.page
@@ -0,0 +1,20 @@
+<com:TContent ID="body">
+
+<h1>TActiveImage Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+<tt>ImageUrl</tt> being changed on callback request:
+</td><td class="sampleaction">
+<com:TActiveImage
+ ID="imageTest"
+ ImageUrl=<%~hello_world.gif%>
+ AlternateText="Hello World!"/>
+<com:TActiveButton OnCallback="buttonClicked" Text="First hello world image"/>
+<com:TActiveButton OnCallback="buttonClicked2" Text="Second hello world image"/>
+</td></tr>
+
+</table>
+
+<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php
new file mode 100644
index 00000000..3628ad0a
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/Home.php
@@ -0,0 +1,17 @@
+<?php
+
+// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
+class Home extends TPage
+{
+ public function buttonClicked($sender, $param)
+ {
+ $this->imageTest->ImageUrl=$this->publishAsset("hello_world.gif");
+ }
+
+ public function buttonClicked2($sender, $param)
+ {
+ $this->imageTest->ImageUrl=$this->publishAsset("hello_world2.gif");
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif
new file mode 100644
index 00000000..bc81443c
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world.gif
Binary files differ
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif
new file mode 100644
index 00000000..a8c73cf6
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveImage/hello_world2.gif
Binary files differ