PopUpExtender and Comma

Posted by mfalac on 12/15/2009 2:34:59 AM

                Tags:
        <asp:TextBox ID="MyTextBox" runat="server" Width="538px"></asp:TextBox>
        <br />
        <br />
        <asp:Panel ID="Panel1" runat="server" CssClass="popupControl">
          <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
            <ContentTemplate>
                 <asp:RadioButtonList ID="RadioButtonList1" runat="server" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged" AutoPostBack="true" Width="146px">
                    <asp:ListItem Text="ozkan"></asp:ListItem>
                    <asp:ListItem Text="deniz"></asp:ListItem>
                    <asp:ListItem Text="cherline"></asp:ListItem>
                    <asp:ListItem Text="fatih"></asp:ListItem>
                    <asp:ListItem Text="veronica"></asp:ListItem>
                </asp:RadioButtonList>
            </ContentTemplate>
          </asp:UpdatePanel>
        </asp:Panel>
    &nbsp;
    <br />
                <cc1:popupcontrolextender
                ID="PopupControlExtender1" runat="server"
    TargetControlID="MyTextBox" PopupControlID="Panel1"
    CommitProperty="value" CommitScript="e.value ;"
    Position="Bottom">                  
   </cc1:popupcontrolextender>

code:

Protected Sub RadioButtonList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButtonList1.SelectedIndexChanged

       If MyTextBox.Text = "" Then

           If Not (String.IsNullOrEmpty(RadioButtonList1.SelectedValue)) Then

               Dim r As String = RadioButtonList1.SelectedValue
               Dim s As String = MyTextBox.Text
               PopupControlExtender.GetProxyForCurrentPopup(Me.Page).Commit(r + s)
           End If
       Else
           If Not (String.IsNullOrEmpty(RadioButtonList1.SelectedValue)) Then

               Dim r As String = RadioButtonList1.SelectedValue
               Dim s As String = MyTextBox.Text
               PopupControlExtender.GetProxyForCurrentPopup(Me.Page).Commit(r + "," + s)
           End If
       End If
       'RadioButtonList1.ClearSelection()

   End Sub





Average rating for this article is: 3.50
This article is 2 times rated.

Comments:


heheh


Posted by heheh on 2/13/2010 9:54:49 AM
wouuuuu

mfalac


Posted by mfalac on 12/15/2009 3:17:18 PM
woot

Add Your Comment

Your Name:  
Your Email:    
Your WebPage:  
Your Comment:  
500 character limit:
 

Categories

Ajax
(9 Articles) Ajax Control Toolkit
Data Access
(11 Articles) data entries DAL, BLL, ADO, SQL,...
Generated Image Controls
(2 Articles) Generated Image Controls
Journal
(7 Articles) Page Updates
Music
(15 Articles) Music
Vb
(1 Articles) Visual Basic codes things bla bla

Tag Cloud

Top Rated Articles

SQL count and avg
(Avg:4.00 | Rated:9)
binding the DataTable
(Avg:4.00 | Rated:4)
perinaz.com
(Avg:5.00 | Rated:3)
Image Resize
(Avg:3.00 | Rated:4)
Şebnem FERAH - Sigara
(Avg:3.67 | Rated:3)
getting month value
(Avg:3.33 | Rated:3)
first blog
(Avg:3.33 | Rated:3)
Calendar Control And Events
(Avg:3.00 | Rated:3)
PopUpExtender and Comma
(Avg:3.50 | Rated:2)
Dream Antimatter
(Avg:3.00 | Rated:2)
Loading