Click here to Skip to main content
16,021,687 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
the following is the code part
pls help me

XML
<%@ Page Title="" Language="C#"  AutoEventWireup="true"
    CodeFile="scheme.aspx.cs" Inherits="scheme_scheme" %>

<%@ Register Src="~/usercontrols/breadcrumb.ascx" TagName="breadcrumb" TagPrefix="uc1" %>
<%@ Register Src="~/usercontrols/profile-left-menu-head.ascx" TagName="profile" TagPrefix="uc3" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Malabar gold</title>
<!-- Main Stylesheets -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>

<script src="../js/jquery.bxslider.min.js"></script>
<script src="../js/main.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.7.3/css/bootstrap-select.css"  rel="stylesheet" type="text/css">
<link href="../css/base.css"  rel="stylesheet" type="text/css">
<link href="../css/style2.css"  rel="stylesheet" type="text/css">


    <link href="<%= ResolveClientUrl("~/") %>css/humanity/jquery-ui-1.8.16.custom.css"
          <%--  <link href="<%= ResolveClientUrl("~/") %>css/humanity/jquery-ui-1-11-3.custom.css"--%>
        rel="stylesheet" type="text/css" />
    <script src="<%= ResolveClientUrl("~/") %>js/jquery-ui-1.11.3.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            $("#<%=txtStartDate.ClientID %>").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: 'dd/mm/yy'
            });
            $('.mainnav ul li').removeClass('active');
            $('.mainnav ul li:nth-child(3)').addClass('active');
        });

    </script>
     <style type="text/css">

    .ftr_sec_01 {
        display:none;
    }
</style>
    </head>
    <body>


    <form id="sche" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>




               <uc3:profile ID="profile2" runat="server" />



        <div class="content-wrap sc-registration">
        <div class="container-two mrg-auto mrg-top-85 mrg-btm-100">
               <div id="divErr" style="text-align: center;" runat="server">
                <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>
            </div>
            <div class="gutter9 clearfix">
                <h2 class="">Register Scheme for Online Payment</h2>
                 <asp:Label ID="headerlabel" runat="server" Text="Register scheme for online payment"></asp:Label>
                <p class="clr-grey mrg-btm-20">Choose your branch from available list</p>
                     <div id="regdiv" runat="server">
                <div class="col-lg-6 col-md-6 col-sm-12"> <select id="ddlbranchcode" class="txtbox" runat="server" placeholder="Branch">
                                </select>

                      <script type="text/javascript">
                          $(document).ready(function () {
                              $("#<%=ddlbranchcode.ClientID %> option[value='optgroup']").each(function () {
                                  $(this).replaceWith("<optgroup class=opclass label='" + $(this).html() + "' >" + $(this).html() + "</optgroup>");
                              });
                          });
                            </script>

                      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Branch is required"
                            Display="Dynamic" InitialValue="0" ControlToValidate="ddlbranchcode" ValidationGroup="vgChange"
                            CssClass="val"></asp:RequiredFieldValidator>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-12">  <asp:DropDownList ID="drpschemetype" placeholder="Scheme Type" CssClass="txtbox " runat="server">
                                </asp:DropDownList>

                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Scheme Type is required"
                            Display="Dynamic" InitialValue="0" ControlToValidate="drpschemetype" ValidationGroup="vgChange"
                            CssClass="val"></asp:RequiredFieldValidator>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-12">  <asp:TextBox ID="txtschemeID" placeholder="Scheme Id" CssClass="txtbox " runat="server"  onblur="if(this.value == ''){this.value ='  Enter Your Scheme ID'}"
                                    onfocus="if(this.value == '  Enter Your Scheme ID') {this.value=''}"></asp:TextBox>

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Scheme ID is required"
                            Display="Dynamic" ControlToValidate="txtschemeID" ValidationGroup="vgChange"
                            CssClass="val"></asp:RequiredFieldValidator>
                     <asp:CustomValidator ID="CustomValidator2" Display="Dynamic" runat="server" ControlToValidate="txtschemeID"
                            ErrorMessage=" SchemeID is required" ValidateEmptyText="True" ValidationGroup="vgChange" ClientValidationFunction="validateRequired"
                            CssClass="val"></asp:CustomValidator>
                     <asp:Label Display="Dynamic" ID="lblSampleText" class="sampletxt" runat="server">(xxxx/xxx)</asp:Label>

                        <asp:RegularExpressionValidator ID="RegExpSchemeID" Display="Dynamic" runat="server"
                            ErrorMessage="Enter valid Scheme ID" ValidationExpression="^\d*./\d+$" ValidationGroup="vgChange"
                            ControlToValidate="txtschemeID" CssClass="val"></asp:RegularExpressionValidator>

                </div>
                <div class="col-lg-6 col-md-6 col-sm-12">
                   <asp:TextBox ID="txtStartDate"  runat="server"  CssClass="txtbox" onblur="if(this.value == ''){this.value ='  Select Start Date'}"
                                    onfocus="if(this.value == '  Select Start Date') {this.value=''}"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Start Date is required"
                            Display="Dynamic" ControlToValidate="txtStartDate" ValidationGroup="vgChange"
                            CssClass="val"></asp:RequiredFieldValidator>
                     <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtStartDate"
                            EnableClientScript="false" ValidationGroup="vgChange" CssClass="val" ErrorMessage="*"
                            runat="server" ValidationExpression="^(0?[1-9]|[12][0-9]|3[01])[\/](0?[1-9]|1[012])[\/]\d{4}$" />
                    <span class="abso _icon clender"></span>
                </div>
                <div class="col-md-12 col-sm-12"> <asp:Button ID="btnSave1" runat="server" CssClass="savebtn" Text="Verify scheme"
                                    ToolTip="Verify scheme" OnClick="btnSave_Click" ValidationGroup="vgChange"  /></div>
            </div><!-- gutter9 end-->

           </div>
              <div id="regsucessdiv" runat="server" visible="false">
                <ul class="form-list-03">
                    <li class="first_item">
                        <label>
                            Branch Code
                        </label>
                        <div id="div1">
                            <span>:
                                <asp:Label ID="lBranchCode" runat="server" Text=""></asp:Label>
                            </span>
                        </div>
                        <div class="clear">
                        </div>
                    </li>
                    <li>
                        <label>
                            Scheme Type</label>
                        <div id="div2">
                            <span>:
                                <asp:Label ID="lSchemeType" runat="server" Text=""></asp:Label>
                            </span>
                        </div>
                        <div class="clear">
                        </div>
                    </li>
                    <li class="third_item">
                        <label>
                            Scheme ID</label>
                        <div id="div3">
                            <span>:
                                <asp:Label ID="lSchemeID" runat="server" Text=""></asp:Label>
                            </span>
                        </div>
                        <div class="clear">
                        </div>
                    </li>
                    <li class="third_item">
                        <label>
                            Scheme Start Date</label>
                        <div id="div4">
                            <span>:
                                <asp:Label ID="lStartDate" runat="server" Text=""></asp:Label>
                            </span>
                        </div>
                        <div class="clear">
                        </div>
                    </li>
                    <li class="third_item">
                        <label>
                            Customer Name</label>
                        <div id="div5">
                            <span>:
                                <asp:Label ID="lCustomerName" runat="server" Text=""></asp:Label>
                            </span>
                        </div>
                        <div class="clear">
                        </div>
                    </li>
                    <li class="last_item fourth_item">
                      <div class="form-btn-05 btn-margin">
                         <span>
                            <asp:Button ID="btnConfirm" runat="server" CssClass="btn-glow" Text="Confirm" ValidationGroup="vgChange"
                                OnClick="btnConfirm_Click" />
                         </span>
                         <span>
                            <asp:Button ID="btnCancel" runat="server" CssClass="btn-glow" Text="Back" ValidationGroup="vgChange"
                                OnClick="btnCancel_Click" />
                         </span>
                        </div>
                    </li>
                </ul>
            </div>






       </div> <!-- container-two end-->
    </div>
        </form>
        </body>
    </html>
Posted
Comments
aarif moh shaikh 21-Sep-15 6:00am    
then???
What you exactly want?
Kornfeld Eliyahu Peter 21-Sep-15 6:00am    
You should read about AJAX/Partial page load...

1 solution

Yes, When you perform any event post back is happening, if you don't want postback then use AJAX UpdatePanels, using this we can overcome the postback.

Refer below link to avoid postback http://ajax.net-tutorials.com/controls/updatepanel-control/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900