Emily Parsons

Emily Parsons

  • NA
  • 2
  • 13.1k

Need a C# event for get next record and get previous record etc

Sep 17 2010 4:39 PM

Hi I have a project in ASP it has a SQl database in the background. It connects fine. Unfortunately it has a ButtonEvents file in C# where once the button is pressed the code goes in and performs the button event. What I need is to be able to get the next record from the database and all the other functions which are normally across the bottom of the page in the navigation panel: <asp:Content runat="server" ContentPlaceHolderID="NavigationContent">
<ctrl:NavigationPanel ID="NavigationPanel_" runat="server" ScriptManagerID="AjaxScriptManager" style="position:relative; background-color: #d4d0c8; font-size: 10px; font-family: Arial, Helvetica, sans-serif;" CupiMenya="false" Width="100%" />
<cc1:AlwaysVisibleControlExtender id="AlwaysVisibleControlExtender" runat="server" horizontalside="Center" scrolleffectduration=".1" targetcontrolid="NavigationPanel_" verticalside="Bottom" />
</asp:Content>
Does anyone know the how to get this code in C#?
Here's what I have for the previous ASP button: <asp:Button runat="server" style="COLOR:#000000; POSITION:absolute; TOP:8pt; LEFT:230pt; HEIGHT:30px; WIDTH:25pt; background: url(./images/BGBack.jpg) center no-repeat;BACKGROUND-COLOR:#d4d0c8; FONT-FAMILY:Tahoma; FONT-SIZE:8pt;" id="PreviousRecord" Text="" onClick="PreviousRecord_Click"></asp:Button>
 
Now I need the code for the C#. Can anyone help? Please and thankyou Emily

Answers (1)