Select Works Until I Use a Search Or Sort and Then the Below

Select Works Until I Use a Search Or Sort and Then the Below

<p>Select works until I use a search or sort and then the below</p><p><%@ Page Language="VB" AutoEventWireup="false" CodeFile="CitationsForm.aspx.vb" Inherits="CitationsForm" %></p><p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></p><p><html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> .style1 { width: 100%; height: 47px; background-color: #CCCCCC; } .style2 { text-align: center; height: 34px; background-color: #CCCCCC; } .style3 { width: 140px; } .style5 { width: 85px; height: 26px; } .style6 { width: 140px; height: 26px; } .style8 { height: 26px; width: 129px; } .style9 { width: 136px; height: 26px; } .style10 { width: 136px; } .style11 { width: 77px; height: 26px; } .style13 { height: 26px; width: 111px; } .style14 { width: 111px; } .style15 { width: 85px; height: 23px; } .style16 { } .style18 { width: 136px; height: 23px; } .style20 { height: 23px; } .style22 { width: 74px; height: 26px; } .style23 { width: 74px; } .style25 { height: 26px; width: 112px; } .style26 { width: 112px; } .style28 { height: 26px; width: 90px; } .style29 { width: 90px; } .style30 { width: 90px; height: 23px; } .style31 { width: 129px; } .style32 { height: 23px; width: 129px; } .style36 { height: 26px; width: 106px; } .style37 { width: 106px; } .style38 { width: 106px; height: 23px; } .style39 { width: 77px; } .style40 { width: 77px; height: 23px; } .style42 { } .style44 { height: 19px; text-align: center; } .style46 { width: 111px; height: 19px; } .style47 { width: 74px; height: 19px; } .style49 { width: 90px; height: 19px; } .style50 { width: 129px; height: 19px; } .style51 { text-align: left; height: 19px; width: 119px; } .style52 { height: 19px; text-align: left; width: 119px; } .style54 { width: 119px; height: 23px; } .style55 { text-align: center; width: 119px; } .style56 { width: 110px; height: 19px; } .style60 { width: 124px; height: 19px; } .style63 { width: 94px; height: 19px; } .style67 { background-color: #FFFFFF; } .style68 { width: 717px; background-color: #FFFFFF; } .style69 { width: 114px; background-color: #FFFFFF; } .style70 { background-color: #000066; } .style71 { width: 717px; background-color: #000066; } .style72 { width: 114px; background-color: #000066; } </style> </head> <body style="height: 295px; width: 1043px; font-size: small;"> <form id="form1" runat="server"> <div style="height: 33px; width: 1035px"></p><p><table class="style1" bgcolor="#B5C7DE" cellpadding="0" cellspacing="0"> <tr> <td class="style72"> <asp:Menu ID="Menu1" runat="server" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="White" Orientation="Horizontal" StaticSubMenuIndent="10px" Height="25px" style="font-size: medium; color: #FFFFFF" Width="85px"> <DynamicHoverStyle BackColor="#284E98" ForeColor="White" /> <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" BackColor="Blue" /> <DynamicMenuStyle BackColor="#B5C7DE" /> <DynamicSelectedStyle BackColor="#507CD1" /> <Items> <asp:MenuItem Text="Reports" Value="Reports"> <asp:MenuItem Text="Pending Citations" Value="Pending Citations"> <asp:MenuItem Text="Past Due Citations" Value="Past Due Citations"> </asp:MenuItem> </asp:MenuItem> <asp:MenuItem Text="Follow Up Citations" Value="Follow Up Citations"> <asp:MenuItem Text="Past Due Follow Up" Value="Past Due Follow Up"> </asp:MenuItem> </asp:MenuItem> <asp:MenuItem Text="Citations Not Reviewed" Value="Citations Not Reviewed"> </asp:MenuItem> </asp:MenuItem> </Items> <StaticHoverStyle BackColor="#284E98" ForeColor="White" /> <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" /> <StaticSelectedStyle BackColor="#507CD1" /> </asp:Menu> </td> <td class="style71"> <asp:Label ID="Label25" runat="server" BorderStyle="None" ForeColor="#284E98" Height="26px" style="font-size: medium; color: #FFFFFF; margin-left: 6px" Text="Search In:" Width="85px"></asp:Label> <asp:DropDownList ID="DropDownList1" runat="server" Height="26px" Width="155px" style="font-size: small; margin-left: 0px"> <asp:ListItem></asp:ListItem> <asp:ListItem Value="CitationID">Citation ID</asp:ListItem> <asp:ListItem Value="EnteredBy">Entered By</asp:ListItem> <asp:ListItem Value="ShowAll"></asp:ListItem> </asp:DropDownList> <asp:Label ID="Label26" runat="server" ForeColor="#284E98" Height="25px" style="font-size: medium; color: #FFFFFF" Text="Search For:" Width="83px"></asp:Label> <asp:TextBox ID="TextBox22" runat="server" style="margin-left: 8px" Height="22px" Width="148px"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Find" Width="90px" Height="22px" style="color: #000066; margin-left: 6px" /> </td> <td class="style70"> &nbsp;</td> </tr> <tr> <td class="style69"> &nbsp;</td> <td class="style68"> &nbsp;</td> <td class="style67"> &nbsp;</td> </tr> </table> <br /> <br /></p><p></div> <asp:Panel ID="Panel1" runat="server" BorderStyle="Solid" Height="253px" ScrollBars="Vertical" Width="1035px"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="3" DataKeyNames="CitationID" DataSourceID="SqlDataSource1" GridLines="Vertical" Height="253px" Width="100%" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" AllowSorting="True"> <AlternatingRowStyle BackColor="#DCDCDC" /> <Columns> <asp:CommandField ShowSelectButton="True" /> <asp:BoundField DataField="CitationID" HeaderText="CitationID" InsertVisible="False" ReadOnly="True" SortExpression="CitationID" /> <asp:BoundField DataField="PID" HeaderText="PID" SortExpression="PID" /> <asp:BoundField DataField="DateEntered" HeaderText="Date Entered" SortExpression="DateEntered" DataFormatString="{0:d}" /> <asp:BoundField DataField="EnteredBy" HeaderText="EnteredBy" SortExpression="EnteredBy" /> <asp:BoundField DataField="CitationDate" HeaderText="CitationDate" SortExpression="CitationDate" DataFormatString="{0:d}" /> <asp:BoundField DataField="DateReceived" HeaderText="DateReceived" SortExpression="DateReceived" DataFormatString="{0:d}" /> <asp:BoundField DataField="IssuingAgency" HeaderText="IssuingAgency" SortExpression="IssuingAgency" /> <asp:BoundField DataField="DueDate" HeaderText="DueDate" SortExpression="DueDate" DataFormatString="{0:d}" /> <asp:BoundField DataField="PersonResponsible" HeaderText="PersonResponsible" SortExpression="PersonResponsible" /> </Columns> <FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" /> <RowStyle BackColor="#EEEEEE" ForeColor="Black" /> <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" /> <SortedAscendingCellStyle BackColor="#F1F1F1" /> <SortedAscendingHeaderStyle BackColor="#0000A9" /> <SortedDescendingCellStyle BackColor="#CAC9C9" /> <SortedDescendingHeaderStyle BackColor="#000065" /> </asp:GridView> </asp:Panel> <p style="width: 1041px"> <asp:FormView ID="FormView1" runat="server" DataKeyNames="CitationID" DataSourceID="SqlDataSource1" style="background-color: #CCCCCC" BackColor="#CCCCCC" Width="100%"> <EditItemTemplate> <table cellpadding="0" cellspacing="0" class="style1" width="100%"> <tr> <td class="style5"> <asp:Label ID="Label1" runat="server" style="font-size: small" Text="Citation ID:"></asp:Label> </td> <td class="style6"> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CitationID") %>' Width="100px"></asp:TextBox> </td> <td class="style36"> <asp:Label ID="Label2" runat="server" style="font-size: small" Text="PID:"></asp:Label> </td> <td class="style9"> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("PID") %>' Width="100px"></asp:TextBox> </td> <td class="style11"> <asp:Label ID="Label3" runat="server" style="font-size: small" Text="Date Entered:"></asp:Label> </td> <td class="style13"> <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("DateEntered", "{0:d}") %>' Width="100px"></asp:TextBox> </td> <td class="style22"> <asp:Label ID="Label4" runat="server" style="font-size: small" Text="Entered By:"></asp:Label> </td> <td class="style25"> <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("EnteredBy") %>' Width="100px"></asp:TextBox> </td> <td class="style28"> <asp:Label ID="Label5" runat="server" style="font-size: small" Text="Citation Date:"></asp:Label> </td> <td class="style8"> <asp:TextBox ID="TextBox5" runat="server" Height="20px" Text='<%# Bind("CitationDate", "{0:d}") %>' Width="100px"></asp:TextBox> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label6" runat="server" style="font-size: small" Text="Date Rec:"></asp:Label> </td> <td class="style3"> <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("DateReceived", "{0:d}") %>' Width="100px"></asp:TextBox> </td> <td class="style37"> <asp:Label ID="Label7" runat="server" style="font-size: small" Text="Issuing Agency"></asp:Label> </td> <td class="style10"> <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("IssuingAgency") %>'></asp:TextBox> </td> <td class="style39"> <asp:Label ID="Label8" runat="server" style="font-size: small" Text="Contact Name:"></asp:Label> </td> <td class="style14"> <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("ContactName") %>' Width="100px"></asp:TextBox> </td> <td class="style23"> <asp:Label ID="Label9" runat="server" style="font-size: small" Text="Contact Ph:"></asp:Label> </td> <td class="style26"> <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("ContactPhone") %>' Width="100px"></asp:TextBox> </td> <td class="style29"> <asp:Label ID="Label10" runat="server" Text="Due Date:"></asp:Label> </td> <td class="style31"> <asp:TextBox ID="TextBox10" runat="server" Width="100px" Text='<%# Bind("DueDate", "{0:d}") %>'></asp:TextBox> </td> </tr> <tr> <td class="style15"> <asp:Label ID="Label11" runat="server" Text="Citation No:"></asp:Label> </td> <td class="style16"> <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("CitationNumber") %>' Width="100px"></asp:TextBox> </td> <td class="style38"> <asp:Label ID="Label12" runat="server" Text="Citation Type:"></asp:Label> </td> <td class="style18"> <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("CitationType") %>'></asp:TextBox> </td> <td class="style40"> <asp:Label ID="Label13" runat="server" Text="Upload Doc:"></asp:Label> </td> <td class="style20" colspan="3"> <asp:FileUpload ID="FileUpload1" runat="server" /> </td> <td class="style30"> <asp:HyperLink ID="HyperLink1" runat="server" style="text-decoration: underline; color: #0000FF">Current Doc:</asp:HyperLink> </td> <td class="style32"> </td> </tr> <tr> <td class="style15"> <asp:Label ID="Label22" runat="server" Text="Desc/Notes"></asp:Label> </td> <td class="style16" colspan="9"> <asp:TextBox ID="TextBox19" runat="server" Height="40px" Text='<%# Bind("DescriptionNotes") %>' TextMode="MultiLine" Width="99%"></asp:TextBox> </td> </tr> </table> <table cellpadding="0" cellspacing="0" class="style1" width="100%"> <tr> <td class="style52"> &nbsp;</td> <td class="style42"> &nbsp;</td> <td class="style60"> &nbsp;</td> <td class="style44" colspan="2"> <asp:Label ID="Label24" runat="server" Text="Office Use Only"></asp:Label> </td> <td class="style46"> &nbsp;</td> <td class="style47"> &nbsp;</td> <td class="style63"> &nbsp;</td> <td class="style49"> &nbsp;</td> <td class="style50"> &nbsp;</td> </tr> <tr> <td class="style52"> <asp:Label ID="Label15" runat="server" Text="Person Reponsible:"></asp:Label> </td> <td class="style42"> <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("PersonResponsible") %>'></asp:TextBox> </td> <td class="style60"> <asp:Label ID="Label16" runat="server" Text="Date Notified PR:"></asp:Label> </td> <td class="style44"> <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("DateNotifiedPR", "{0:d}") %>'></asp:TextBox> </td> <td class="style56"> <asp:Label ID="Label17" runat="server" Text="Follow Up Date:"></asp:Label> </td> <td class="style46"> <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("FollowUpDate", "{0:d}") %>'></asp:TextBox> </td> <td class="style47"> </td> <td class="style63"> </td> <td class="style49"> </td> <td class="style50"> </td> </tr> <tr> <td class="style51"> <asp:Label ID="Label18" runat="server" Text="Fine Paid:"></asp:Label> </td> <td class="style42"> <asp:TextBox ID="TextBox16" runat="server" Text='<%# Bind("FinePaid") %>'></asp:TextBox> </td> <td class="style60"> <asp:Label ID="Label19" runat="server" Text="Reviwed by Supv:"></asp:Label> </td> <td class="style44"> <asp:TextBox ID="TextBox17" runat="server" Text='<%# Bind("ReviewedByDeptHead") %>'></asp:TextBox> </td> <td class="style56"> <asp:Label ID="Label20" runat="server" Text="Date Compelted:"></asp:Label> </td> <td class="style46"> <asp:TextBox ID="TextBox18" runat="server" Text='<%# Bind("DateCompleted", "{0:d}") %>'></asp:TextBox> </td> <td class="style47"> </td> <td class="style63"> </td> <td class="style49"> </td> <td class="style50"> </td> </tr> <tr> <td class="style51"> <asp:Label ID="Label21" runat="server" Text="Follow Up Request"></asp:Label> </td> <td class="style42" colspan="9" rowspan="2"> <asp:TextBox ID="TextBox20" runat="server" Height="40px" Text='<%# Bind("FollowUpRequest") %>' TextMode="MultiLine" Width="99%"></asp:TextBox> </td> </tr> <tr> <td class="style55"> &nbsp;</td> </tr> <tr> <td class="style54"> <asp:Label ID="Label23" runat="server" Text="Follow Up Notes:"></asp:Label> </td> <td class="style16" colspan="9" rowspan="2"> <asp:TextBox ID="TextBox21" runat="server" Height="50px" style="margin-top: 12px" Text='<%# Bind("FollowUpNotes") %>' TextMode="MultiLine" Width="99%"></asp:TextBox> </td> </tr> <tr> <td class="style55"> &nbsp;</td> </tr> </table> <div class="style2"> &nbsp;<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Save" /> &nbsp;&nbsp;&nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New" Text="Add New" /></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp; <asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" CommandName="Delete" ForeColor="Red" style="color: #FF0000" Text="Delete" /> </div> </EditItemTemplate> <InsertItemTemplate> PID: <asp:TextBox ID="PIDTextBox" runat="server" Text='<%# Bind("PID") %>' /> <br /> DateEntered: <asp:TextBox ID="DateEnteredTextBox" runat="server" Text='<%# Bind("DateEntered") %>' /> <br /> EnteredBy: <asp:TextBox ID="EnteredByTextBox" runat="server" Text='<%# Bind("EnteredBy") %>' /> <br /> CitationDate: <asp:TextBox ID="CitationDateTextBox" runat="server" Text='<%# Bind("CitationDate") %>' /> <br /> DateReceived: <asp:TextBox ID="DateReceivedTextBox" runat="server" Text='<%# Bind("DateReceived") %>' /> <br /> IssuingAgency: <asp:TextBox ID="IssuingAgencyTextBox" runat="server" Text='<%# Bind("IssuingAgency") %>' /> <br /> ContactName: <asp:TextBox ID="ContactNameTextBox" runat="server" Text='<%# Bind("ContactName") %>' /> <br /> ContactPhone: <asp:TextBox ID="ContactPhoneTextBox" runat="server" Text='<%# Bind("ContactPhone") %>' /> <br /> DueDate: <asp:TextBox ID="DueDateTextBox" runat="server" Text='<%# Bind("DueDate") %>' /> <br /> CitationNumber: <asp:TextBox ID="CitationNumberTextBox" runat="server" Text='<%# Bind("CitationNumber") %>' /> <br /> CitationType: <asp:TextBox ID="CitationTypeTextBox" runat="server" Text='<%# Bind("CitationType") %>' /> <br /> DescriptionNotes: <asp:TextBox ID="DescriptionNotesTextBox" runat="server" Text='<%# Bind("DescriptionNotes") %>' /> <br /> CitationDoc: <asp:TextBox ID="CitationDocTextBox" runat="server" Text='<%# Bind("CitationDoc") %>' /> <br /> PersonResponsible: <asp:TextBox ID="PersonResponsibleTextBox" runat="server" Text='<%# Bind("PersonResponsible") %>' /> <br /> DateNotifiedPR: <asp:TextBox ID="DateNotifiedPRTextBox" runat="server" Text='<%# Bind("DateNotifiedPR") %>' /> <br /> FollowUpDate: <asp:TextBox ID="FollowUpDateTextBox" runat="server" Text='<%# Bind("FollowUpDate") %>' /> <br /> FollowUpRequest: <asp:TextBox ID="FollowUpRequestTextBox" runat="server" Text='<%# Bind("FollowUpRequest") %>' /> <br /> FollowUpNotes: <asp:TextBox ID="FollowUpNotesTextBox" runat="server" Text='<%# Bind("FollowUpNotes") %>' /> <br /> ReviewedByDeptHead: <asp:TextBox ID="ReviewedByDeptHeadTextBox" runat="server" Text='<%# Bind("ReviewedByDeptHead") %>' /> <br /> DateCompleted: <asp:TextBox ID="DateCompletedTextBox" runat="server" Text='<%# Bind("DateCompleted") %>' /> <br /> FinePaid: <asp:TextBox ID="FinePaidTextBox" runat="server" Text='<%# Bind("FinePaid") %>' /> <br /> AcctID: <asp:TextBox ID="AcctIDTextBox" runat="server" Text='<%# Bind("AcctID") %>' /> <br /> Uname: <asp:TextBox ID="UnameTextBox" runat="server" Text='<%# Bind("Uname") %>' /> <br /> LastUpdated: <asp:TextBox ID="LastUpdatedTextBox" runat="server" Text='<%# Bind("LastUpdated") %>' /> <br /> <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" /> &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /> </InsertItemTemplate> <ItemTemplate> <table class="style1" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="style5"> <asp:Label ID="Label1" runat="server" style="font-size: small" Text="Citation ID:"></asp:Label> </td> <td class="style6"> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CitationID") %>' Width="100px"></asp:TextBox> </td> <td class="style36"> <asp:Label ID="Label2" runat="server" style="font-size: small" Text="PID:"></asp:Label> </td> <td class="style9"> <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("PID") %>' Width="100px"></asp:TextBox> </td> <td class="style11"> <asp:Label ID="Label3" runat="server" style="font-size: small" Text="Date Entered:"></asp:Label> </td> <td class="style13"> <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("DateEntered", "{0:d}") %>' Width="100px"></asp:TextBox> </td> <td class="style22"> <asp:Label ID="Label4" runat="server" style="font-size: small" Text="Entered By:"></asp:Label> </td> <td class="style25"> <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("EnteredBy") %>' Width="100px"></asp:TextBox> </td> <td class="style28"> <asp:Label ID="Label5" runat="server" style="font-size: small" Text="Citation Date:"></asp:Label> </td> <td class="style8"> <asp:TextBox ID="TextBox5" runat="server" Height="20px" Text='<%# Bind("CitationDate", "{0:d}") %>' Width="100px"></asp:TextBox> </td> </tr> <tr> <td class="style2"> <asp:Label ID="Label6" runat="server" style="font-size: small" Text="Date Rec:"></asp:Label> </td> <td class="style3"> <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("DateReceived", "{0:d}") %>' Width="100px"></asp:TextBox> </td> <td class="style37"> <asp:Label ID="Label7" runat="server" style="font-size: small" Text="Issuing Agency"></asp:Label> </td> <td class="style10"> <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("IssuingAgency") %>'></asp:TextBox> </td> <td class="style39"> <asp:Label ID="Label8" runat="server" style="font-size: small" Text="Contact Name:"></asp:Label> </td> <td class="style14"> <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("ContactName") %>' Width="100px"></asp:TextBox> </td> <td class="style23"> <asp:Label ID="Label9" runat="server" style="font-size: small" Text="Contact Ph:"></asp:Label> </td> <td class="style26"> <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("ContactPhone") %>' Width="100px"></asp:TextBox> </td> <td class="style29"> <asp:Label ID="Label10" runat="server" Text="Due Date:"></asp:Label> </td> <td class="style31"> <asp:TextBox ID="TextBox10" runat="server" Width="100px" Text='<%# Bind("DueDate", "{0:d}") %>'></asp:TextBox> </td> </tr> <tr> <td class="style15"> <asp:Label ID="Label11" runat="server" Text="Citation No:"></asp:Label> </td> <td class="style16"> <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("CitationNumber") %>' Width="100px"></asp:TextBox> </td> <td class="style38"> <asp:Label ID="Label12" runat="server" Text="Citation Type:"></asp:Label> </td> <td class="style18"> <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("CitationType") %>'></asp:TextBox> </td> <td class="style40"> <asp:Label ID="Label13" runat="server" Text="Upload Doc:"></asp:Label> </td> <td class="style20" colspan="3"> <asp:FileUpload ID="FileUpload1" runat="server" /> </td> <td class="style30"> <asp:HyperLink ID="HyperLink1" runat="server" style="text-decoration: underline; color: #0000FF">Current Doc:</asp:HyperLink> </td> <td class="style32"> </td> </tr> <tr> <td class="style15"> <asp:Label ID="Label22" runat="server" Text="Desc/Notes"></asp:Label> </td> <td class="style16" colspan="9"> <asp:TextBox ID="TextBox19" runat="server" Height="43px" Text='<%# Bind("DescriptionNotes") %>' TextMode="MultiLine" Width="99%"></asp:TextBox> </td> </tr> </table> <table class="style1" width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="style52"> &nbsp;</td> <td class="style42"> &nbsp;</td> <td class="style60"> &nbsp;</td> <td class="style44" colspan="2"> <asp:Label ID="Label24" runat="server" Text="Office Use Only"></asp:Label> </td> <td class="style46"> &nbsp;</td> <td class="style47"> &nbsp;</td> <td class="style63"> &nbsp;</td> <td class="style49"> &nbsp;</td> <td class="style50"> &nbsp;</td> </tr> <tr> <td class="style52"> <asp:Label ID="Label15" runat="server" Text="Person Reponsible:"></asp:Label> </td> <td class="style42"> <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("PersonResponsible") %>'></asp:TextBox> </td> <td class="style60"> <asp:Label ID="Label16" runat="server" Text="Date Notified PR:"></asp:Label> </td> <td class="style44"> <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("DateNotifiedPR", "{0:d}") %>'></asp:TextBox> </td> <td class="style56"> <asp:Label ID="Label17" runat="server" Text="Follow Up Date:"></asp:Label> </td> <td class="style46"> <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("FollowUpDate", "{0:d}") %>'></asp:TextBox> </td> <td class="style47"> </td> <td class="style63"> </td> <td class="style49"> </td> <td class="style50"> </td> </tr> <tr> <td class="style51"> <asp:Label ID="Label18" runat="server" Text="Fine Paid:"></asp:Label> </td> <td class="style42"> <asp:TextBox ID="TextBox16" runat="server" Text='<%# Bind("FinePaid") %>'></asp:TextBox> </td> <td class="style60"> <asp:Label ID="Label19" runat="server" Text="Reviwed by Supv:"></asp:Label> </td> <td class="style44"> <asp:TextBox ID="TextBox17" runat="server" Text='<%# Bind("ReviewedByDeptHead") %>'></asp:TextBox> </td> <td class="style56"> <asp:Label ID="Label20" runat="server" Text="Date Compelted:"></asp:Label> </td> <td class="style46"> <asp:TextBox ID="TextBox18" runat="server" Text='<%# Bind("DateCompleted", "{0:d}") %>'></asp:TextBox> </td> <td class="style47"> </td> <td class="style63"> </td> <td class="style49"> </td> <td class="style50"> </td> </tr> <tr> <td class="style51"> <asp:Label ID="Label21" runat="server" Text="Follow Up Request"></asp:Label> </td> <td class="style42" colspan="9" rowspan="2"> <asp:TextBox ID="TextBox23" runat="server" Height="40px" Text='<%# Bind("FollowUpRequest") %>' TextMode="MultiLine" Width="99%"></asp:TextBox> </td> </tr> <tr> <td class="style55"> &nbsp;</td> </tr> <tr> <td class="style54"> <asp:Label ID="Label23" runat="server" Text="Follow Up Notes:"></asp:Label> </td> <td class="style16" colspan="9" rowspan="2"> <asp:TextBox ID="TextBox24" runat="server" Height="51px" style="margin-top: 12px" Text='<%# Bind("FollowUpNotes") %>' TextMode="MultiLine" Width="99%"></asp:TextBox> </td> </tr> <tr> <td class="style55"> &nbsp;</td> </tr> </table> <div class="style2"> <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" /> &nbsp;&nbsp;&nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New" Text="Add New" /> &nbsp;<br /> <br /> <br /> </div> </ItemTemplate> </asp:FormView> </p></p><p><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:PropertyProlfileConnectionString %>" DeleteCommand="DELETE FROM [tblCitations] WHERE [CitationID] = @CitationID" InsertCommand="INSERT INTO [tblCitations] ([PID], [DateEntered], [EnteredBy], [CitationDate], [DateReceived], [IssuingAgency], [ContactName], [ContactPhone], [DueDate], [CitationNumber], [CitationType], [DescriptionNotes], [CitationDoc], [PersonResponsible], [DateNotifiedPR], [FollowUpDate], [FollowUpRequest], [FollowUpNotes], [ReviewedByDeptHead], [DateCompleted], [FinePaid], [AcctID], [Uname], [LastUpdated]) VALUES (@PID, @DateEntered, @EnteredBy, @CitationDate, @DateReceived, @IssuingAgency, @ContactName, @ContactPhone, @DueDate, @CitationNumber, @CitationType, @DescriptionNotes, @CitationDoc, @PersonResponsible, @DateNotifiedPR, @FollowUpDate, @FollowUpRequest, @FollowUpNotes, @ReviewedByDeptHead, @DateCompleted, @FinePaid, @AcctID, @Uname, @LastUpdated)" SelectCommand="SELECT * FROM [tblCitations]"</p><p>UpdateCommand="UPDATE [tblCitations] SET [PID] = @PID, [DateEntered] = @DateEntered, [EnteredBy] = @EnteredBy, [CitationDate] = @CitationDate, [DateReceived] = @DateReceived, [IssuingAgency] = @IssuingAgency, [ContactName] = @ContactName, [ContactPhone] = @ContactPhone, [DueDate] = @DueDate, [CitationNumber] = @CitationNumber, [CitationType] = @CitationType, [DescriptionNotes] = @DescriptionNotes, [CitationDoc] = @CitationDoc, [PersonResponsible] = @PersonResponsible, [DateNotifiedPR] = @DateNotifiedPR, [FollowUpDate] = @FollowUpDate, [FollowUpRequest] = @FollowUpRequest, [FollowUpNotes] = @FollowUpNotes, [ReviewedByDeptHead] = @ReviewedByDeptHead, [DateCompleted] = @DateCompleted, [FinePaid] = @FinePaid, [AcctID] = @AcctID, [Uname] = @Uname, [LastUpdated] = @LastUpdated WHERE [CitationID] = @CitationID"> <DeleteParameters> <asp:Parameter Name="CitationID" Type="Int32" /> </DeleteParameters> <InsertParameters> <asp:Parameter Name="PID" Type="Int32" /> <asp:Parameter DbType="Date" Name="DateEntered" /> <asp:Parameter Name="EnteredBy" Type="String" /> <asp:Parameter DbType="Date" Name="CitationDate" /> <asp:Parameter DbType="Date" Name="DateReceived" /> <asp:Parameter Name="IssuingAgency" Type="String" /> <asp:Parameter Name="ContactName" Type="String" /> <asp:Parameter Name="ContactPhone" Type="String" /> <asp:Parameter DbType="Date" Name="DueDate" /> <asp:Parameter Name="CitationNumber" Type="String" /> <asp:Parameter Name="CitationType" Type="String" /> <asp:Parameter Name="DescriptionNotes" Type="String" /> <asp:Parameter Name="CitationDoc" Type="String" /> <asp:Parameter Name="PersonResponsible" Type="String" /> <asp:Parameter DbType="Date" Name="DateNotifiedPR" /> <asp:Parameter DbType="Date" Name="FollowUpDate" /> <asp:Parameter Name="FollowUpRequest" Type="String" /> <asp:Parameter Name="FollowUpNotes" Type="String" /> <asp:Parameter Name="ReviewedByDeptHead" Type="String" /> <asp:Parameter DbType="Date" Name="DateCompleted" /> <asp:Parameter Name="FinePaid" Type="Decimal" /> <asp:Parameter Name="AcctID" Type="Int32" /> <asp:Parameter Name="Uname" Type="String" /> <asp:Parameter DbType="Date" Name="LastUpdated" /> </InsertParameters> <UpdateParameters> <asp:Parameter Name="PID" Type="Int32" /> <asp:Parameter DbType="Date" Name="DateEntered" /> <asp:Parameter Name="EnteredBy" Type="String" /> <asp:Parameter DbType="Date" Name="CitationDate" /> <asp:Parameter DbType="Date" Name="DateReceived" /> <asp:Parameter Name="IssuingAgency" Type="String" /> <asp:Parameter Name="ContactName" Type="String" /> <asp:Parameter Name="ContactPhone" Type="String" /> <asp:Parameter DbType="Date" Name="DueDate" /> <asp:Parameter Name="CitationNumber" Type="String" /> <asp:Parameter Name="CitationType" Type="String" /> <asp:Parameter Name="DescriptionNotes" Type="String" /> <asp:Parameter Name="CitationDoc" Type="String" /> <asp:Parameter Name="PersonResponsible" Type="String" /> <asp:Parameter DbType="Date" Name="DateNotifiedPR" /> <asp:Parameter DbType="Date" Name="FollowUpDate" /> <asp:Parameter Name="FollowUpRequest" Type="String" /> <asp:Parameter Name="FollowUpNotes" Type="String" /> <asp:Parameter Name="ReviewedByDeptHead" Type="String" /> <asp:Parameter DbType="Date" Name="DateCompleted" /> <asp:Parameter Name="FinePaid" Type="Decimal" /> <asp:Parameter Name="AcctID" Type="Int32" /> <asp:Parameter Name="Uname" Type="String" /> <asp:Parameter DbType="Date" Name="LastUpdated" /> <asp:Parameter Name="CitationID" Type="Int32" /> </UpdateParameters> </asp:SqlDataSource> </form> </body> </html></p><p>This happened after I sorted by Due date as you can see it is still highlighted.</p><p>And then I attempted to select the record to edit it.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    20 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us