Karthik K

Karthik K

  • 1k
  • 738
  • 192.3k

Button event Not Firing in UpdatePanel?..

Sep 26 2013 9:49 AM
 


 Hi Friends ,

               I had a issue on the Button event in the UpdatePanel..I dont know where did i make mistate?..

Guide me if Possible ..  I included the Coding..Bellow check that..And Revert me..

  +++++++++++++++++++Coding+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 


<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Complaints.aspx.cs" Inherits="Complaints" Title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" TagPrefix="asp" Namespace="AjaxControlToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="StyleSheet.css" rel="Stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <asp:UpdatePanel ID="Upanel45" runat="server" UpdateMode="Conditional">
   <ContentTemplate>--%>
    <div style="height:500px" align="center">
    <br />
    <br />   
   <table>
   <tr>
   <th>COMPLAINT REGISTER</th>
   </tr>
  </table>    
     <table  align="center">
 <tr>
 <td></td>
 <td></td>
 <td></td>
 <td></td>
  <td align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  COMPLAINT NO</td>
   <td align="right"><asp:TextBox ID="txtComplaintNo" runat="server"  Width="70px"></asp:TextBox></td>
  </tr>

    <caption>
        <br />
        </tr>
    </caption>
 
 </table>  
 <br />
   <table align="center">

<tr>
<td class="label" style="width="250px">COMPLAIN DT</td>
<td><asp:TextBox ID="txtComplaintDt" runat="server" CssClass="textbox" Width="150px"></asp:TextBox>
<asp:CalendarExtender ID="calFirstDueDate" runat="server" CssClass="cal_Theme1" TargetControlID="txtComplaintDt" Format="dd/MMM/yy" PopupPosition="BottomLeft" FirstDayOfWeek="Sunday"></asp:CalendarExtender>
</td>
<td class="label">CALL TIME</td>
<td><asp:TextBox ID="txtCallTime" runat="server" CssClass="textbox" Width="150px"></asp:TextBox></td>

<td class="label">PICKUP TIME</td>
<td>
<asp:TextBox ID="txtPickupTime" runat="server" CssClass="textbox" Width="70px" AutoPostBack="true"></asp:TextBox>
 <asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server" ErrorTooltipEnabled="True"
                                                    InputDirection="LeftToRight" Mask="99:99" MaskType="Time" MessageValidatorTip="true"
                                                    TargetControlID="txtPickupTime" />
                                                <asp:MaskedEditValidator ID="MaskedEditValidator2" runat="server" ControlExtender="MaskedEditExtender2"
                                                    ControlToValidate="txtPickupTime" EmptyValueBlurredText="" EmptyValueMessage=""
                                                    InvalidValueBlurredMessage="" IsValidEmpty="false" MaximumValue="23:59" MaximumValueMessage="23:59:59"
                                                    MinimumValue="00:00" MinimumValueMessage="Time must be grater than 00:00" ToolTip="Enter time between 00:00 to 23:59"></asp:MaskedEditValidator>
</td>

</tr>
<tr>
<td class="label">PHONENO@BOOKING</td>
<td><asp:TextBox ID="txtPhoneBookingNo" runat="server" CssClass="textbox" 
        Width="150px" AutoPostBack="true"></asp:TextBox></td>
<td class="label">BOOKING NO</td>
<td><asp:TextBox ID="txtBookingNo" runat="server" CssClass="textbox" Width="150px"></asp:TextBox></td>
<td class="label">BOOKING Dt</td>
<td><asp:TextBox ID="txtBookingDt" runat="server" CssClass="textbox" Width="150px"></asp:TextBox>
<asp:CalendarExtender ID="calRequestDt" runat="server" CssClass="cal_Theme1" TargetControlID="txtBookingDt" Format="dd/MMM/yy" PopupPosition="BottomLeft" FirstDayOfWeek="Sunday"></asp:CalendarExtender>
</td>
</tr>
<tr>
<td class="label">CUSTMER NAME</td>
<td><asp:TextBox ID="txtCusName" runat="server" CssClass="textbox" Width="150px"></asp:TextBox></td>
<td class="label">CUSTOMER ID</td>
<td><asp:TextBox ID="txtCusID" runat="server" CssClass="textbox" Width="150px"></asp:TextBox></td>
<td class="label">COUNT</td>
<td><asp:TextBox ID="txtCount" runat="server" CssClass="textbox" Width="150px"></asp:TextBox></td>
</tr>
<tr>
<td class="label">ADDRESS</td>
<td colspan="4"><asp:TextBox ID="txtAddress1" runat="server" CssClass="textbox" Width="320px"></asp:TextBox></td>

<td class="label" style="color:Maroon; width:410px font-weight:bold;">PREVIOUS CALLS AND STEPS TAKEN</td>
</tr>
<tr>
<td></td>
<td colspan="4"><asp:TextBox ID="txtAddress2" runat="server" CssClass="textbox" Width="320px"></asp:TextBox></td>
<td valign="top" rowspan="5"><asp:TextBox ID="txt" runat="server" TextMode="MultiLine" CssClass="textbox" style="resize:none;" Height="100px" Width="255px"></asp:TextBox></td>
</tr>
<tr>
<td></td>
<td colspan="4"><asp:TextBox ID="txtAddress3" runat="server" CssClass="textbox" Width="320px"></asp:TextBox></td>
</tr>
<tr>
<td></td>
<td colspan="4"><asp:TextBox ID="txtAddress4" runat="server" CssClass="textbox" Width="320px"></asp:TextBox></td>
</tr>
<tr>
<td></td>
<td colspan="4"><asp:TextBox ID="txtPincode" runat="server" CssClass="textbox" Width="320px"></asp:TextBox></td>
</tr>
<tr>
<td class="label">DRIVER CODE</td>
<td style="padding-bottom:10px">
<asp:ComboBox ID="ddlDriverCode" runat="server" Width="165px"
AutoCompleteMode="SuggestAppend" AutoPostBack="true"
CaseSensitive="false" DropDownStyle="DropDownList" ItemInsertLocation="Append"
ListItemHoverCssClass="ComboBoxListItemHover" RenderMode="Inline" 
     ></asp:ComboBox>

</td>
<td class="label">DRIVER NAME</td>
<td><asp:TextBox ID="txtDriverName" runat="server" CssClass="textbox" Width="170px"></asp:TextBox></td>
</tr>
<tr>
<td class="label">STEPS TAKEN</td>
<td colspan="5" class="label"><asp:TextBox ID="txtStepsTaken" runat="server" CssClass="textbox" Width="400px" style="resize:none;" height="45px" TextMode="MultiLine" ></asp:TextBox>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;STATUS
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:DropDownList ID="ddlComplaintStatus" runat="server" Width="153px">
<asp:ListItem Text="Pending" Value="0"></asp:ListItem>
<asp:ListItem Text="Completed" Value="1"></asp:ListItem>
</asp:DropDownList>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>

</tr>
</table>
   
  <table>
  <tr>
  <td align="center">
  <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="button" 
          onclick="btnSave_Click"/>
  </td>
  <td align="center">
  <asp:Button ID="btnUpdate" runat="server" Text="Update" CssClass="button" 
          onclick="btnUpdate_Click"/>
  </td>
  </tr>
  </table> 
 
  </div>
<%--  </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


  Thanks in advance .

  Regard,

 - Karthik Che
  






Answers (5)