⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mobile_utilities.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>.NET Mobile Utilities</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>

<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

<h1>.NET Mobile Utilities</h1>
<a href="mobile_images.asp"><img alt="previous" border="0" src="../images/btn_previous.gif" /></a>
<a href="mobile_reference.asp"><img alt="next" border="0" src="../images/btn_next.gif" /></a>
<hr />

<p class="intro">Utility controls support complicated user interfaces with 
minimum of code.</p>
<hr />


<h2>The AdRotator Control</h2>


<p>This mobile page displays different advertisements:</p>


<table width="100%" border="1" class="ex" cellspacing="0">
  <tr>
    <td>
      <pre>&lt;%@ Page
Inherits=
&quot;System.Web.UI.MobileControls.MobilePage&quot;%&gt;
&lt;%@ Register
TagPrefix=&quot;Mobile&quot;
Namespace=&quot;System.Web.UI.MobileControls&quot;
Assembly=&quot;System.Web.Mobile&quot; %&gt;</pre>
      <pre>&lt;Mobile:Form runat=&quot;server&quot;&gt;
&lt;Mobile:AdRotator runat=&quot;server&quot;
 AdvertisementFile=&quot;advertisements.xml&quot;&gt;
&lt;/Mobile:AdRotator&gt;
&lt;/Mobile:Form&gt;</pre>
    </td>
  </tr>
</table>


<p>This is the ad file called &quot;advertisements.xml&quot;:</p>


<table width="100%" border="1" class="ex" cellspacing="0">
  <tr>
    <td><pre>&lt;?xml version=&quot;1.0&quot; ?&gt;<br />&lt;Advertisements&gt;</pre>
    <pre>&lt;Ad&gt;<br />&lt;ImageUrl&gt;image1.gif&lt;/ImageUrl&gt;<br />&lt;BmpImageUrl&gt;image1.bmp&lt;/BmpImageUrl&gt;<br />&lt;WBmpImageUrl&gt;image1.wbmp&lt;/WBmpImageUrl&gt;<br />&lt;NavigateUrl&gt;http://www.1.com&lt;/NavigateUrl&gt;<br />&lt;AlternateText&gt;Visit 1&lt;/AlternateText&gt;<br />&lt;/Ad&gt;</pre>
    <pre>&lt;Ad&gt;<br />&lt;ImageUrl&gt;image2.gif&lt;/ImageUrl&gt;<br />&lt;BmpImageUrl&gt;image2.bmp&lt;/BmpImageUrl&gt;<br />&lt;WBmpImageUrl&gt;image2.wbmp&lt;/WBmpImageUrl&gt;<br />&lt;NavigateUrl&gt;http://www.2.com&lt;/NavigateUrl&gt;<br />&lt;AlternateText&gt;Visit 2&lt;/AlternateText&gt;<br />&lt;/Ad&gt;</pre>
    <pre>&lt;Ad&gt;<br />&lt;ImageUrl&gt;image3.gif&lt;/ImageUrl&gt;<br />&lt;BmpImageUrl&gt;image3.bmp&lt;/BmpImageUrl&gt;<br />&lt;WBmpImageUrl&gt;image3.wbmp&lt;/WBmpImageUrl&gt;<br />&lt;NavigateUrl&gt;http://www.3.com&lt;/NavigateUrl&gt;<br />&lt;AlternateText&gt;Visit 3&lt;/AlternateText&gt;<br />&lt;/Ad&gt;</pre>
    <pre>&lt;/Advertisements&gt;</td></pre>
  </tr>
</table>
<br />

<hr />


<h2>The Calendar Control</h2><p>This mobile page displays a calendar:</p><table width="100%" border="1" class="ex" cellspacing="0">
  <tr>
    <td>
      <pre>&lt;%@ Page
Inherits=
&quot;System.Web.UI.MobileControls.MobilePage&quot;%&gt;
&lt;%@ Register
TagPrefix=&quot;Mobile&quot;
Namespace=&quot;System.Web.UI.MobileControls&quot;
Assembly=&quot;System.Web.Mobile&quot; %&gt;</pre><pre>&lt;script runat=&quot;server&quot;&gt;

Sub CalChanged(sender as Object,e as EventArgs)
lab1.Text=&quot;You selected &quot; &amp; c1.SelectedDate
ActiveForm=f2
End Sub

&lt;/script&gt;

&lt;Mobile:Form id=&quot;f1&quot; runat=&quot;server&quot;&gt;
&lt;Mobile:Calendar id=&quot;c1&quot;
 OnSelectionChanged=&quot;CalChanged&quot; runat=&quot;server&quot; /&gt;
&lt;/Mobile:Form&gt;

&lt;Mobile:Form id=&quot;f2&quot; runat=&quot;server&quot;&gt;
&lt;Mobile:Label id=&quot;lab1&quot; runat=&quot;server&quot; /&gt;
&lt;/Mobile:Form&gt;
</pre></td></tr></table><p>In this example a calendar is displayed in the first form. When the user 
select a date from the calendar, the selected date is displayed in a new form.

</p>

<hr />


<h2>The PhoneCall Control</h2><p>This mobile page will display the text &quot;Tove's number&quot; and dial the number 
(555) 555-5555 when the user selects the text:</p><table width="100%" border="1" class="ex" cellspacing="0">
  <tr>
    <td>
      <pre>&lt;%@ Page
Inherits=
&quot;System.Web.UI.MobileControls.MobilePage&quot;%&gt;
&lt;%@ Register
TagPrefix=&quot;Mobile&quot;
Namespace=&quot;System.Web.UI.MobileControls&quot;
Assembly=&quot;System.Web.Mobile&quot; %&gt;</pre><pre>&lt;Mobile:Form runat=&quot;server&quot;&gt;

&lt;Mobile:PhoneCall runat=&quot;server&quot;
PhoneNumber=&quot;(555) 555-5555&quot;
Text=&quot;Tove's number&quot;
AlternateFormat=&quot;{0}&quot; /&gt;

&lt;/Mobile:Form&gt;
</pre></td></tr></table><p>The attribute &quot;AlternateFormat&quot; has the value &quot;{0}&quot;. This displays the text 
from the attribute &quot;Text&quot;.</p><p>If you use the value &quot;{1}&quot; it will display the text from the attribute &quot;PhoneNumber&quot;.</p><p>You can also use a construct like this: AlternateFormat=&quot;{0} is {1}&quot;. This 
will display the text &quot;Tove's number is (555) 555-5555&quot;.</p><hr />


<h2>Utility Controls</h2><table border="1" width="100%" class="ex">
  <tr>
    <th width="40%">
    <p align="left">Name</th><th>
    <p align="left">Function</th></tr><tr>
    <td>AdRotator</td><td>Displays advertisements</td></tr><tr>
    <td>Calendar</td><td>Displays a calendar</td></tr><tr>
    <td>PhoneCall</td><td>Calls a telephone number</td></tr></table><p>For a full control reference, including properties methods, events, and more 
examples, please 
refer to the &quot;Mobile Reference&quot; page. </p>
<hr />
<a href="mobile_images.asp"><img alt="previous" border="0" src="../images/btn_previous.gif" width="100" height="20" /></a>
<a href="mobile_reference.asp"><img alt="next" border="0" src="../images/btn_next.gif" /></a>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -