[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/demos/quickstart/protected/pages/Controls/Samples/TRadioButton/ -> Home.page (source)

   1  <com:TContent ID="body">
   2  
   3  <h1>TRadioButton Samples</h1>
   4  
   5  <table class="sampletable">
   6  
   7  <tr><td class="samplenote">
   8  A radiobutton with customized text alignment, color and font:
   9  </td><td class="sampleaction">
  10  <com:TRadioButton
  11      Text="radiobutton"
  12      TextAlign="Left"
  13      ForeColor="silver"
  14      BackColor="green"
  15      Font.Size="14pt"
  16  />
  17  </td></tr>
  18  
  19  <tr><td class="samplenote">
  20  A radiobutton with label and input attributes:
  21  </td><td class="sampleaction">
  22  <com:TRadioButton
  23      Text="click me"
  24      InputAttributes.value="value"
  25      LabelAttributes.style="color:red"
  26  />
  27  </td></tr>
  28  
  29  <tr><td class="samplenote">
  30  An auto postback radiobutton:
  31  </td><td class="sampleaction">
  32  <com:TRadioButton
  33      AutoPostBack="true"
  34      Text="click me"
  35      OnCheckedChanged="radiobuttonClicked"
  36      />
  37  </td></tr>
  38  
  39  <tr><td class="samplenote">
  40  A radiobutton causing validation on a textbox:
  41  </td><td class="sampleaction">
  42  <com:TTextBox ID="TextBox" />
  43  <com:TRequiredFieldValidator
  44      ControlToValidate="TextBox"
  45      Display="Dynamic"
  46      ErrorMessage="input required in the textbox"
  47      ValidationGroup="Group"
  48      />
  49  <com:TRadioButton
  50      Text="submit"
  51      AutoPostBack="true"
  52      ValidationGroup="Group"
  53      />
  54  </td></tr>
  55  
  56  <tr><td class="samplenote">
  57  A radiobutton validated by a required field validator:
  58  </td><td class="sampleaction">
  59  <com:TRadioButton
  60      ID="RadioButton"
  61      Text="Consent"
  62      ValidationGroup="Group2"
  63      />
  64  <com:TButton Text="Submit" ValidationGroup="Group2" />
  65  <com:TRequiredFieldValidator
  66      ControlToValidate="RadioButton"
  67      Display="Dynamic"
  68      ErrorMessage="You must consent."
  69      ValidationGroup="Group2"
  70      />
  71  </td></tr>
  72  
  73  <tr><td class="samplenote">
  74  A radiobutton group:
  75  </td><td class="sampleaction">
  76  <com:TRadioButton
  77      ID="Radio1"
  78      GroupName="RadioGroup"
  79      Text="Option 1"
  80      />
  81  <com:TRadioButton
  82      ID="Radio2"
  83      GroupName="RadioGroup"
  84      Text="Option 2"
  85      />
  86  <com:TRadioButton
  87      ID="Radio3"
  88      GroupName="RadioGroup"
  89      Text="Option 3"
  90      />
  91  <com:TRadioButton
  92      ID="Radio4"
  93      Text="Option 4 (in a different group)"
  94      />
  95  <br/>
  96  <com:TButton Text="Submit" OnClick="selectRadioButton" />
  97  <com:TLabel ID="Result" />
  98  </td></tr>
  99  
 100  </table>
 101  
 102  </com:TContent>


Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7