<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Commenti a: Esercitazione del 06.10.2010 &#8211; DropDownlist, Checkbox e AutoPostback</title>
	<atom:link href="https://blog.napoliweb.net/esercitazione-del-06102010-dropdownlist-e-postback/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.napoliweb.net/esercitazione-del-06102010-dropdownlist-e-postback/</link>
	<description>Solo un altro blog targato WordPress</description>
	<lastBuildDate>Fri, 13 May 2011 10:39:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>Di: Mimmo</title>
		<link>https://blog.napoliweb.net/esercitazione-del-06102010-dropdownlist-e-postback/comment-page-1/#comment-554</link>
		<dc:creator>Mimmo</dc:creator>
		<pubDate>Mon, 11 Oct 2010 15:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.napoliweb.net/?p=175#comment-554</guid>
		<description>****Dropdownlist****

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
	
If Page.IsPostBack Then

	DDList.Items.Insert(0, New ListItem(&quot;Elemento aggiunto&quot;, &quot;&quot;))

End If

End Sub


    
    
    
 

 

************
***Checkboxlist***

Protected Sub CBList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CBList.SelectedIndexChanged
	
risposta.Text = &quot;HAI CLICCATO I SEGUENTI CAMPI: &quot;
Dim i As Integer
	
For i = 0 To CBList.Items.Count - 1
	If CBList.Items(i).Selected Then

		risposta.Text &amp;= CBList.Items(i).Text &amp; &quot;, &quot;

	End If

Next
End Sub


    
    
    
 


*******</description>
		<content:encoded><![CDATA[<p>****Dropdownlist****</p>
<p>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load</p>
<p>If Page.IsPostBack Then</p>
<p>	DDList.Items.Insert(0, New ListItem(&#8220;Elemento aggiunto&#8221;, &#8220;&#8221;))</p>
<p>End If</p>
<p>End Sub</p>
<p>************<br />
***Checkboxlist***</p>
<p>Protected Sub CBList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CBList.SelectedIndexChanged</p>
<p>risposta.Text = &#8220;HAI CLICCATO I SEGUENTI CAMPI: &#8221;<br />
Dim i As Integer</p>
<p>For i = 0 To CBList.Items.Count &#8211; 1<br />
	If CBList.Items(i).Selected Then</p>
<p>		risposta.Text &amp;= CBList.Items(i).Text &amp; &#8220;, &#8221;</p>
<p>	End If</p>
<p>Next<br />
End Sub</p>
<p>*******</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Gianluca</title>
		<link>https://blog.napoliweb.net/esercitazione-del-06102010-dropdownlist-e-postback/comment-page-1/#comment-550</link>
		<dc:creator>Gianluca</dc:creator>
		<pubDate>Sun, 10 Oct 2010 22:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.napoliweb.net/?p=175#comment-550</guid>
		<description>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        DDlsquadre.Items.Insert(0, New ListItem(&quot;Inter&quot;, &quot;4&quot;))

    End Sub


    Protected Sub ChkListSettimana_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ChkListSettimana.SelectedIndexChanged

        risposta.Text = &quot;Giorno della settimana selezionato:&quot;

        Dim i As Integer

        For i = 0 To ChkListSettimana.Items.Count - 1

            If ChkListSettimana.Items(i).Selected Then

                risposta.Text &amp;= ChkListSettimana.Items(i).Text &amp; &quot;&quot;

            End If

        Next

    End Sub



    Protected Sub DDlsquadre_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DDlsquadre.SelectedIndexChanged

        risposta2.Text = &quot;La squadra che hai selezionato è:   &quot; &amp; DDlsquadre.SelectedItem.Text




    End Sub


----------------------------------------------------------------------------------


Esempio di ChekBoxList

      Seleziona i giorni della settimana
      

       
 
         
         
         
         
         
         
         
 
      
 
      

      

      

                        Esempio di DropDownList

      Seleziona la squadra che vincera la serie A 2010/11
      

        
        
            
            
            
        
        
                 
      

      </description>
		<content:encoded><![CDATA[<p>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load</p>
<p>        DDlsquadre.Items.Insert(0, New ListItem(&#8220;Inter&#8221;, &#8220;4&#8243;))</p>
<p>    End Sub</p>
<p>    Protected Sub ChkListSettimana_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ChkListSettimana.SelectedIndexChanged</p>
<p>        risposta.Text = &#8220;Giorno della settimana selezionato:&#8221;</p>
<p>        Dim i As Integer</p>
<p>        For i = 0 To ChkListSettimana.Items.Count &#8211; 1</p>
<p>            If ChkListSettimana.Items(i).Selected Then</p>
<p>                risposta.Text &amp;= ChkListSettimana.Items(i).Text &amp; &#8220;&#8221;</p>
<p>            End If</p>
<p>        Next</p>
<p>    End Sub</p>
<p>    Protected Sub DDlsquadre_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DDlsquadre.SelectedIndexChanged</p>
<p>        risposta2.Text = &#8220;La squadra che hai selezionato è:   &#8221; &amp; DDlsquadre.SelectedItem.Text</p>
<p>    End Sub</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Esempio di ChekBoxList</p>
<p>      Seleziona i giorni della settimana</p>
<p>                        Esempio di DropDownList</p>
<p>      Seleziona la squadra che vincera la serie A 2010/11</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Gianluca</title>
		<link>https://blog.napoliweb.net/esercitazione-del-06102010-dropdownlist-e-postback/comment-page-1/#comment-549</link>
		<dc:creator>Gianluca</dc:creator>
		<pubDate>Sun, 10 Oct 2010 12:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.napoliweb.net/?p=175#comment-549</guid>
		<description>Prima di incollare il codice ti prego di non mettere i ceci in aula lunedì....abbi pietà di una povera &quot;CAPRA IGNORANTE&quot;


 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        DDlsquadre.Items.Insert(0, New ListItem(&quot;Inter&quot;, &quot;4&quot;))

    End Sub


    Protected Sub ChkListSettimana_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ChkListSettimana.SelectedIndexChanged

        risposta.Text = &quot;Giorno della settimana selezionato:&quot;

        Dim i As Integer

        For i = 0 To ChkListSettimana.Items.Count - 1

            If ChkListSettimana.Items(i).Selected Then

                risposta.Text &amp;= ChkListSettimana.Items(i).Text &amp; &quot;&quot;

            End If

        Next

    End Sub



    Protected Sub DDlsquadre_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DDlsquadre.SelectedIndexChanged

        risposta2.Text = &quot;La squadra che hai selezionato è:   &quot; &amp; DDlsquadre.SelectedItem.Text




    End Sub

-----------------------------------------------------------------------------------------------

Esempio di ChekBoxList

      Seleziona i giorni della settimana
      

       
 
         
         
         
         
         
         
         
 
      
 
      

      

      

                        Esempio di DropDownList

      Seleziona la squadra che vincera la serie A 2010/11
      

        
        
            
            
            
        
        
                 
      

      </description>
		<content:encoded><![CDATA[<p>Prima di incollare il codice ti prego di non mettere i ceci in aula lunedì&#8230;.abbi pietà di una povera &#8220;CAPRA IGNORANTE&#8221;</p>
<p> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load</p>
<p>        DDlsquadre.Items.Insert(0, New ListItem(&#8220;Inter&#8221;, &#8220;4&#8243;))</p>
<p>    End Sub</p>
<p>    Protected Sub ChkListSettimana_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ChkListSettimana.SelectedIndexChanged</p>
<p>        risposta.Text = &#8220;Giorno della settimana selezionato:&#8221;</p>
<p>        Dim i As Integer</p>
<p>        For i = 0 To ChkListSettimana.Items.Count &#8211; 1</p>
<p>            If ChkListSettimana.Items(i).Selected Then</p>
<p>                risposta.Text &amp;= ChkListSettimana.Items(i).Text &amp; &#8220;&#8221;</p>
<p>            End If</p>
<p>        Next</p>
<p>    End Sub</p>
<p>    Protected Sub DDlsquadre_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DDlsquadre.SelectedIndexChanged</p>
<p>        risposta2.Text = &#8220;La squadra che hai selezionato è:   &#8221; &amp; DDlsquadre.SelectedItem.Text</p>
<p>    End Sub</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Esempio di ChekBoxList</p>
<p>      Seleziona i giorni della settimana</p>
<p>                        Esempio di DropDownList</p>
<p>      Seleziona la squadra che vincera la serie A 2010/11</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Domenico</title>
		<link>https://blog.napoliweb.net/esercitazione-del-06102010-dropdownlist-e-postback/comment-page-1/#comment-548</link>
		<dc:creator>Domenico</dc:creator>
		<pubDate>Sun, 10 Oct 2010 09:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.napoliweb.net/?p=175#comment-548</guid>
		<description>
    
    
		
		
		
	
	
	
		
		
		
	
	
    
    

----------------------------------------------------------------------------------

Partial Class _Default
    Inherits System.Web.UI.Page

	Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
		If Not Page.IsPostBack Then
			Dim item As ListItem = New ListItem(&quot;Seleziona&quot;, &quot;&quot;)
			ddl.Items.Insert(0, item)
		End If
	End Sub

	Protected Sub cbl_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbl.SelectedIndexChanged
		For i = 0 To cbl.Items.Count - 1
			If cbl.Items(i).Selected Then
				lbl.Text &amp;= cbl.Items(i).Text &amp; &quot;&quot;
			End If
			i += 1
		Next
	End Sub
End Class</description>
		<content:encoded><![CDATA[<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Partial Class _Default<br />
    Inherits System.Web.UI.Page</p>
<p>	Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
		If Not Page.IsPostBack Then<br />
			Dim item As ListItem = New ListItem(&#8220;Seleziona&#8221;, &#8220;&#8221;)<br />
			ddl.Items.Insert(0, item)<br />
		End If<br />
	End Sub</p>
<p>	Protected Sub cbl_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbl.SelectedIndexChanged<br />
		For i = 0 To cbl.Items.Count &#8211; 1<br />
			If cbl.Items(i).Selected Then<br />
				lbl.Text &amp;= cbl.Items(i).Text &amp; &#8220;&#8221;<br />
			End If<br />
			i += 1<br />
		Next<br />
	End Sub<br />
End Class</p>
]]></content:encoded>
	</item>
</channel>
</rss>
