Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Radiobuttonlist+AJAX Modal POPup Control

Radiobuttonlist+AJAX Modal POPup Control

Scheduled Pinned Locked Moved ASP.NET
databasesysadmin
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    Udayaraju
    wrote on last edited by
    #1

    I am opening an panel when i click newuser linkbuttton. Panel consists of 4 diff. radiobuttons wen i select an radio button option..it should navigate to new page <asp:LinkButton ID="linkNewUser" runat="server" style="z-index: 1; left: 42px; top: 170px; position: absolute; height: 21px; width: 76px">NewUser</asp:LinkButton> <asp:Panel ID="panelSelection" runat="server" CssClass="modalPopup" style="display: none" > <asp:RadioButtonList ID="RadioButtonList1" runat="server" > <asp:ListItem Value="0">Patient</asp:ListItem> <asp:ListItem Value="1">Doctor</asp:ListItem> <asp:ListItem Value="2">Pharmacy</asp:ListItem> <asp:ListItem Value="3">Lab</asp:ListItem> </asp:RadioButtonList><br /> <p style="text-align: center;"> <asp:Button ID="OkButton" runat="server" Text="OK" OnClick="OkButton_Click" /> <asp:Button ID="CancelButton" runat="server" Text="Cancel"/> </p> </asp:Panel> <ajaxToolKit:ModalPopupExtender ID="linkNewUser_ModalPopupExtender" runat="server" TargetControlID="linkNewUser" PopupControlID="panelSelection" BackgroundCssClass="modalBackground" OkControlID="OkButton" CancelControlID="CancelButton" DropShadow="true"> </ajaxToolKit:ModalPopupExtender> protected void OkButton_Click(object sender, EventArgs e) { if (RadioButtonList1.SelectedItem.Text=="Patient") { Response.Redirect("~/PatientRegDetails.aspx"); } else if (RadioButtonList1.SelectedValue=="1") { //this has to be closed } } Here OKButton_Click event is not fired.

    N 1 Reply Last reply
    0
    • U Udayaraju

      I am opening an panel when i click newuser linkbuttton. Panel consists of 4 diff. radiobuttons wen i select an radio button option..it should navigate to new page <asp:LinkButton ID="linkNewUser" runat="server" style="z-index: 1; left: 42px; top: 170px; position: absolute; height: 21px; width: 76px">NewUser</asp:LinkButton> <asp:Panel ID="panelSelection" runat="server" CssClass="modalPopup" style="display: none" > <asp:RadioButtonList ID="RadioButtonList1" runat="server" > <asp:ListItem Value="0">Patient</asp:ListItem> <asp:ListItem Value="1">Doctor</asp:ListItem> <asp:ListItem Value="2">Pharmacy</asp:ListItem> <asp:ListItem Value="3">Lab</asp:ListItem> </asp:RadioButtonList><br /> <p style="text-align: center;"> <asp:Button ID="OkButton" runat="server" Text="OK" OnClick="OkButton_Click" /> <asp:Button ID="CancelButton" runat="server" Text="Cancel"/> </p> </asp:Panel> <ajaxToolKit:ModalPopupExtender ID="linkNewUser_ModalPopupExtender" runat="server" TargetControlID="linkNewUser" PopupControlID="panelSelection" BackgroundCssClass="modalBackground" OkControlID="OkButton" CancelControlID="CancelButton" DropShadow="true"> </ajaxToolKit:ModalPopupExtender> protected void OkButton_Click(object sender, EventArgs e) { if (RadioButtonList1.SelectedItem.Text=="Patient") { Response.Redirect("~/PatientRegDetails.aspx"); } else if (RadioButtonList1.SelectedValue=="1") { //this has to be closed } } Here OKButton_Click event is not fired.

      N Offline
      N Offline
      Nisha Agrawal
      wrote on last edited by
      #2

      I think OKControlId Property of ModalPopup Control Extender and onClick of the Ok Button is in conflict. When you specify the OkControlId of ModalPopupExtender then it won't execute the button OnClick Event. So just remove the OkControlId property of ModalPopupExtender.

      D 1 Reply Last reply
      0
      • N Nisha Agrawal

        I think OKControlId Property of ModalPopup Control Extender and onClick of the Ok Button is in conflict. When you specify the OkControlId of ModalPopupExtender then it won't execute the button OnClick Event. So just remove the OkControlId property of ModalPopupExtender.

        D Offline
        D Offline
        deepikaan
        wrote on last edited by
        #3

        I have removed it and tried but still the OKButton_Click is not fired

        U 1 Reply Last reply
        0
        • D deepikaan

          I have removed it and tried but still the OKButton_Click is not fired

          U Offline
          U Offline
          Udayaraju
          wrote on last edited by
          #4

          I have tried a lot..but unable to find the solution.. I have removed okcontrolId property too..help me

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups