Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using accordion with 4 panes each showing a gridview with master child relationship in hierarchy. When I am selecting a child pane using seletedIndex event & going back to parent pane by clicking on the header of the parent pane, the paging does not work, paging works for the first time but when the parent pane is revisited it stops working.

If I use update panel around the entire accordion it works, but I cannot use it because then other things stop working, like selected SelectedIndexChanged event of Gridview does not work, I am using FreeTextBox, that also does not work. Please help me.

I am attaching my aspx

XML
<asp:AccordionPane ID="AccordionPane1" runat="server" Width="1200px"  EnableViewState="false" >
    <Header ><a href="" onclick="return false;" >  Issue</a></Header>
        <Content><span>
        <asp:GridView ID="GridViewIssue" runat="server" DataSourceID="issueData" Width="100%" SelectedRowStyle-CssClass="gridSelRow" RowStyle-CssClass="gridNonSelRow"
        HeaderStyle-CssClass="gridHeader" AutoGenerateColumns="False" DataKeyNames="issueId" RowStyle-Wrap="true" EditRowStyle-Wrap="true" HeaderStyle-ForeColor="#E7E7FF"
        EditRowStyle-Height="180px" EmptyDataRowStyle-Height="180px" EditRowStyle-VerticalAlign="Top" EditRowStyle-HorizontalAlign="Left"
        FooterStyle-HorizontalAlign="Left" FooterStyle-VerticalAlign="Top"  HorizontalAlign="Left" AllowPaging="true" PageSize="3"
        PagerSettings-Mode="NumericFirstLast" PagerSettings-FirstPageText="First"
        PagerSettings-Position="Bottom" PagerSettings-NextPageText="Next" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Large"
        PagerSettings-LastPageText="Last" PagerSettings-PreviousPageText="Previous" AllowSorting="true" ShowFooter="true" OnRowEditing="GridViewIssue_OnRowEditing"
        onselectedindexchanged="GridViewIssue_SelectedIndexChanged" OnRowCommand="GridViewIssue_OnRowCommand" OnRowCreated="GridViewIssue_RowCreated"
        EnablePersistedSelection="true" >

       <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="issueId" Visible="false" runat="server" Text='<%# Bind("issueID") %>'></asp:Label>
                </ItemTemplate>
                  <FooterTemplate>
                    <asp:Label ID="issueId" Visible="false" runat="server" Text='<%# Bind("issueID") %>'></asp:Label>
                </FooterTemplate>

           </asp:TemplateField><asp:TemplateField  HeaderText="Report No."  SortExpression="issueRepNo" ControlStyle-Width="160px" FooterStyle-Width="160px"
                HeaderStyle-Width="160px" FooterStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle">
                <EditItemTemplate>
                    <asp:TextBox  ID="tbReportNo" runat="server" Width="160px" MaxLength="30"  Text='<%# Bind("issueRepNo") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rvReportNo1" runat="server" SetFocusOnError="true"
                        ErrorMessage="Issue Report No. Cann't be blank !" ControlToValidate="tbReportNo" />
                    <asp:CustomValidator runat="server" id="rvDupReportNo" controltovalidate="tbReportNo" onservervalidate="DupReportNoEd_ServerValidate" errormessage="Duplicate Report No.!" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="issueRep" Width="160px"  runat="server" Text='<%# Bind("issueRepNo") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:TextBox runat="server" Width="160px"  MaxLength="30" ID="tbReportNo" Visible="false" Text='<%# Bind("issueRepNo") %>' />
                    <asp:RequiredFieldValidator ID="rvReportNo2" runat="server" SetFocusOnError="true"
                        ErrorMessage="Issue Report No. Cann't be blank !" ControlToValidate="tbReportNo" />
                    <asp:CustomValidator runat="server" id="rvDupReportNo" controltovalidate="tbReportNo" onservervalidate="DupReportNo_ServerValidate" errormessage="Duplicate Report No.!" />
                </FooterTemplate>
           </asp:TemplateField><asp:TemplateField HeaderText="Event/ Issue Problem Summary Statement"  ControlStyle-Width="920px"
                FooterStyle-VerticalAlign="Top" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left">
                <EditItemTemplate >

                <FTB:FreeTextBox id="tbIssueSum" Width="920px" Text='<%# Bind("issueSummary") %>'
                    ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist|NetSpell"
                    runat="Server"  />
                    <asp:RequiredFieldValidator ID="rvIssueSum1" runat="server" SetFocusOnError="true" Display="Dynamic"
                        ErrorMessage="Issue Summary Cann't be blank !"  ControlToValidate="tbIssueSum">
                    </asp:RequiredFieldValidator>

                </EditItemTemplate >
                <ItemTemplate>
                    <asp:Label ID="issueSum" runat="server" Width="920px" Text='<%# Bind("issueSummary") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                <FTB:FreeTextBox id="tbIssueSum" Width="920px" Visible="false" Text='<%# Bind("issueSummary") %>'
                    ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist|NetSpell"
                    runat="Server"  />
                    <asp:RequiredFieldValidator ID="rvIssueSum2" runat="server" Display="None" EnableClientScript="true" EnableViewState="true" SetFocusOnError="true"
                        ErrorMessage="Issue Summary Cann't be blank !" ControlToValidate="tbIssueSum">
                    </asp:RequiredFieldValidator>
                </FooterTemplate>
            </asp:TemplateField>
            <asp:TemplateField  HeaderStyle-Font-Size="Medium"  HeaderText="Commands"  ControlStyle-Width="95px" HeaderStyle-Width="95px" FooterStyle-Width="95px"
              FooterStyle-VerticalAlign="Middle" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" >
            <ItemTemplate>
                <asp:Button runat="server" Width="95px" ID="Edit" Text="Edit" CausesValidation="false" CommandName="Edit" /><br />
                <asp:Button    runat="server" Width="95px" ID="btnDelIssue" Text="Delete" OnClientClick="return confirm('Are you certain you want to delete this entry ? It will delete all events, human errors & HW failres associated with it');" CausesValidation="false" CommandName="Delete" /><br />
                <asp:Button    runat="server" Width="95px" ID="Button1" CausesValidation="false" Text="Event Details" CommandName="Select" /><br />
                <asp:Button    runat="server" Width="95px" ID="TLReport" Text="Report" CommandName="Report" CausesValidation="false" CommandArgument="<%# Container.DataItemIndex %>"/>
            </ItemTemplate>
            <EditItemTemplate>
                <asp:Button    runat="server" Width="95px" ID="Update" Text="Update" CommandName="MyUpdate" CausesValidation="false" />
                <asp:Button    runat="server" Width="95px" ID="Cancel" Text="Cancel" CausesValidation="false" CommandName="Cancel" />
            </EditItemTemplate>

            <HeaderTemplate>
                <asp:Button    runat="server" Width="95px" ID="Insert" CausesValidation="false" Text="Insert" CommandName="InsertNew" CommandArgument="FooterTempl" />
            </HeaderTemplate>
            <FooterTemplate>
                 <asp:Button    runat="server" Width="95px" CausesValidation="false" ID="SaveNew" Text="Save" CommandName="SaveNew" Visible="false" CommandArgument="FooterTempl"/>
                <asp:Button    runat="server" Width="95px" ID="CancelNew" Text="Cancel" CommandName="CancelNew" CausesValidation="false" Visible="false" CommandArgument="FooterTempl"/>
            </FooterTemplate>
        </asp:TemplateField></Columns>

        <EmptyDataTemplate> No Data Found, Create New<br /> <asp:Table Width="1200px" runat="server" >
            <asp:TableHeaderRow CssClass="emptyDataHeader">
                <asp:TableHeaderCell Width="160px" >Report No.</asp:TableHeaderCell><asp:TableHeaderCell  Width="920px"  >Event/ Issue Problem Summary Statement</asp:TableHeaderCell><asp:TableHeaderCell Width="95px"></asp:TableHeaderCell></asp:TableHeaderRow><asp:TableRow>
                <asp:TableCell  Width="160px" > <asp:TextBox ID="tbReportNo" runat="server" MaxLength="30" Text='<%# Bind("issueRepNo") %>'></asp:TextBox><asp:RequiredFieldValidator ID="rvReportNo3" runat="server"
                        ErrorMessage="Issue Report No. Cann't be blank !" ControlToValidate="tbReportNo" />
                    <asp:CustomValidator runat="server" id="rvDupReportNo" controltovalidate="tbReportNo" onservervalidate="DupReportNo_ServerValidate" errormessage="Duplicate Report No.!" />
                </asp:TableCell>
                <asp:TableCell  > <FTB:FreeTextBox id="tbIssueSum" Width="920px" Text='<%# Bind("issueSummary") %>'
                    ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist|NetSpell"
                    runat="Server"  />
                    <asp:RequiredFieldValidator ID="rvIssueSum3" runat="server"
                        ErrorMessage="Issue Summary Cann't be blank !" ControlToValidate="tbIssueSum"> </asp:RequiredFieldValidator></asp:TableCell><asp:TableCell  Width="95px"  > <asp:Button runat="server" Width="95px" ID="SaveNew" CausesValidation="false" Text="Save" CommandName="SaveNew" CommandArgument="EmptyTempl" />
                    <asp:Button runat="server" Width="95px" ID="CancelNew" CausesValidation="false" Text="Cancel" CommandName="CancelEmpty" CommandArgument="EmptyTempl"/>
                </asp:TableCell>
              </asp:TableRow>
          </asp:Table>
        </EmptyDataTemplate>
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        </asp:GridView>

        </span>
        </Content>

  </asp:AccordionPane>


  <asp:AccordionPane ID="AccordionPane2" runat="server" Width="1200"  EnableViewState="false"><Header>
  <asp:Label ID="timeLineHeader" runat="server" /></Header>
  <Content><span>
       <asp:GridView ID="GridViewTimeline" runat="server" DataSourceID="timelineData" Width="100%" AutoGenerateColumns="False" DataKeyNames="eventTimeLineId"
        SelectedRowStyle-CssClass="gridSelRow" RowStyle-CssClass="gridNonSelRow" HeaderStyle-CssClass="gridHeader" RowStyle-Wrap="true" EditRowStyle-Wrap="true"
        EditRowStyle-Height="180px" EmptyDataRowStyle-Height="180px" EditRowStyle-VerticalAlign="Top"  HeaderStyle-ForeColor="#E7E7FF"
        EditRowStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" FooterStyle-VerticalAlign="Top"  HorizontalAlign="Left" AllowPaging="true"
        PagerStyle-BackColor="#C6C3C6" PagerStyle-ForeColor="Black" PagerStyle-HorizontalAlign="Right" PageSize="3" PagerSettings-Mode="NumericFirstLast"
        PagerSettings-FirstPageText="First" PagerSettings-Position="Bottom" PagerSettings-LastPageText="Last" AllowSorting="true" ShowFooter="true"
        OnRowEditing="GridViewTimeline_OnRowEditing" OnSelectedIndexChanged ="GridViewTimeline_SelectedIndexChanged" OnRowCommand="GridViewTimeline_OnRowCommand"
        OnRowCreated="GridViewTimeline_RowCreated"  OnDataBound="GridViewTimeLine_DataBound">

        <Columns>

           <asp:TemplateField  HeaderStyle-Font-Size="Medium"  HeaderText="Seq. No." SortExpression="eventSeqNo" ItemStyle-Wrap="true" FooterStyle-Height="0px"
                ControlStyle-Width="16px" ItemStyle-Width="16px" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Middle" FooterStyle-VerticalAlign="Middle"
                HeaderStyle-Width="16px"   >
                <EditItemTemplate>
                    <asp:TextBox ID="tbSeqNo" Width="16px" runat="server" Text='<%# Bind("eventSeqNo") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rvSeqNo1" runat="server"
                            ErrorMessage="Event Time Line Sequence No. Cann't be blank!" ControlToValidate="tbSeqNo" />
                    <asp:RegularExpressionValidator ID="reSeqNo1" runat="server"
                            ErrorMessage="Must be an integer" ControlToValidate="tbSeqNo" ValidationExpression="^\d+$" />
                    <asp:CustomValidator runat="server" id="rvDupEvntSeqNo" controltovalidate="tbSeqNo" onservervalidate="DupEvntSeqNoEd_ServerValidate" errormessage="Duplicate Event Sequence No.!" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lblSeqNoId" Width="16px" runat="server" Text='<%# Bind("eventSeqNo") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:TextBox runat="server" Width="16px" Visible="false" ID="tbSeqNo" Text='<%# Bind("eventSeqNo") %>' />
                    <asp:RequiredFieldValidator ID="rvSeqNo2" runat="server"
                            ErrorMessage="Event Time Line Sequence No. Cann't be blank!" ControlToValidate="tbSeqNo" />
                    <asp:RegularExpressionValidator ID="reSeqNo2" runat="server"
                            ErrorMessage="Must be an integer" ControlToValidate="tbSeqNo" ValidationExpression="^\d+$" />
                    <asp:CustomValidator runat="server" id="rvDupEvntSeqNo" controltovalidate="tbSeqNo" onservervalidate="DupEvntSeqNo_ServerValidate" errormessage="Duplicate Event Sequence No.!" />
           </FooterTemplate>
            </asp:TemplateField><asp:TemplateField  HeaderStyle-Font-Size="Medium"  HeaderText="Date And Time" SortExpression="eventDate"  ItemStyle-Wrap="true" FooterStyle-Height="0px" FooterStyle-VerticalAlign="Middle"
              ItemStyle-HorizontalAlign="left" ItemStyle-VerticalAlign="Middle" ControlStyle-Width="114px" FooterStyle-Width="114px" HeaderStyle-Width="114px">
             <EditItemTemplate>
                <asp:TextBox Width="114px" ID="tbEventDateTime" ToolTip="mm/dd/yyyy hh:mm;ss" runat="server" Wrap="true" Text='<%# Bind("eventDate") %>' /><br />
                <asp:CalendarExtender ID="clEventDate" ClearTime="false" runat="server" Enabled="True" Format="MM'/'dd'/'yyyy hh':'mm':'ss"
                 TargetControlID="tbEventDateTime" />
                 <asp:RegularExpressionValidator ID="reCmpEventDate1" runat="server"
                    ErrorMessage="Must be Date Time Expression of Format mm/dd/yyyy hh:mm:ss AM/PM hh in the span of 12 hrs" ControlToValidate="tbEventDateTime"
                    ValidationExpression="^(([0][1-9])|([1-9])|(1[0-2]))/(([0][1-9])|([1-9])|([12]\d)|(3[0-1]))/([1-2]\d{3})\s((\d)|(0\d)|(1[0-2])):[0-5]\d:[0-5]\d\s[AP]M$"  />
                <asp:CustomValidator runat="server" id="rvCmpEventDate1" controltovalidate="tbEventDateTime" onservervalidate="CmpEventDateTime_ServerValidate" errormessage="Date & Time cannot be Greater than Now!" />
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="lbEventDate"  Width="114px" runat="server"  Text='<%# Bind("eventDate") %>'></asp:Label>
            </ItemTemplate>
            <FooterTemplate>
                <asp:TextBox Width="114px" Visible="false" ID="tbEventDateTime" ToolTip="mm/dd/yyyy hh:mm;ss" runat="server" Wrap="true" Text='<%# Bind("eventDate")%>' /><br />
                <asp:CalendarExtender ID="clEventDate" runat="server" Enabled="True" Format="MM'/'dd'/'yyyy HH':'mm':'ss" TargetControlID="tbEventDateTime" />
                   <asp:RegularExpressionValidator ID="reCmpEventDate2" runat="server"
                            ErrorMessage="Must be Date Time Expression of Format mm/dd/yyyy hh:mm:ss AM/PM hh in the span of 12 hrs" ControlToValidate="tbEventDateTime"
                    ValidationExpression="^(([0][1-9])|([1-9])|(1[0-2]))/(([0][1-9])|([1-9])|([12]\d)|(3[0-1]))/([1-2]\d{3})\s((\d)|(0\d)|(1[0-2])):[0-5]\d:[0-5]\d\s[AP]M$"  />
                <asp:CustomValidator runat="server" id="rvCmpEventDate" controltovalidate="tbEventDateTime" onservervalidate="CmpEventDateTime_ServerValidate" errormessage="Date & Time cannot be Greater than Now!" />
            </FooterTemplate>
            </asp:TemplateField>
            <asp:TemplateField  HeaderStyle-Font-Size="Medium"  HeaderText="What Actually Happened" SortExpression="ActualHappen" ItemStyle-Wrap="true"
            ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Top" ControlStyle-Width="375px">
            <EditItemTemplate>
                 <FTB:FreeTextBox id="tbActHappen" Text='<%# Bind("ActualHappen") %>' Width="375px"
                    ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist|NetSpell"
                    runat="Server"  />
                      <asp:RequiredFieldValidator ID="rvActHapn1" runat="server"
                            ErrorMessage="What Actually Happened cannot be blank!" ControlToValidate="tbActHappen">
                      </asp:RequiredFieldValidator>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="tbActHappen"  Width="375px" runat="server" Text='<%# Bind("ActualHappen") %>'></asp:Label>
            </ItemTemplate>
            <FooterTemplate>
                <FTB:FreeTextBox id="tbActHappen" Visible="false"  Width="375px" Text='<%# Bind("ActualHappen") %>'
                ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist|NetSpell" runat="Server"  />
                <asp:RequiredFieldValidator ID="rvActHapn2" runat="server"
                            ErrorMessage="What Actually Happened cannot be blank!" ControlToValidate="tbActHappen">
                        </asp:RequiredFieldValidator>
            </FooterTemplate>
            </asp:TemplateField><asp:TemplateField  HeaderStyle-Font-Size="Medium"  HeaderText="What Should Have Happened" SortExpression="IdealHappen" ItemStyle-Wrap="true"
                 ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Top" ControlStyle-Width="375px">
            <EditItemTemplate>
                 <FTB:FreeTextBox id="tbIdealHappen" Text='<%# Bind("IdealHappen") %>' Width="375px"
                 ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist|NetSpell"
                    runat="Server"  />
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="tbIdealHappen" runat="server" Width="375px"  Text='<%# Bind("IdealHappen") %>'></asp:Label>
            </ItemTemplate>
            <FooterTemplate>
                 <FTB:FreeTextBox id="tbIdealHappen" Visible="false" Text='<%# Bind("IdealHappen") %>' Width="375px"
                 ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist|NetSpell"
                    runat="Server"  />
            </FooterTemplate>
            </asp:TemplateField><asp:TemplateField  HeaderStyle-Font-Size="Medium"  HeaderText="Commands" ControlStyle-Width="95px" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="114px"
            FooterStyle-Height="0px" FooterStyle-Width="95px" FooterStyle-VerticalAlign="Middle" >
            <ItemTemplate>
                <asp:Button runat="server" Width="95px" ID="Edit" Text="Edit" CausesValidation="false" CommandName="Edit" CommandArgument="<%# Container.DataItemIndex %>" /><br />
                <asp:Button runat="server"  Width="95px" ID="btnDelIssue" Text="Delete"  OnClientClick="return confirm('Are you certain you want to delete this entry ? It will delete all human errors & HW failres associated with it');" CausesValidation="false"  CommandName="Delete" /><br />
                <asp:Button runat="server"  Width="95px" ID="HumErr" ToolTip="Enter Human Error Observations" CausesValidation="false" Text="Human Error" OnClick="noteSel1" CommandName="Select" /><br />
                <asp:Button runat="server"  Width="95px" ID="HWErr" Text="H/W Failure" CausesValidation="false" OnClick="noteSel2" CommandName="Select" /><br />
            </ItemTemplate>
            <EditItemTemplate>
                <asp:Button runat="server"  Width="95px" ID="Update" Text="Update" CommandName="MyUpdate" CausesValidation="false" />
                <asp:Button runat="server"  Width="95px" ID="Cancel" Text="Cancel" CommandName="Cancel" CausesValidation="false" />
            </EditItemTemplate>
            <HeaderTemplate>
                <asp:Button runat="server"  Width="95px" ID="Insert" CausesValidation="false" Text="Insert" CommandName="InsertNew"  CommandArgument="FooterTempl"/>
            </HeaderTemplate>
            <FooterTemplate>
                <asp:Button runat="server"  Width="95px" ID="SaveNew" Text="Save" CausesValidation="false" CommandName="SaveNew" Visible="false" CommandArgument="FooterTempl"/>
                <asp:Button runat="server"  Width="95px" ID="CancelNew" Text="Cancel" CausesValidation="false"  CommandName="CancelNew" Visible="false" CommandArgument="FooterTempl"/>
            </FooterTemplate>
            </asp:TemplateField></Columns>

        <EmptyDataTemplate> No Data Found, Create New<br /> <asp:Table ID="Table1" Width="1200px" runat="server" BorderWidth="1">
            <asp:TableHeaderRow CssClass="emptyDataHeader">
                <asp:TableHeaderCell width="16px" Wrap="true">Seq.No.</asp:TableHeaderCell>
                <asp:TableHeaderCell  Width="114px">Date And Time</asp:TableHeaderCell>
                <asp:TableHeaderCell  Width="375px">What Actually Happened</asp:TableHeaderCell>
                <asp:TableHeaderCell Width="375px"  >What Should Have Happened</asp:TableHeaderCell>
                <asp:TableHeaderCell Width="95px"></asp:TableHeaderCell></asp:TableHeaderRow><asp:TableRow>
                <asp:TableCell HorizontalAlign="Center"  Width="16px" VerticalAlign="Middle" BorderWidth="1px"> <asp:TextBox ID="tbSeqNo" runat="server"  Width="16px" />
                    <asp:RequiredFieldValidator ID="rvSeqNo3" runat="server"
                            ErrorMessage="Event Time Line Sequence No. Cann't be blank!" ControlToValidate="tbSeqNo" />
                    <asp:RegularExpressionValidator ID="reSeqNo3" runat="server"
                            ErrorMessage="Must be an integer" ControlToValidate="tbSeqNo" ValidationExpression="^\d+$" />
                    <asp:CustomValidator runat="server" id="rvDupEvntSeqNo" controltovalidate="tbSeqNo" onservervalidate="DupEvntSeqNo_ServerValidate" errormessage="Duplicate Event Seq. No.!" />
                </asp:TableCell>
                <asp:TableCell  BorderWidth="1px" Width="114px" HorizontalAlign="Center" VerticalAlign="Middle">
                <asp:TextBox Width="114px" ID="tbEventDateTime" ToolTip="mm/dd/yyyy hh:mm;ss" runat="server" Wrap="true" Text='<%# Bind("eventDate")%>' /><br />
                    <asp:CalendarExtender ID="clEventDate" ClearTime="false" runat="server" Enabled="True" Format="MM'/'dd'/'yyyy HH':'mm':'ss" TargetControlID="tbEventDateTime" />
                       <asp:RegularExpressionValidator ID="reCmpEventDate3" runat="server"
                            ErrorMessage="Must be Date Time Expression of Format mm/dd/yyyy hh:mm:ss AM/PM hh in the span of 12 hrs" ControlToValidate="tbEventDateTime"
                    ValidationExpression="^(([0][1-9])|([1-9])|(1[0-2]))/(([0][1-9])|([1-9])|([12]\d)|(3[0-1]))/([1-2]\d{3})\s((\d)|(0\d)|(1[0-2])):[0-5]\d:[0-5]\d\s[AP]M$"  />
                    <asp:CustomValidator runat="server" id="rvCmpEventDate" controltovalidate="tbEventDateTime" onservervalidate="CmpEventDateTime_ServerValidate" errormessage="Date & Time cannot be Greater than Now!" />
                </asp:TableCell >
                <asp:TableCell  BorderWidth="1px" Width="375px" HorizontalAlign="Center" VerticalAlign="Top" >
                    <FTB:FreeTextBox id="tbActHappen" Width="375px" Text='<%# Bind("ActualHappen") %>' ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist|NetSpell" runat="Server"  />
                      <asp:RequiredFieldValidator ID="rvActHapn3" runat="server" ErrorMessage="What Actually Happened cannot be blank!" ControlToValidate="tbActHappen">
                      </asp:RequiredFieldValidator></asp:TableCell>
                <asp:TableCell   BorderWidth="1px" Width="375px" HorizontalAlign="Center" VerticalAlign="Top"> <FTB:FreeTextBox id="tbIdealHappen" Text='<%# Bind("IdealHappen") %>'
                    Width="375px" ToolbarLayout="paragraphmenu,fontsizesmenu;bold,italic,underline|bulletedlist,numberedlist|NetSpell" runat="Server"  />
                </asp:TableCell>
                <asp:TableCell  Width="95px" HorizontalAlign="Left"  BorderWidth="1px" VerticalAlign="Middle">
                <asp:Button runat="server"  Width="100%" ID="SaveNew" CausesValidation="false"  Text="Save" CommandName="SaveNew" CommandArgument="EmptyTempl" />
                    <asp:Button runat="server"  Width="100%" ID="CancelNew" CausesValidation="false" Text="Cancel" CommandName="CancelEmpty" CommandArgument="EmptyTempl"/>
                </asp:TableCell>
              </asp:TableRow>
          </asp:Table>
        </EmptyDataTemplate>

        </asp:GridView>
        </span>
        </Content>
  </asp:AccordionPane>
Posted
Updated 12-Feb-11 3:10am
v3
Comments
shakil0304003 12-Feb-11 10:58am    
Too large!!! no one will be interest to read this :(
Ali Al Omairi(Abu AlHassan) 12-Feb-11 12:22pm    
Sir, i am not interested in reading your ASP code. but according to your description you need to add a trigger to your update panel.
Sunasara Imdadhusen 13-Feb-11 23:59pm    
Your code is too large! if possible please provide only piece of code.

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