Skip to content
Loading
I wan to open popup on click button  
  • class="col-md-4">  
  • "server" ID="ddlemplist" CssClass="form-control select2" Width="100%">  
  • "server" ID="hidchkemplist" />  
  • "server" ID="cvmodulelist" ClientValidationFunction="ValidateModuleList"  
  • ErrorMessage="Please Select Atleast one Module" ValidationGroup="ab" ForeColor="#cc0000" Display="none">  
  •   
  • class="col-md-2">  
  • "server">Meeting Date : "color:red">*   
  •   
  • class="col-md-4">  
  • "server" ID="txtmeetingdate" type="Date" CssClass="form-control">  
  • "server" ControlToValidate="txtmeetingdate" ErrorMessage="Meeting Date is Required !" Display="Dynamic" ValidationGroup="ab">  
  •   
  •   
  • class="clearfix">  
  • class="col-md-12">  
  • "server" ID="lblmsg" Visible="false" ForeColor="Red">  
  •   
  •   
  • class="clearfix">  
  •   
  • class="row">  
  • class="col-md-12" align="center">  
  • "server" ID="btnSendRequest" Text="Send Request For Approval" CssClass="btn btn-primary" OnClick="btnSendRequest_Click"  
  • ValidationGroup="ab">  
  • "server" ShowMessageBox="false" ShowSummary="true" ValidationGroup="ab" />  
  •   
  •   
  •   
  • class="modal-footer">  
  • "button" class="btn btn-danger" data-dismiss="modal">  
  • Close  
  •   
  •   
  •   
  •   
  •   
  •   
  • and this is my onclick event
    1. protected void btnForwardforvalidation_Click(object sender, EventArgs e)  
    2. {  
    3. string check = "false";  
    4. foreach (GridViewRow grd in GRDPanelMeet.Rows)  
    5. {  
    6. CheckBox chkselect = (CheckBox)grd.FindControl("chkselect");  
    7. if (chkselect.Checked)  
    8. {  
    9. check = "true";  
    10. }  
    11. }  
    12. if (check == "false")  
    13. {  
    14. ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('Msg|Please select atleast one checkbox !');", true);  
    15. }  
    16. else  
    17. {  
    18. //Here I want to open popup  
    19. }  
    20. }  

    1 Reply

    Know the answer? Post it — somebody with the same question will find it here.