Expandir Minimizar
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original
Este tópico ainda não foi avaliado como - Avalie este tópico

NextPrevFormat Enumeração

Represents the display format for the previous and next month navigation controls within the Calendar.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (em System.Web. dll)

public enum NextPrevFormat
Nome do membroDescrição
CustomTextCustom text format for the month navigation controls on the Calendar.
ShortMonthAbbreviated month name format for the month navigation controls on the Calendar.Por exemplo, "jan".
FullMonthFull month name format for the month navigation controls on the Calendar.Por exemplo, "janeiro".

The NextPrevFormat enumeration represents the different styles for the next and previous month buttons on the Calendar.

CustomText allows the programmer to specify custom text for the navigation controls.

ShortMonth displays a three-letter abbreviation for the month.

FullMonth displays the entire month name.

<%@ Page Language= AutoEventWireup= %>

<!DOCTYPE html PUBLIC "-
    "http:
<html xmlns="http:
   <script runat= >

       Selection_Change(Object sender, EventArgs e)
      {

         
         Calendar1.NextPrevFormat = (NextPrevFormat)DayList.SelectedIndex;

      }

   </script>

<head runat=>
    <title> Calendar NextPrevFormat Example </title>
</head>
<body>

   <form id= runat=>

      <h3> Calendar NextPrevFormat Example </h3>

      Select a format  the next and previous month controls.

      <br /><br /> 

      <asp:Calendar id=
           ShowGridLines= 
           ShowTitle=
           runat=/>

      <br /><br />

      <table cellpadding=>

         <tr>

            <td>

               Format:

            </td>

         </tr>

         <tr>

            <td>

               <asp:DropDownList id=
                    AutoPostBack=
                    OnSelectedIndexChanged=
                    runat=>

                  <asp:ListItem Selected=> Custom </asp:ListItem>
                  <asp:ListItem> ShortMonth </asp:ListItem>
                  <asp:ListItem> FullMonth </asp:ListItem>

               </asp:DropDownList>

            </td>

         </tr>

      </table>

   </form>

</body>
</html>



Isso foi útil para você?
(1500 caracteres restantes)

Contribuições da comunidade

ADICIONAR
© 2013 Microsoft. Todos os direitos reservados.