Click here to Skip to main content
15,793,923 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Please help! I tried update panel. It's working in local PC, but after live in IIS server, it's not working.

What I have tried:

ASP.NET
  <asp:UpdatePanel ID="updtProgram" 
runat="server" UpdateMode="Conditional">
          
                                    <ContentTemplate>
            <div class="row" id="divservice" runat="server" 
            visible="false">
                <div class="col-lg-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="table-responsive">
                                <h5 class="card-title"
                                >Service Quotation Details  
                                    <input type="button" 
                                    id="Button4" 
                                    runat="server" 
                                    style="position: absolute; 
                                    right: 30px;" class="btn 
                                    btn-primary btn-sm btn_bg" 
                                    value="Advanced" 
                                    onclick="showadvanced();" />
                                </h5>

                                <table class="table 
                                table-striped table-bordered">
                                    <asp:Repeater ID="rptservicedetails" 
                                    runat="server" 
                                    OnItemDataBound="repeat">
                                        <HeaderTemplate>
                                            <tr class="dg_item">
                                                <th></th>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;"
                                                >Service Name
                                                </th>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;"
                                                >Quotation No
                                                </th>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;"
                                                >Bill No
                                                </th>
                                                <%--<
                                                th scope="col">Plan By
                                                </th>--%>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;"
                                                >Plan Date
                                                </th>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;"
                                                >Conducted By
                                                </th>
                                                <%--
                                                <th scope="col">
                                                Compl. Date
                                                </th>--%>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;"
                                                >Rate
                                                </th>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;"
                                                >Qty
                                                </th>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;">
                                                Disc.
                                                </th>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;">
                                                Amt
                                                </th>
                                                <th scope="col" 
                                                style="text-align: center; 
                                                vertical-align:middle;"
                                                >Task Status
                                                </th>
                                                <th></th>
                                            </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td style="visibility: 
                                                <%# 
                                                Eval("chkboxhidden_new") 
                                                %>">
                                                    <asp:Label 
                                                    ID="lbltreatment" 
                                                    runat="server" 
                                                    Text='<%# Eval
                                                    ("pk_tr_trans_id") 
                                                    %>'>
                                                    </asp:Label>
                                                    <asp:CheckBox 
                                                    ID="chkRowData" 
                                                    runat="server" />
                                                    <asp:HiddenField 
                                                    runat="server" 
                                                    ID="invoiceid" 
                                                    Value='<%# Eval
                                                    ("pk_invoice_id") 
                                                    %>' />
                                                </td>
                                                <td 
                                                style="text-align: center; 
                                                vertical-align:middle;">
                                                   
                                                    <asp:label 
                                                    ID="lblservicename" 
                                                    runat="server" 
                                                    Text='<%# 
                                                    Eval("ServiceName") 
                                                    %>'>
                                                    </asp:label>
                                                    <a href=""  
                                                   onclick="showtooth('<%# 
                                                    Eval("pk_tr_trans_id") 
                                                    %>'); 
                                                    return false;" 
                                                    style="display: 
                                                    <%# 
                                                    Eval("toothdisplay") 
                                                    %>"></a>
                                                </td>
                                                <td style=
                                                "text-align: center; 
                                                vertical-align:middle;">
                                                    <%# Eval
                                                    ("inovice_number") %>
                                                </td>
                                                <td style="text-align: 
                                                center; 
                                                vertical-align:middle;">
                                                    <%# Eval
                                                    ("Bill_no_new") %>
                                                </td>
                                                <%-- <td>
                                                    <%# Eval("plnby") 
                                                 %>
                                                </td>--%>
                                                <td style="text-align: 
                                                center; 
                                                vertical-align:middle;">
                                                    <%# Eval("plndate") 
                                                %>
                                                </td>
                                                <td style="text-align: 
                                                center; 
                                                vertical-align:middle;">
                                                    <asp:HiddenField 
                                                    ID="hdncondutby" 
                                                    runat="server" 
                                                    Value='<%# 
                                                    Eval("tr_conducted_by") 
                                                    %>' />
                                                    <asp:DropDownList 
                                                    ID="ddldoctor" 
                                                    CssClass="form-select 
                                                    select2-init" 
                                                    runat="server" 
                                                    style="width:180px;">
                                                    </asp:DropDownList>
                                                    <asp:Button 
                                                    ID="btndocsave" 
                                                    runat="server" 
                                                    Text="Save" 
                                                    class="btn btn-primary 
                                                    btn-sm btn_bg" 
                                                    CommandArgument='<%# 
                                                    Eval("pk_tr_trans_id") 
                                                    %>' 
                                                    CommandName="save_doc" 
                                                    />

                                                </td>
                                                <%--<td>
                                                    <%# Eval("ComplDate") 
                                                    %>
                                                </td>--%>
                                                <td style="text-align: 
                                                center; 
                                                vertical-align:middle;">
                                                    <%# Eval("Rate") %>
                                                    <asp:HiddenField 
                                                    runat="server" 
                                                    ID="hdnrate" Value='
                                                    <%# Eval("Rate") 
                                                    %>' />
                                                </td>
                                                <td style="text-align: 
                                                center;">
                                                    <%# Eval("Qty") %>
                                                    <asp:HiddenField 
                                                    runat="server" 
                                                    ID="hdnqty" Value='
                                                    <%# Eval("Qty") 
                                                    %>' />
                                                </td>
                                                <td style="text-align: 
                                                center;">
                                                    <%# Eval("Disc") %>
                                                    <asp:HiddenField 
                                                    runat="server" 
                                                    ID="hdndisc" Value='
                                                    <%# Eval("Disc") 
                                                    %>' />
                                                </td>
                                                <td style=
                                                "text-align: center;">
                                                    <%# Eval("Amt") %>
                                                    <asp:HiddenField 
                                                    runat="server" 
                                                    ID="hdnamt" Value='
                                                    <%# Eval("Amt") %>' 
                                                />
                                                </td>
                                                <td style=
                                                "text-align: center;">
                                                    <%# Eval("TaskStatus") 
                                                    %>
                                                </td>
                                                <td style=
                                                "text-align: center; 
                                                vertical-align:middle; 
                                                display: 
                                                <%# 
                                                Eval("visible_flag_new") 
                                                %> ">
                                                    <asp:Button 
                                                    ID="btnSave" 
                                                    runat="server"
                                                    Text="Delete" 
                                                    CssClass="btn 
                                                    btn-primary 
                                                    btn-sm btn_bg" 
                                                    CommandArgument='<%# 
                                                    Eval("pk_tr_trans_id") 
                                                    %>' CommandName="save" 
                                                    />
                                                </td>
                                                <td style=
                                                "text-align: center; 
                                                vertical-align:middle; 
                                                display: <%# 
                                                Eval("actionbtn_new") 
                                                %>">
                                                    <a href="" 
                                                    onclick=
                                                    "showpopup('<%# 
                                                    Eval("pk_tr_trans_id") 
                                                    %>'); 
                                                    return false;">^__i 
                                                    class="fa fa-print" 
                                                    style="font-size: 20px" 
                                                    title="edit">
                                                    </a>

                                                    <input type="button" 
                                                    style="display: 
                                                    <%# Eval
                                                    ("subservice_flag") 
                                                    %>" 
                                                    value="Sub Task" 
                                                    onclick="windowOpen
                                                    ('<%# Eval
                                                    ("pk_tr_trans_id") 
                                                    %> ')">
                                                </td>

                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>

                                </table>
                                <table class="table 
                                table-striped table-bordered" >
                                    <asp:HiddenField 
                                    ID="hdntype" runat="server" />
                                    <asp:HiddenField 
                                    ID="hdnvalue" runat="server" />
                                    <asp:HiddenField 
                                    ID="hdnname" runat="server" />

                                    <tr>
                                        <td style="vertical- 
                                        align:middle;">
                                        Discount on selected items:-
                                        </td>
                                        <td>
                                           <asp:DropDownList 
                                           ID="ddlselect" 
                                           runat="server" 
                                           OnSelectedIndexChanged=
                                           "ddlselect_SelectedIndexChanged" 
                                           CssClass="form-select"  
                                           onchange=
                                           "javascript:discountdropdown();" 
                                            >
                                                <asp:ListItem 
                                                Value="0">
                                                --Select Type--
                                                </asp:ListItem>
                                                <asp:ListItem 
                                                Value="1">
                                                Promotional
                                                </asp:ListItem>
                                                <asp:ListItem 
                                                Value="2">
                                                Enter Code
                                                </asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td class="promo" 
                                        style="display:none">
                                            <asp:DropDownList 
                                            ID="ddlpromo" 
                                            CssClass="form-select" 
                                            runat="server" 
                                            style="width:120px;">

                                            </asp:DropDownList>
                                        </td>
                                        
                                        <td class="div_hide" 
                                        style="display:none">
                                            <asp:DropDownList 
                                            ID="ddldistype" 
                                            CssClass="form-select" 
                                            runat="server">
                                                <asp:ListItem 
                                                Text="Percent" 
                                                Value="1">
                                                </asp:ListItem>
                                                <asp:ListItem 
                                                Text="Amount" 
                                                Value="2">
                                                </asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td class="div_hide" 
                                        style="display:none">
                                            <asp:TextBox ID="txtno" 
                                            runat="server" 
                                            CssClass="form-control" 
                                            Text="0">
                                            </asp:TextBox>
                                        </td>
                                        <td class="div_hide" 
                                        style="display:none">Discount 
                                        Auth:
                                        </td>
                                        <td class="div_hide" 
                                        style="display:none">
                                            <asp:DropDownList 
                                            ID="ddldiscounttype" 
                                            CssClass="form-select" 
                                            runat="server">
                                                <asp:ListItem 
                                                Text="Discount-Employee" 
                                                Value="1">
                                                </asp:ListItem>
                                                <asp:ListItem 
                                                Text="Discount-Promotional" 
                                                Value="2">
                                                </asp:ListItem>
                                                <asp:ListItem 
                                                Text="Discount-Management 
                                                Approval" 
                                                Value="3">
                                                </asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        
                                        <td class="div_hide" 
                                        style="display:none">
                                            <asp:Button ID="btnapply" 
                                            CssClass="btn 
                                            btn-primary btn-sm btn_bg" 
                                            runat="server" 
                                            Text="Apply" />
                                        </td>
                                        <td class="promo" 
                                        style="display:none">
                                            <asp:Button ID="btnpromo" 
                                            runat="server" 
                                            CssClass="btn btn-primary 
                                            btn-sm btn_bg" 
                                            Text="Apply Promo"  />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>

                        <div class="form-check">
                            <asp:Button runat="server" ID="Button1" 
                            Text="Quotation Creation" 
                            class="btn btn-primary btn-md btn_bg" 
                            OnClick="get_qutation_Click" />
                            <asp:Button runat="server" 
                            ID="Button2" Text="Bill Creation" 
                            class="btn btn-primary btn-md btn_bg" 
                            OnClick="get_invoice_Click" />
                            <asp:Label ID="lblerror" runat="server" 
                            ForeColor="Red"></asp:Label>
                        </div>

                    </div>

                </div>
            </div>

                                        </ContentTemplate>
                     
                                </asp:UpdatePanel>
Posted
Updated 13-Sep-23 10:34am
v3
Comments
Richard MacCutchan 28-Aug-23 6:50am    
What do you mean by, "not working"? Please use the Improve question link above, and add complete details of what is happening.

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