Fichier:Drop-down list example.PNG

De Création de wikis privés oupublics

Drop-down_list_example.PNG(135 × 90 pixels, taille du fichier : 1 Kio, type MIME : image/png)

Ce fichier provient de Wikimedia Commons. Il peut être utilisé par d'autres projets. Sa description sur sa page de description est affichée ci-dessous.

Description

Description
English: An example of a drop-down list(computing GUI widget). This is not a screenshot of a real program - I just drew it, and it's meant to look simple and generic.
Deutsch: Ein Beispiel für eine Drop-Down-Liste einer grafischen Softwarebedienoberfläche). Dies ist kein Screenshot aus einem echten Programm. Es ist lediglich selbst angelegt, um als einfaches und allgemeines Beispiel zu taugen.
Source Travail personnel
Auteur Jaksmata
===================================================

Dropdownlist Example


public void GetId()
   {
       Ds = obj.fillDataSet("usp_getDataId", "tbl_DataId");
       DdlDataId.Items.Clear();
       DdlDataId.Items.Add(new ListItem("-Select-", "-1"));   
       DdlDataId.DataSource = Ds.Tables["tbl_DataId"];
       DdlDataId.DataTextField = "fld_Id";
       DdlDataId.DataValueField = "fld_Id";
       DdlDataId.DataBind();        
   }
   public void GetMonth()
   {
       DDLMonth.Items.Clear();
       DDLMonth .Items .Add (new ListItem ("-Select-","-1"));
       for (int i = 1; i <= 12; i++)
       {
           DDLMonth.Items.Add("" + i.ToString());            
       }
   }
  public void GetYear()
  {
      DDLYear.Items.Clear();
      DDLYear.Items.Add(new ListItem("-Select-", "-1"));
       for (int j = 2000; j <= 2099; j++)
       {
           DDLYear.Items.Add("" + j.ToString());
       }
===================

<asp:DropDownList ID="DDLYear" runat="server" Width="140px"

AutoPostBack ="false" AppendDataBoundItems ="true" >
<%--<asp:ListItem Selected ="True">-Select-</asp:ListItem>--%> 

</asp:DropDownList> <asp:RequiredFieldValidator ID="Req1" runat="server" ErrorMessage="Please Select" ControlToValidate ="DDLYear" Display ="None" ></asp:RequiredFieldValidator> <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID ="Req1" PopupPosition ="Left"> </cc1:ValidatorCalloutExtender>

====================

Conditions d’utilisation

Public domain Moi, propriétaire des droits d’auteur sur cette œuvre, la place dans le domaine public. Ceci s'applique dans le monde entier.
Dans certains pays, ceci peut ne pas être possible ; dans ce cas :
J’accorde à toute personne le droit d’utiliser cette œuvre dans n’importe quel but, sans aucune condition, sauf celles requises par la loi.

Légendes

Ajoutez en une ligne la description de ce que représente ce fichier

Éléments décrits dans ce fichier

dépeint

Historique du fichier

Cliquer sur une date et heure pour voir le fichier tel qu'il était à ce moment-là.

Date et heureVignetteDimensionsUtilisateurCommentaire
actuel19 août 2008 à 18:33Vignette pour la version du 19 août 2008 à 18:33135 × 90 (1 Kio)Jaksmata{{Information |Description={{en|1=An example of a drop-down list(computing GUI widget). This is not a screenshot of a real program - I just drew it, and it's meant to look simple and generic.}} |Source=Own work by uploader |Author=[[User:Jaksmata|Jaksmata

Aucune page n’utilise ce fichier.