Solved

pass session variable to basepage class

Posted on 2013-05-28
6
371 Views
Last Modified: 2013-06-06
I have a basepage class and getting this error....all I need is to pass a session to change culture.  

___________error_________________
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
_________ end error________________

_____basepage code________________


Imports System.Threading
Imports System.Globalization

Public Class BasePage
    'Inherits System.Web.UI.Page
    'Protected Overrides Sub InitializeCulture()

    '    UICulture = Request.UserLanguages(0)
    '    MyBase.InitializeCulture()

    'End Sub

    Inherits Page
    Protected Sub New()
        Dim session As System.Web.SessionState.HttpSessionState = HttpContext.Current.Session
        If session("newculture") Is Nothing Then
            session("newculture") = "en-US"
        End If

        If session("newculture") IsNot Nothing Then
            Dim selectedLanguage As [String] = "en-US"
            UICulture = selectedLanguage
            Culture = selectedLanguage

            Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(selectedLanguage)
            Thread.CurrentThread.CurrentUICulture = New CultureInfo(selectedLanguage)
        End If
        MyBase.InitializeCulture()
    End Sub
End Class
0
Comment
Question by:Wigging
  • 3
  • 3
6 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39202315
What does the associated .aspx file look like?
0
 

Author Comment

by:Wigging
ID: 39202369
<%@ Page Title="" Language="vb"  UICulture="auto"  AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="welcome.aspx.vb" Inherits="GatewayVB.omcswelcome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <%-- <script src="js/foundation/responsive-tables.js"></script>
    <link rel="stylesheet" href="css/responsive-tables.css" />--%>
    <link rel="stylesheet" href="css/giani.css" />
    <link rel="stylesheet" href="css/gwOverride.css" />
    <asp:Panel ID="pnlCustInfo" runat="server" Visible="false">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
        <div class="row">
            <div class="large-12 columns">
                <h5>
                    <asp:Label ID="custName" runat="server" Text=""></asp:Label></h5>
            </div>
        </div>
        <!-- customer address and interactions -->
        <div class="row">
            <div class="large-12 columns">
                <div class="section-container auto" data-section data-options="deep_linking: true">
                    <section class="section">
                        <p class="title"><a href="#panel1">Customer Details</a></p>
                        <div class="content" data-slug="panel1">
                            <div class="row odd">
                                <div class="large-3 columns">
                                    <strong>
                                        <asp:Label ID="CustomerName" runat="server"
                                            Text="" Visible="true"></asp:Label></strong>
                                    <br />
                                        <asp:Label ID="CustomerAddress" runat="server"
                                            Text="" Visible="true"></asp:Label>
                                    <br />
                                    Att:<asp:Label ID="CustomerAttTo" runat="server" Visible="true"></asp:Label>
                                    <br />
                                    <asp:CheckBox ID="CustomerIntl" runat="server" Visible="true" Enabled="false" />
                                    International Customer
                                </div>
                                <div class="large-3 columns">
                                  <asp:Label ID="Label64" runat="server" Text="<%$Resources:Strings, Phone%>"></asp:Label>   <asp:Label ID="CustomerPhone" runat="server" Visible="true"></asp:Label>
                                <br />
                                      <asp:Label ID="Label65" runat="server" Text="<%$Resources:Strings, Cell%>"></asp:Label> <asp:Label ID="CustomerCell" runat="server" Visible="true"></asp:Label>
                                <br />
                                     <asp:Label ID="Label66" runat="server" Text="<%$Resources:Strings, Fax%>"></asp:Label> <asp:Label ID="CustomerFax" runat="server" Visible="true"></asp:Label>
                                <br />
                                      <asp:Label ID="Label67" runat="server" Text="<%$Resources:Strings, Email%>"></asp:Label> <asp:Label ID="CustomerEmail" runat="server" Visible="true"></asp:Label>
                                <br />
                                     <asp:Label ID="Label68" runat="server" Text="<%$Resources:Strings, CustType%>"></asp:Label> <asp:Label ID="CustomerType" runat="server" Visible="true"></asp:Label>
                                <br />
                                      <asp:Label ID="Label69" runat="server" Text="<%$Resources:Strings, Terms%>"></asp:Label> <asp:Label ID="CustomerBillingTerms" runat="server" Visible="true"></asp:Label>
                                </div>
                                <div class="large-12 columns">
                                    <asp:Label ID="Label63" runat="server" Text="<%$Resources:Strings, Taxcode%>"></asp:Label>
                                    <asp:Label ID="CustomerTaxCode" runat="server" Visible="true"></asp:Label>
                                </div>
                                <div class="large-12 columns">
                                     <asp:Label ID="Label70" runat="server" Text="<%$Resources:Strings, Credit%>"></asp:Label> <asp:Label ID="CustomerCreditOnAccount" runat="server" Visible="true"></asp:Label>
                                <br />
                                     <a href="EditCustomerInfo.aspx" class="small button">  <asp:Label ID="Label71" runat="server" Text="<%$Resources:Strings, Edit%>"></asp:Label> </a>
                                </div>
                                <div class="large-6 columns">&nbsp;</div>
                            </div>
                        </div>
                    </section>
                    <section class="section">
                        <p class="title"><a href="#panel2">  <asp:Label ID="Label72" runat="server" Text="<%$Resources:Strings, CustInformation%>"></asp:Label> </a></p>
                        <asp:UpdatePanel ID="CustInfoUP" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <div class="content" data-slug="panel2">
                                    <div class="row">
                                        <div class="large-9 columns">
                                        </div>
                                        <div class="large-3 columns">
                                            <a href="/EditCustomerInteraction.aspx" class="tiny button right">  <asp:Label ID="Label73" runat="server" Text="<%$Resources:Strings, AddNew%>"></asp:Label> </a>
                                        </div>
                                    </div>
                                    <div class="row even hide-for-small">
                                        <div class="large-4 small-4 columns">
                                            <strong>
                                                <asp:Label ID="CIDesc" runat="server"
                                                   Text="<%$Resources:Strings, Description%>" Visible="true"></asp:Label></strong>
                                        </div>
                                        <div class="large-8 small-8 columns">
                                            <strong>
                                                <asp:Label ID="CICreateDate" runat="server"
                                                    Text="<%$Resources:Strings, Createdate%>" Visible="true"></asp:Label></strong>
                                        </div>
                                    </div>
                                    <asp:ListView ID="lvCustInteraction" runat="server">
                                        <ItemTemplate>
                                        <div class="row odd">
                                                <div class="large-4 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="smLblName" runat="server" Text="<%$Resources:Strings, Description%>" CssClass="show-for-small"></asp:Label><asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("Description")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <asp:Label ID="smlCreateDate" runat="server" Text="<%$Resources:Strings, Createdate%>" CssClass="show-for-small"></asp:Label><asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("createdate", "{0:d}")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <asp:HyperLink ID="LinkButton33" runat="server" CssClass="tiny button" Text="<%$Resources:Strings, Update%>" NavigateUrl='<%# GetLink("CUSTOMERINTER", Eval("objectToken"))%>'></asp:HyperLink>&nbsp;
                                                </div>
                                                <div class="large-12 columns">
                                                    <asp:Label ID="Label13" runat="server" Text='<%# Eval("note").ToString().Substring(0, Math.Min(50, Eval("note").Length))%>'></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                             <div class="row even">
                                                <div class="large-4 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="smLblName" runat="server" Text="<%$Resources:Strings, Description%>" CssClass="show-for-small"></asp:Label><asp:Label ID="lblname" runat="server" Text='<%# Eval("Description")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <asp:Label ID="smlCreateDate" runat="server" Text="<%$Resources:Strings, Createdate%>" CssClass="show-for-small"></asp:Label>
                                                    <asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("createdate", "{0:d}")%>' Visible="true"></asp:Label>
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <asp:HyperLink ID="LinkButton33" runat="server" Text="<%$Resources:Strings, Update%>" CssClass="tiny button" NavigateUrl='<%# GetLink("CUSTOMERINTER", Eval("objectToken"))%>'></asp:HyperLink>
                                                </div>
                                                <div class="large-12 columns">
                                                    <asp:Label ID="Label13" runat="server" Text='<%# Eval("note").ToString().Substring(0, Math.Min(50, Eval("note").Length))%>'></asp:Label>
                                                </div>
                                            </div>
                                        </AlternatingItemTemplate>
                                    </asp:ListView>
                                    <div class="row">
                                        <div class="large-12 columns">
                                            <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="CIPrev" runat="server" Text="Previous" CssClass="tiny button secondary"></asp:LinkButton>&nbsp;
                                            Page <asp:Label ID="lblCustInfoCount" runat="server" Text="Label"></asp:Label>&nbsp;
                                            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="CINext" runat="server" Text="Next" CssClass="tiny button secondary"></asp:LinkButton>
                                        </div>
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </section>
                    <section class="section">
                        <p class="title"><a href="#panel3"> <asp:Label ID="smLblName" runat="server" Text="<%$Resources:Strings, CustCommunication%>" CssClass="show-for-small"></asp:Label></a></p>
                        <asp:UpdatePanel ID="CustCommUP" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <div class="content" data-slug="panel2">
                                    <div class="row">
                                        <div class="large-9 columns"></div>&nbsp;
                                        <div class="large-3 columns">
                                            <a href="/EditCustomerCommunication.aspx" class="tiny button right"><asp:Label ID="Label74" runat="server" Text="<%$Resources:Strings, AddNew%>" ></asp:Label></a>
                                        </div>
                                    </div>
                                    <div class="row even hide-for-small">
                                        <div class="large-4 small-6 columns">
                                            <strong>
                                                <asp:Label ID="ccDesc" runat="server"
                                                    Text="Description" Visible="true"></asp:Label></strong>
                                                
                                        </div>
                                        <div class="large-4 small-6 columns">
                                            <strong>
                                                <asp:Label ID="ccDate" runat="server"
                                                    Text="Date" Visible="true"></asp:Label></strong>
                                        </div>
                                        <div class="large-4 columns">&nbsp;</div>
                                    </div>
                                    <asp:ListView ID="grdcustcommunication2" runat="server">
                                        <ItemTemplate>
                                            <div class="row odd">
                                                <div class="large-4 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("Description")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;<br />
                                                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("comment")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("createdate", "{0:d}")%>' Visible="true"></asp:Label>
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <asp:HyperLink ID="LinkButton3" runat="server" Text="Update" CssClass="tiny button" NavigateUrl='<%# GetLink("CUSTOMERCOMM", Eval("rowPointer"))%>'></asp:HyperLink>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <div class="row even">
                                                 <div class="large-4 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("Description")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;<br />
                                                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("comment")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("createdate", "{0:d}")%>' Visible="true"></asp:Label>
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <asp:HyperLink ID="LinkButton3" runat="server" Text="Update" CssClass="tiny button" NavigateUrl='<%# GetLink("CUSTOMERCOMM", Eval("rowPointer"))%>'></asp:HyperLink>
                                                </div>
                                            </div>
                                        </AlternatingItemTemplate>
                                    </asp:ListView>
                                     <div class="row">
                                                <div class="large-12 columns">
                                                    <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="CCPrev" runat="server" Text="Previous" CssClass="tiny button secondary"></asp:LinkButton>
                                                    Page <asp:Label ID="lblCustCommCount" runat="server" Text="Label"></asp:Label>
                                                    <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="CCNext" runat="server" Text="Next" CssClass="tiny button secondary"></asp:LinkButton>
                                                </div>
                                            </div>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </section>
                </div>
            </div>
        </div>
        <!-- history -->
        <div class="row">
            <div class="large-12 columns">
                <div class="section-container auto" data-section data-options="deep_linking: true">
                    <section class="section">
                        <p class="title"><a href="#panel1">Equipment</a></p>
                        <div class="content" data-slug="panel1">
                            <asp:UpdatePanel ID="EquipUP" runat="server" UpdateMode="Conditional"><ContentTemplate>
                                    <div class="row even hide-for-small">
                                                <div class="small-4 columns">
                                                    <strong><asp:Label ID="EqDescr" runat="server"
                                                        Text="Description" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="small-2 columns">
                                                    <strong><asp:Label ID="EqServiceDate" runat="server"
                                                        Text="Service Date" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="small-2 columns">
                                                    <strong><asp:Label ID="EqHours" runat="server"
                                                        Text="Hours" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="small-4 columns">
                                                    <strong><asp:Label ID="Label22" runat="server"
                                                        Text="Warranty" Visible="true"></asp:Label></strong>
                                                </div>
                                            </div>
                                    <asp:ListView ID="DataListequip" runat="server">
                                        <ItemTemplate>
                                            <div class="row odd">
                                                <div class="large-4 small-12 columns">
                                                              <strong><asp:Label ID="PPInfo" runat="server"
                                                            Text="Description: " CssClass="show-for-small"></asp:Label></strong>
                                                    <strong>
                                                        <asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("Description")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                    <br />    <strong><asp:Label ID="Label56" runat="server"
                                                            Text="Item: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Item")%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />    <strong><asp:Label ID="Label57" runat="server"
                                                            Text="Rev: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label8" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("revNo")%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />    <strong><asp:Label ID="Label58" runat="server"
                                                            Text="Serial: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label9" runat="server"
                                                        Text='<%# Eval("serialno")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>   
                                                <div class="large-2 small-12  columns">
                                                     <strong><asp:Label ID="Label59" runat="server"
                                                            Text="Date: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label2" runat="server"
                                                        Text="5/30/2000" Visible="true"></asp:Label>
                                                </div>    
                                                <div class="large-2 small-12  columns">
                                                    <strong><asp:Label ID="Label60" runat="server"
                                                            Text="Hours: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label1" runat="server"
                                                        Text="4500.00" Visible="true"></asp:Label><br />
                                                        <strong><asp:Label ID="Label61" runat="server"
                                                            Text="Date: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label10" runat="server"
                                                        Text="(03/13/2009)" Visible="true"></asp:Label>
                                                </div>
                                                  
                                                <div class="large-2 small-12  columns">
                                                      <strong><asp:Label ID="Label62" runat="server"
                                                            Text="Exp Date: " CssClass="show-for-small"></asp:Label></strong>
                                                  <asp:Label ID="Label6" runat="server"
                                                        Text="Exp. 5/30/2000" Visible="true"></asp:Label>
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <asp:HyperLink ID="btnEquipEdit" runat="server" CssClass="tiny button right" NavigateUrl='<%# GetLink("CUSTOMEREQUIP", Eval("rowPointer"))%>'>Edit</asp:HyperLink>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                          <div class="row even">
                                                  <div class="large-4 small-12 columns">
                                                              <strong><asp:Label ID="PPInfo" runat="server"
                                                            Text="Description: " CssClass="show-for-small"></asp:Label></strong>
                                                    <strong>
                                                        <asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("Description")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                    <br />    <strong><asp:Label ID="Label56" runat="server"
                                                            Text="Item: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Item")%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />    <strong><asp:Label ID="Label57" runat="server"
                                                            Text="Rev: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label8" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("revNo")%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />    <strong><asp:Label ID="Label58" runat="server"
                                                            Text="Serial: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label9" runat="server"
                                                        Text='<%# Eval("serialno")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>   
                                                <div class="large-2 small-12  columns">
                                                     <strong><asp:Label ID="Label59" runat="server"
                                                            Text="Date: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label2" runat="server"
                                                        Text="5/30/2000" Visible="true"></asp:Label>
                                                </div>    
                                                <div class="large-2 small-12  columns">
                                                    <strong><asp:Label ID="Label60" runat="server"
                                                            Text="Hours: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label1" runat="server"
                                                        Text="4500.00" Visible="true"></asp:Label><br />
                                                        <strong><asp:Label ID="Label61" runat="server"
                                                            Text="Date: " CssClass="show-for-small"></asp:Label></strong>
                                                    <asp:Label ID="Label10" runat="server"
                                                        Text="(03/13/2009)" Visible="true"></asp:Label>
                                                </div>
                                                  
                                                <div class="large-2 small-12  columns">
                                                      <strong><asp:Label ID="Label62" runat="server"
                                                            Text="Exp Date: " CssClass="show-for-small"></asp:Label></strong>
                                                  <asp:Label ID="Label6" runat="server"
                                                        Text="Exp. 5/30/2000" Visible="true"></asp:Label>
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <asp:HyperLink ID="btnEquipEdit" runat="server" CssClass="tiny button right" NavigateUrl='<%# GetLink("CUSTOMEREQUIP", Eval("rowPointer"))%>'>Edit</asp:HyperLink>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        </AlternatingItemTemplate>
                                    </asp:ListView>
                                <div class="row">
                                    <div class="large-12 columns">
                                    <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="EquipPrev" runat="server" Text="Previous" CssClass="tiny button secondary"></asp:LinkButton>&nbsp;
                                    Page <asp:Label ID="lblEquipCount" runat="server" Text="Label"></asp:Label>&nbsp;
                                    <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="EquipNext" runat="server" Text="Next" CssClass="tiny button secondary"></asp:LinkButton>
                                </div>
                                </div>
                            </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </section>
                    <section class="section">
                        <p class="title"><a href="#panel2">Parts Purchased</a></p>
                        <div class="content" data-slug="panel2">
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <div class="row even hide-for-small">
                                                <div class="large-2 small-2 columns">
                                                    <strong>
                                                        <asp:Label ID="PPInfo" runat="server"
                                                            Text="Order Info" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 small-3 columns">
                                                    <strong>
                                                        <asp:Label ID="pqShipTo" runat="server"
                                                            Text="Ship To" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-3 small-3 columns">
                                                    <strong>
                                                        <asp:Label ID="Label11" runat="server"
                                                            Text="Item Info" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 small-2 columns">
                                                    <strong>
                                                        <asp:Label ID="Label20" runat="server"
                                                            Text="Length" Visible="true"></asp:Label></strong>
                                                   
                                                </div>
                                                <div class="large-1 small-3 columns">
                                                     <strong>
                                                        <asp:Label ID="Label17" runat="server"
                                                            Text="Qty Ord" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 small-3 columns">
                                                   <strong>
                                                        <asp:Label ID="Label18" runat="server"
                                                            Text="Qty Ship" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 small-3 columns">
                                                     <strong>
                                                        <asp:Label ID="Label19" runat="server"
                                                            Text="Qty Inv" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 small-3 columns">
                                                    <strong>
                                                        <asp:Label ID="Label21" runat="server"
                                                            Text="Last Pick" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 small-3 columns">
                                                    <strong>
                                                        <asp:Label ID="Label23" runat="server"
                                                            Text="Date Ship" Visible="true"></asp:Label></strong>
                                                </div>
                                            </div>
                                    <asp:ListView ID="dlPartsPurch" runat="server">
                                        
                                        <ItemTemplate>
                                            <div class="row odd">
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="PPInfo" runat="server"
                                                            Text="Order Info: " CssClass="show-for-small"></asp:Label></strong><strong>
                                                        <asp:Label ID="Label24" runat="server"
                                                            Text='<%# Eval("Co_Num")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                    <br />
                                                        <asp:Label ID="lblname" runat="server"
                                                        Text='<%# FormatDateTime(Eval("order_date"), DateFormat.ShortDate)%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong><asp:Label ID="pqShipTo" runat="server"
                                                            Text="Ship To: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label25" runat="server"
                                                        Text='<%# Eval("cust_seq")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-3 small-12 columns">
                                                    <strong><asp:Label ID="Label11" runat="server"
                                                            Text="Item Info: " CssClass="show-for-small"></asp:Label></strong> <asp:Label ID="Label26" runat="server"
                                                        Text='<%# Eval("item")%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />
                                                    <asp:Label ID="Label27" runat="server"
                                                        Text='<%# Eval("description")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                      <strong>
                                                        <asp:Label ID="Label20" runat="server"
                                                            Text="Length: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label31" runat="server"
                                                        Text='<%# Eval("item_length")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label17" runat="server"
                                                            Text="Qty Ord: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label28" runat="server"
                                                        Text='<%# Eval("qty")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                 <strong>
                                                        <asp:Label ID="Label3" runat="server"
                                                            Text="Qty Ship: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label29" runat="server"
                                                        Text='<%# Eval("qty_ship")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                     <strong>
                                                        <asp:Label ID="Label34" runat="server"
                                                            Text="Qty Inv: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label30" runat="server"
                                                        Text='<%# Eval("qty_inv")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                   <strong>
                                                        <asp:Label ID="Label35" runat="server"
                                                            Text="Last Pick: " CssClass="show-for-small"></asp:Label></strong> <asp:Label ID="Label32" runat="server"
                                                        Text='<%# IIf(Eval("lastpick") <> Nothing, FormatDateTime(Eval("lastpick"), DateFormat.ShortDate), "")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label36" runat="server"
                                                            Text="Ship Date: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label33" runat="server"
                                                        Text='<%# IIf(Eval("ship_date") <> Nothing, FormatDateTime(Eval("ship_date"), DateFormat.ShortDate), "")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <div class="row even">
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="PPInfo" runat="server"
                                                            Text="Order Info: " CssClass="show-for-small"></asp:Label></strong><strong>
                                                        <asp:Label ID="Label24" runat="server"
                                                            Text='<%# Eval("Co_Num")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                    <br />
                                                        <asp:Label ID="lblname" runat="server"
                                                        Text='<%# FormatDateTime(Eval("order_date"), DateFormat.ShortDate)%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong><asp:Label ID="pqShipTo" runat="server"
                                                            Text="Ship To: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label25" runat="server"
                                                        Text='<%# Eval("cust_seq")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-3 small-12 columns">
                                                    <strong><asp:Label ID="Label11" runat="server"
                                                            Text="Item Info: " CssClass="show-for-small"></asp:Label></strong> <asp:Label ID="Label26" runat="server"
                                                        Text='<%# Eval("item")%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />
                                                    <asp:Label ID="Label27" runat="server"
                                                        Text='<%# Eval("description")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                      <strong>
                                                        <asp:Label ID="Label20" runat="server"
                                                            Text="Length: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label31" runat="server"
                                                        Text='<%# Eval("item_length")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label17" runat="server"
                                                            Text="Qty Ord: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label28" runat="server"
                                                        Text='<%# Eval("qty")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                 <strong>
                                                        <asp:Label ID="Label3" runat="server"
                                                            Text="Qty Ship: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label29" runat="server"
                                                        Text='<%# Eval("qty_ship")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                     <strong>
                                                        <asp:Label ID="Label34" runat="server"
                                                            Text="Qty Inv: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label30" runat="server"
                                                        Text='<%# Eval("qty_inv")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                   <strong>
                                                        <asp:Label ID="Label35" runat="server"
                                                            Text="Last Pick: " CssClass="show-for-small"></asp:Label></strong> <asp:Label ID="Label32" runat="server"
                                                        Text='<%# IIf(Eval("lastpick") <> Nothing, FormatDateTime(Eval("lastpick"), DateFormat.ShortDate), "")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label36" runat="server"
                                                            Text="Ship Date: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label33" runat="server"
                                                        Text='<%# IIf(Eval("ship_date") <> Nothing, FormatDateTime(Eval("ship_date"), DateFormat.ShortDate), "")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </AlternatingItemTemplate>
                                    </asp:ListView>
                                    <div class="row">
                                        <div class="large-12 columns">
                                        <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="LinkButton2" runat="server" Text="Previous" CssClass="tiny button secondary"></asp:LinkButton>&nbsp;
                                        Page <asp:Label ID="lblmessage" runat="server" Text="Label"></asp:Label>&nbsp;
                                        <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server" Text="Next" CssClass="tiny button secondary"></asp:LinkButton>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </section>
                    <section class="section">
                        <p class="title"><a href="#panel3">Orders</a></p>
                        <div class="content" data-slug="panel3">
                            <asp:UpdatePanel ID="OrdersUP" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <div class="row even hide-for-small">
                                                <div class="large-2 columns">
                                                    <strong>
                                                        <asp:Label ID="OOrdNum" runat="server"
                                                            Text="Order Info" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 columns">
                                                    <strong>
                                                        <asp:Label ID="OShipTo" runat="server"
                                                            Text="Ship To" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 columns">
                                                    <strong><asp:Label ID="SalesPerson" runat ="server" Text="Salesperson" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 columns">
                                                    <strong><asp:Label ID="TotalPrice" runat="server" Text="Total Price" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 columns">
                                                    <strong><asp:Label ID="ShipVia" runat="server" Text="Ship Via"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 columns">
                                                    <strong><asp:Label ID="Terms" runat="server" Text="Terms" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 columns">
                                                    <strong><asp:Label ID="PONum" runat="server" Text="PO #" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 columns">
                                                    <strong><asp:Label ID="PickList" runat="server" Text="Pick List" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-1 columns">
                                                    <strong><asp:Label ID="Shipped" runat="server" Text ="Shipped" Visible ="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-2 columns">
                                                    &nbsp;
                                                </div>
                                                <div class="large-12 columns">
                                                    
                                                </div>
                                            </div>
                                    <asp:ListView ID="dlOrders" runat="server">
                                        <ItemTemplate>
                                            <div class="row odd">
                                                <div class="large-2 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="OOrdNum" runat="server"
                                                            Text="Order Info: " CssClass="show-for-small"></asp:Label></strong><strong><asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("OrderNumber")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                    <br />
                                                    <asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# FormatDateTime(Eval("Order_Date2"), DateFormat.ShortDate)%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label37" runat="server"
                                                            Text="Ship To: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblShipTo" runat="server" Text='<%# Eval("CustSeq")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label38" runat="server"
                                                            Text="Salesperson: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblSalesPerson" runat="server" Text='<%# Eval("TakenBy")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label39" runat="server"
                                                            Text="Total Price: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblTotalPrice" runat="server" Text='<%# FormatCurrency(Eval("Price"))%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label40" runat="server"
                                                            Text="Ship Code: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblShipVia" runat="server" Text='<%# Eval("ShipCode")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label41" runat="server"
                                                            Text="Terms Code: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblTermsCode" runat="server" Text='<%# Eval("TermsCode")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label42" runat="server"
                                                            Text="Cust PO#: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblCustPO" runat="server" Text='<%# Eval("CustPo")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label43" runat="server"
                                                            Text="Picklist: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblPickList" runat="server" Text='<%# Eval("Picklist")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label44" runat="server"
                                                            Text="Shipping: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblShipping" runat="server" Text='<%# Eval("Shipping")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <asp:HyperLink ID="hlCopy" runat="server" CssClass="tiny button" NavigateUrl="http://www.google.com" Text="Copy"></asp:HyperLink>&nbsp;
                                                    <asp:HyperLink ID="hlAddNote" runat="server"  CssClass="tiny button" NavigateUrl="http://www.yahoo.com" Text="Add Note"></asp:HyperLink>&nbsp;
                                                </div>
                                                <div class="large-12 columns">
                                                    <asp:Label ID="UPS" runat="server" Text ="UPS Tracking No: " Visible ="true"></asp:Label>&nbsp;<asp:Label ID="lblUPS" runat="server" Text='<%# Eval("UPS")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <div class="row even">
                                                 <div class="large-2 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="OOrdNum" runat="server"
                                                            Text="Order Info: " CssClass="show-for-small"></asp:Label></strong><strong><asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("OrderNumber")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                    <br />
                                                    <asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# FormatDateTime(Eval("Order_Date2"), DateFormat.ShortDate)%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label37" runat="server"
                                                            Text="Ship To: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblShipTo" runat="server" Text='<%# Eval("CustSeq")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label38" runat="server"
                                                            Text="Salesperson: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblSalesPerson" runat="server" Text='<%# Eval("TakenBy")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label39" runat="server"
                                                            Text="Total Price: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblTotalPrice" runat="server" Text='<%# FormatCurrency(Eval("Price"))%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label40" runat="server"
                                                            Text="Ship Code: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblShipVia" runat="server" Text='<%# Eval("ShipCode")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label41" runat="server"
                                                            Text="Terms Code: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblTermsCode" runat="server" Text='<%# Eval("TermsCode")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label42" runat="server"
                                                            Text="Cust PO#: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblCustPO" runat="server" Text='<%# Eval("CustPo")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label43" runat="server"
                                                            Text="Picklist: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblPickList" runat="server" Text='<%# Eval("Picklist")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-1 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label44" runat="server"
                                                            Text="Shipping: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="lblShipping" runat="server" Text='<%# Eval("Shipping")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <asp:HyperLink ID="hlCopy" runat="server" CssClass="tiny button" NavigateUrl="http://www.google.com" Text="Copy"></asp:HyperLink>&nbsp;
                                                    <asp:HyperLink ID="hlAddNote" runat="server"  CssClass="tiny button" NavigateUrl="http://www.yahoo.com" Text="Add Note"></asp:HyperLink>&nbsp;
                                                </div>
                                                <div class="large-12 columns">
                                                    <asp:Label ID="UPS" runat="server" Text ="UPS Tracking No: " Visible ="true"></asp:Label>&nbsp;<asp:Label ID="lblUPS" runat="server" Text='<%# Eval("UPS")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </AlternatingItemTemplate>
                                    </asp:ListView>
                                    <div class="row">
                                        <div class="large-12 columns">
                                        <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="COPrev" runat="server" Text="Previous" CssClass="tiny button secondary"></asp:LinkButton>&nbsp;
                                        Page <asp:Label ID="lblCOCount" runat="server" Text="Label"></asp:Label>&nbsp;
                                        <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="CONext" runat="server" Text="Next" CssClass="tiny button secondary"></asp:LinkButton>
                                        </div>
                                    </div>
                                       </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </section>
                    <section class="section">
                        <p class="title"><a href="#panel4">Parts Quoted</a></p>
                        <div class="content" data-slug="panel4">
                            <asp:UpdatePanel ID="PQUP" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <div class="row even hide-for-small">
                                                <div class="large-2 small-2 columns">
                                                    <strong>
                                                        <asp:Label ID="PQQuoteNum" runat="server"
                                                            Text="Quote Number" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-6 small-3 columns">
                                                    <strong>
                                                        <asp:Label ID="PQItem" runat="server"
                                                            Text="Item Info" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-2 small-3 columns">
                                                    <strong>
                                                        <asp:Label ID="PQILen" runat="server"
                                                            Text="Item Length" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-2 small-3 columns">
                                                    <strong>
                                                        <asp:Label ID="PQOrdDate" runat="server"
                                                            Text="Order Date" Visible="true"></asp:Label></strong>
                                                </div>
                                            </div>
                                    <asp:ListView ID="dlPartsQuoted" runat="server">
                                        <ItemTemplate>
                                            <div class="row odd">
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label44" runat="server"
                                                            Text="Quote Number: " CssClass="show-for-small"></asp:Label></strong><strong>
                                                        <asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("CustNum")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                </div>
                                                <div class="large-6 small-12 columns">
                                                    <strong><asp:Label ID="Label45" runat="server"
                                                            Text="Item: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Item")%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />
                                                    <asp:Label ID="Label8" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Description")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label46" runat="server"
                                                            Text="Length: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label12" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("ItemLength")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label47" runat="server"
                                                            Text="Order Date: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label15" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# FormatDateTime(Eval("OrderDate"), DateFormat.ShortDate)%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <div class="row even">
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label44" runat="server"
                                                            Text="Quote Number: " CssClass="show-for-small"></asp:Label></strong><strong>
                                                        <asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("CustNum")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                </div>
                                                <div class="large-6 small-12 columns">
                                                    <strong><asp:Label ID="Label45" runat="server"
                                                            Text="Item: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Item")%>' Visible="true"></asp:Label>&nbsp;
                                                    <br />
                                                    <asp:Label ID="Label8" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Description")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label46" runat="server"
                                                            Text="Length: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label12" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("ItemLength")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label47" runat="server"
                                                            Text="Order Date: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label15" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# FormatDateTime(Eval("OrderDate"), DateFormat.ShortDate)%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </AlternatingItemTemplate>
                                    </asp:ListView>
                                    <div class="row">
                                        <div class="large-12 columns">
                                        <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="PQPrev" runat="server" Text="Previous" CssClass="tiny button secondary"></asp:LinkButton>&nbsp;
                                        Page <asp:Label ID="lblPQCount" runat="server" Text="Label"></asp:Label>&nbsp;
                                        <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="PQNext" runat="server" Text="Next" CssClass="tiny button secondary"></asp:LinkButton>
                                        </div>  
                                        </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </section>
                    <section class="section">
                        <p class="title"><a href="#panel5">Quotes</a></p>
                        <div class="content" data-slug="panel5">
                            <asp:UpdatePanel ID="QUP" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <div class="row even hide-for-small">
                                                <div class="large-2 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label5" runat="server"
                                                            Text="Quote Number" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label4" runat="server"
                                                            Text="Cust PO" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="pqDescLabel" runat="server"
                                                            Text="Price" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-3 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="QuTakenBy" runat="server"
                                                            Text="Taken By" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-3 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="QuOrdDate" runat="server"
                                                            Text="Order Date" Visible="true"></asp:Label></strong>
                                                </div>
                                            </div>
                                    <asp:ListView ID="dlQuotes" runat="server">
                                        <ItemTemplate>
                                            <div class="row odd">
                                                <div class="large-2 small-12 columns">
                                                     <strong><asp:Label ID="Label47" runat="server"
                                                            Text="Quote Number: " CssClass="show-for-small"></asp:Label></strong>
                                                    <strong>
                                                        <asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("CustNum")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                     <strong><asp:Label ID="Label48" runat="server"
                                                            Text="Cust PO#:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("CustPO")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                     <strong><asp:Label ID="Label49" runat="server"
                                                            Text="Price: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label8" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# FormatCurrency(Eval("Price"))%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-3 small-12 columns">
                                                     <strong><asp:Label ID="Label50" runat="server"
                                                            Text="Taken By: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label12" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("TakenBy")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-3 small-12 columns">
                                                     <strong><asp:Label ID="Label51" runat="server"
                                                            Text="Order Date: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label15" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# FormatDateTime(Eval("Order_Date2"), DateFormat.ShortDate)%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <div class="row even">
                                                <div class="large-2 small-12 columns">
                                                     <strong><asp:Label ID="Label47" runat="server"
                                                            Text="Quote Number: " CssClass="show-for-small"></asp:Label></strong>
                                                    <strong>
                                                        <asp:Label ID="lblname" runat="server"
                                                            Text='<%# Eval("CustNum")%>' Visible="true" ForeColor="#5da423"></asp:Label></strong>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                     <strong><asp:Label ID="Label48" runat="server"
                                                            Text="Cust PO#:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label7" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("CustPO")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                     <strong><asp:Label ID="Label49" runat="server"
                                                            Text="Price: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label8" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# FormatCurrency(Eval("Price"))%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-3 small-12 columns">
                                                     <strong><asp:Label ID="Label50" runat="server"
                                                            Text="Taken By: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label12" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("TakenBy")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-3 small-12 columns">
                                                     <strong><asp:Label ID="Label51" runat="server"
                                                            Text="Order Date: " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label15" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# FormatDateTime(Eval("Order_Date2"), DateFormat.ShortDate)%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </AlternatingItemTemplate>
                                    </asp:ListView>
                                    <div class="row">
                                        <div class="large-12 columns">
                                        <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="QPrev" runat="server" Text="Previous" CssClass="tiny button secondary"></asp:LinkButton>&nbsp;
                                        Page <asp:Label ID="lblQCount" runat="server" Text="Label"></asp:Label>&nbsp;
                                        <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="QNext" runat="server" Text="Next" CssClass="tiny button secondary"></asp:LinkButton>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </section>
                    <section class="section">
                        <p class="title"><a href="#panel6">AR Trans</a></p>
                        <div class="content" data-slug="panel6">
                            <asp:UpdatePanel ID="ARUP" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                     <div class="row even hide-for-small">
                                                <div class="large-2 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="ARInvNum" runat="server"
                                                            Text="Invoice Num" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="label111" runat="server"
                                                            Text="Order Num" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="ARDesc" runat="server"
                                                            Text="Description" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="Label14" runat="server"
                                                            Text="Amount" Visible="true"></asp:Label></strong>
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong>
                                                        <asp:Label ID="ARInvDate" runat="server"
                                                            Text="Invoice Date" Visible="true"></asp:Label></strong>
                                                </div>
                                            </div>
                                    <asp:ListView ID="dlARTrans" runat="server">
                                        <ItemTemplate>
                                            <div class="row odd">
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label48" runat="server"
                                                            Text="Inv Num #:  " CssClass="show-for-small"></asp:Label></strong><strong><asp:Label ID="Label7" runat="server" ForeColor="#5da423"
                                                        Text='<%# Eval("InvNum")%>' Visible="true"></asp:Label></strong>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label52" runat="server"
                                                            Text="Order Num:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label8" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("CustNum")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <strong><asp:Label ID="Label53" runat="server"
                                                            Text="Description:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label12" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Description")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-6 columns">
                                                    <strong><asp:Label ID="Label54" runat="server"
                                                            Text="Amount:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label16" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Amount")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label55" runat="server"
                                                            Text="Inv Date:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label15" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# IIf(Eval("InvDate") <> Nothing, FormatDateTime(Eval("InvDate"), DateFormat.ShortDate), "")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <div class="row even">
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label48" runat="server"
                                                            Text="Inv Num #:  " CssClass="show-for-small"></asp:Label></strong><strong><asp:Label ID="Label7" runat="server" ForeColor="#5da423"
                                                        Text='<%# Eval("InvNum")%>' Visible="true"></asp:Label></strong>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label52" runat="server"
                                                            Text="Order Num:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label8" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("CustNum")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-4 small-12 columns">
                                                    <strong><asp:Label ID="Label53" runat="server"
                                                            Text="Description:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label12" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Description")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-6 columns">
                                                    <strong><asp:Label ID="Label54" runat="server"
                                                            Text="Amount:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label16" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# Eval("Amount")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                                <div class="large-2 small-12 columns">
                                                    <strong><asp:Label ID="Label55" runat="server"
                                                            Text="Inv Date:  " CssClass="show-for-small"></asp:Label></strong><asp:Label ID="Label15" runat="server" CssClass="titleboldblackmodels "
                                                        Text='<%# IIf(Eval("InvDate") <> Nothing, FormatDateTime(Eval("InvDate"), DateFormat.ShortDate), "")%>' Visible="true"></asp:Label>&nbsp;
                                                </div>
                                            </div>
                                        </AlternatingItemTemplate>
                                    </asp:ListView>
                                    <div class="row">
                                        <div class="large-12 columns">
                                        <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="ARPrev" runat="server" Text="Previous" CssClass="tiny button secondary"></asp:LinkButton>&nbsp;
                                        Page <asp:Label ID="lblARPCount" runat="server" Text="Label"></asp:Label>&nbsp;
                                        <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="ARNext" runat="server" Text="Next" CssClass="tiny button secondary"></asp:LinkButton>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                     
                    </section>
                </div>
            </div>
        </div>
    </asp:Panel>
</asp:Content>

Open in new window


Imports wmDataClass
Imports System.Globalization
Public Class omcswelcome
    Inherits BasePage
    Dim cust As New Customer
    Dim pppcounter As Integer 'Customer Parts Purchased Page Counter
    Dim cipcounter As Integer 'Customer Interactions Page Counter
    Dim ccpcounter As Integer 'Customer Communications Page Counter
    Dim copcounter As Integer 'Customer Order page Counter
    Dim cepcounter As Integer 'Customer Equipment Page Counter
    Dim pqpcounter As Integer 'Customer Parts Quoted Page Counter
    Dim cqpcounter As Integer 'Customer Quotes Page Counter
    Dim arpcounter As Integer 'AR Transactions Page Counter



    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Session("cust") Is Nothing Then
            cust = Session("cust")
            If lblmessage.Text <> "Label" Then
                pppcounter = lblmessage.Text
                cipcounter = lblCustInfoCount.Text
                ccpcounter = lblCustCommCount.Text
                copcounter = lblCOCount.Text
                cepcounter = lblEquipCount.Text
                pqpcounter = lblPQCount.Text
                cqpcounter = lblQCount.Text
                arpcounter = lblARPCount.Text
            Else
                pppcounter = 1
                ccpcounter = 1
                cipcounter = 1
                copcounter = 1
                cepcounter = 1
                pqpcounter = 1
                cqpcounter = 1
                arpcounter = 1
            End If
            fillpage(cust)
        End If
            If Not IsPostBack Then
                If Request.QueryString.ToString <> "" Then
                    FillCustomer(Request.QueryString("custNum").ToString)
                pppcounter = 1
                cipcounter = 1
                ccpcounter = 1
                copcounter = 1
                cepcounter = 1
                pqpcounter = 1
                cqpcounter = 1
                arpcounter = 1

                fillpage(cust)
                ElseIf Not Session("cust") Is Nothing Then
                    cust = Session("cust")
                pppcounter = lblmessage.Text
                cipcounter = lblCustInfoCount.Text
                ccpcounter = lblCustCommCount.Text
                copcounter = lblCOCount.Text
                cepcounter = lblEquipCount.Text
                pqpcounter = lblPQCount.Text
                cqpcounter = lblQCount.Text
                arpcounter = lblARPCount.Text
                    fillpage(cust)
                End If
            End If
    End Sub

    Sub fillpage(ByVal customer As Customer)
        custName.Text = cust.CustName
        CustomerName.Text = cust.CustName

        Dim addr As String
        addr = cust.Address1
        If cust.Address2 <> "" Then
            addr += "<br />" & cust.Address2
        End If
        If cust.Address3 <> "" Then
            addr += "<br />" & cust.Address3
        End If
        If cust.Address4 <> "" Then
            addr += "<br />" & cust.Address4
        End If

        addr += "<br />" & cust.City & ", " & cust.State & " " & cust.Zip & ", " & cust.Country
        CustomerAddress.Text = addr

        CustomerPhone.Text = cust.Phone
        CustomerAttTo.Text = cust.AttName
        CustomerCell.Text = cust.CellPhone
        CustomerFax.Text = cust.FaxNum
        CustomerEmail.Text = cust.shipToEmail
        CustomerType.Text = cust.CustType
        CustomerBillingTerms.Text = cust.CustTerms
        CustomerTaxCode.Text = cust.TaxInfo
        CustomerCreditOnAccount.Text = cust.Balance

        If cust.International Then
            CustomerIntl.Checked = True
        End If

        pnlCustInfo.Visible = True

        DataListequip.DataSource = cust.CustEquipment
        DataListequip.DataBind()

        dlARTrans.DataSource = cust.ArTransactions
        dlARTrans.DataBind()

        dlPartsQuoted.DataSource = cust.PartsQuotes
        dlPartsQuoted.DataBind()

        dlOrders.DataSource = cust.Orders
        dlOrders.DataBind()

        dlQuotes.DataSource = cust.Quotes
        dlQuotes.DataBind()

        lvCustInteraction.DataSource = cust.CustomerNotes
        lvCustInteraction.DataBind()

        grdcustcommunication2.DataSource = cust.CustInteractions
        grdcustcommunication2.DataBind()

        dlPartsPurch.DataSource = cust.PartsPurch
        dlPartsPurch.DataBind()
        lblmessage.Text = pppcounter
        lblCustInfoCount.Text = cipcounter
        lblCustCommCount.Text = ccpcounter
        lblCOCount.Text = copcounter
        lblEquipCount.Text = cepcounter
        lblPQCount.Text = pqpcounter
        lblQCount.Text = cqpcounter
        lblARPCount.Text = arpcounter

        'Hide Next and Previous buttons as needed
        If lblmessage.Text = 1 Then LinkButton2.Visible = False
        If cust.PartsPurch.Count < 10 Then LinkButton3.Visible = False

        If lblARPCount.Text = 1 Then ARPrev.Visible = False
        If cust.ArTransactions.Count < 10 Then ARNext.Visible = False

        If lblCOCount.Text = 1 Then COPrev.Visible = False
        If cust.Orders.Count < 10 Then CONext.Visible = False

        If lblCustCommCount.Text = 1 Then CCPrev.Visible = False
        If cust.CustInteractions.Count < 10 Then CCNext.Visible = False

        If lblCustInfoCount.Text = 1 Then CIPrev.Visible = False
        If cust.CustomerNotes.Count < 10 Then CINext.Visible = False

        If lblEquipCount.Text = 1 Then EquipPrev.Visible = False
        If cust.CustEquipment.Count < 10 Then EquipNext.Visible = False

        If lblPQCount.Text = 1 Then PQPrev.Visible = False
        If cust.PartsQuotes.Count < 10 Then PQNext.Visible = False

        If lblQCount.Text = 1 Then QPrev.Visible = False
        If cust.Quotes.Count < 10 Then QNext.Visible = False

    End Sub

    Private Sub LinkButton3_Click(sender As Object, e As EventArgs) Handles LinkButton3.Click
        pppcounter = lblmessage.Text + 1
        Dim pp As New PartsPurchased
        Dim temp As New Customer
        temp = Session("cust")
        cust.PartsPurch = pp.GetNextPage(temp.CustNo, "", "", 10, pppcounter, "USSL")
        dlPartsPurch.DataSource = cust.PartsPurch
        dlPartsPurch.DataBind()
        lblmessage.Text = pppcounter
        If lblmessage.Text = 1 Then
            LinkButton2.Visible = False
        Else
            LinkButton2.Visible = True
        End If

        If cust.PartsPurch.Count < 10 Then
            LinkButton3.Visible = False
        Else
            LinkButton3.Visible = True
        End If
        UpdatePanel1.Update()
    End Sub

    Private Sub LinkButton2_Click(sender As Object, e As EventArgs) Handles LinkButton2.Click
        pppcounter = lblmessage.Text - 1

        Dim pp As New PartsPurchased
        Dim temp As New Customer
        temp = Session("cust")
        cust.PartsPurch = pp.GetNextPage(temp.CustNo, "", "", 10, pppcounter, "USSL")
        dlPartsPurch.DataSource = cust.PartsPurch
        dlPartsPurch.DataBind()
        lblmessage.Text = pppcounter
        If lblmessage.Text = 1 Then
            LinkButton2.Visible = False
        Else
            LinkButton2.Visible = True
        End If

        If cust.PartsPurch.Count < 10 Then
            LinkButton3.Visible = False
        Else
            LinkButton3.Visible = True
        End If

        UpdatePanel1.Update()
    End Sub

    Sub FillCustomer(ByRef custNo As String)
        cust.CustNo = custNo
        cust.Site = "USSL"
        cust.FullSearch = True
        Try
            cust = cust.CustomerSearch(cust)
            Session("cust") = cust
        Catch ex As Exception
            Response.Redirect("~/ErrorPage.aspx")
        End Try
    End Sub

    Function GetLink(ByRef type, ByRef value)
        Dim linkText As String = ""
        Select Case type.ToUpper
            Case "CUSTOMEREQUIP"
                linkText = "/editCustomerEquipment.aspx?itemNum=" & value
            Case "CUSTOMERCOMM"
                linkText = "/EditCustomerCommunication.aspx?itemNum=" & value
            Case "CUSTOMERINTER"
                linkText = "/EditCustomerInteraction.aspx?itemNum=" & value
        End Select

        Return linkText
    End Function

    Protected Sub CINext_Click(sender As Object, e As EventArgs) Handles CINext.Click
        cipcounter = lblCustInfoCount.Text + 1
        Dim pp As New SLNotes
        Dim temp As New Customer
        temp = Session("cust")
        cust.CustomerNotes = pp.GetNextPage(temp.CustNo, 10, cipcounter, "USSL")
        lvCustInteraction.DataSource = cust.CustomerNotes
        lvCustInteraction.DataBind()
        lblCustInfoCount.Text = cipcounter
        If lblCustInfoCount.Text = 1 Then
            CIPrev.Visible = False
        Else
            CIPrev.Visible = True
        End If

        If cust.CustomerNotes.Count < 10 Then
            CINext.Visible = False
        Else
            CINext.Visible = True
        End If
        CustInfoUP.Update()
    End Sub

    Protected Sub CIPrev_Click(sender As Object, e As EventArgs) Handles CIPrev.Click
        cipcounter = lblCustInfoCount.Text - 1
        Dim pp As New SLNotes
        Dim temp As New Customer
        temp = Session("cust")
        cust.CustomerNotes = pp.GetNextPage(temp.CustNo, 10, cipcounter, "USSL")
        lvCustInteraction.DataSource = cust.CustomerNotes
        lvCustInteraction.DataBind()
        lblCustInfoCount.Text = cipcounter
        If lblCustInfoCount.Text = 1 Then
            CIPrev.Visible = False
        Else
            lblCustInfoCount.Visible = True
        End If

        If cust.CustomerNotes.Count < 10 Then
            CINext.Visible = False
        Else
            CINext.Visible = True
        End If
        CustInfoUP.Update()
    End Sub

    Protected Sub CCPrev_Click(sender As Object, e As EventArgs) Handles CCPrev.Click
        ccpcounter = lblCustCommCount.Text - 1
        Dim pp As New Interactions
        Dim temp As New Customer
        temp = Session("cust")
        cust.CustInteractions = pp.GetNextPage(temp.CustNo, "", 10, ccpcounter, "USSL")
        grdcustcommunication2.DataSource = cust.CustInteractions
        grdcustcommunication2.DataBind()
        lblCustCommCount.Text = ccpcounter
        If lblCustCommCount.Text = 1 Then
            CCPrev.Visible = False
        Else
            CCPrev.Visible = True
        End If

        If cust.CustInteractions.Count < 10 Then
            CCNext.Visible = False
        Else
            CCNext.Visible = True
        End If
        CustCommUP.Update()
    End Sub

    Protected Sub CCNext_Click(sender As Object, e As EventArgs) Handles CCNext.Click
        ccpcounter = lblCustCommCount.Text + 1
        Dim pp As New Interactions
        Dim temp As New Customer
        temp = Session("cust")
        cust.CustInteractions = pp.GetNextPage(temp.CustNo, "", 10, ccpcounter, "USSL")
        grdcustcommunication2.DataSource = cust.CustInteractions
        grdcustcommunication2.DataBind()
        lblCustCommCount.Text = ccpcounter
        If lblCustCommCount.Text = 1 Then
            CCPrev.Visible = False
        Else
            CCPrev.Visible = True
        End If

        If cust.CustInteractions.Count < 10 Then
            CCNext.Visible = False
        Else
            CCNext.Visible = True
        End If
        CustCommUP.Update()
    End Sub

    Protected Sub CONext_Click(sender As Object, e As EventArgs) Handles CONext.Click
        copcounter = lblCOCount.Text + 1
        Dim pp As New Order
        Dim temp As New Customer
        temp = Session("cust")
        cust.Orders = pp.GetNextPage(temp.CustNo, "", "", 10, copcounter, "USSL")
        dlOrders.DataSource = cust.Orders
        dlOrders.DataBind()
        lblCOCount.Text = copcounter
        If lblCOCount.Text = 1 Then
            COPrev.Visible = False
        Else
            COPrev.Visible = True
        End If

        If cust.Orders.Count < 10 Then
            CONext.Visible = False
        Else
            CONext.Visible = True
        End If
        OrdersUP.Update()
    End Sub

    Protected Sub COPrev_Click(sender As Object, e As EventArgs) Handles COPrev.Click
        copcounter = lblCOCount.Text - 1
        Dim pp As New Order
        Dim temp As New Customer
        temp = Session("cust")
        cust.Orders = pp.GetNextPage(temp.CustNo, "", "", 10, copcounter, "USSL")
        dlOrders.DataSource = cust.Orders
        dlOrders.DataBind()
        lblCOCount.Text = copcounter
        If lblCOCount.Text = 1 Then
            COPrev.Visible = False
        Else
            COPrev.Visible = True
        End If

        If cust.Orders.Count < 10 Then
            CONext.Visible = False
        Else
            CONext.Visible = True
        End If
        OrdersUP.Update()
    End Sub

    Protected Sub PQNext_Click(sender As Object, e As EventArgs) Handles PQNext.Click
        pqpcounter = lblPQCount.Text + 1
        Dim pp As New PartsQuote
        Dim temp As New Customer
        temp = Session("cust")
        cust.PartsQuotes = pp.GetNextPage(temp.CustNo, "", "", 10, pqpcounter, "USSL")
        dlPartsQuoted.DataSource = cust.PartsQuotes
        dlPartsQuoted.DataBind()
        lblPQCount.Text = pqpcounter
        If lblPQCount.Text = 1 Then
            PQPrev.Visible = False
        Else
            PQPrev.Visible = True
        End If

        If cust.Orders.Count < 10 Then
            PQNext.Visible = False
        Else
            PQNext.Visible = True
        End If
        PQUP.Update()
    End Sub

    Protected Sub PQPrev_Click(sender As Object, e As EventArgs) Handles PQPrev.Click
        pqpcounter = lblPQCount.Text - 1
        Dim pp As New PartsQuote
        Dim temp As New Customer
        temp = Session("cust")
        cust.PartsQuotes = pp.GetNextPage(temp.CustNo, "", "", 10, pqpcounter, "USSL")
        dlPartsQuoted.DataSource = cust.PartsQuotes
        dlPartsQuoted.DataBind()
        lblPQCount.Text = pqpcounter
        If lblPQCount.Text = 1 Then
            PQPrev.Visible = False
        Else
            PQPrev.Visible = True
        End If

        If cust.Quotes.Count < 10 Then
            PQNext.Visible = False
        Else
            PQNext.Visible = True
        End If
        PQUP.Update()
    End Sub

    Protected Sub QNext_Click(sender As Object, e As EventArgs) Handles QNext.Click
        cqpcounter = lblQCount.Text + 1
        Dim pp As New Quote
        Dim temp As New Customer
        temp = Session("cust")
        cust.Quotes = pp.GetNextPage(temp.CustNo, "", "", "", 10, cqpcounter, "USSL")
        dlQuotes.DataSource = cust.Quotes
        dlQuotes.DataBind()
        lblQCount.Text = cqpcounter
        If lblQCount.Text = 1 Then
            QPrev.Visible = False
        Else
            QPrev.Visible = True
        End If

        If cust.Quotes.Count < 10 Then
            QNext.Visible = False
        Else
            QNext.Visible = True
        End If
        QUP.Update()
    End Sub

    Protected Sub QPrev_Click(sender As Object, e As EventArgs) Handles QPrev.Click
        cqpcounter = lblQCount.Text - 1
        Dim pp As New Quote
        Dim temp As New Customer
        temp = Session("cust")
        cust.Quotes = pp.GetNextPage(temp.CustNo, "", "", "", 10, cqpcounter, "USSL")
        dlQuotes.DataSource = cust.Quotes
        dlQuotes.DataBind()
        lblQCount.Text = cqpcounter
        If lblQCount.Text = 1 Then
            QPrev.Visible = False
        Else
            QPrev.Visible = True
        End If

        If cust.Quotes.Count < 10 Then
            QNext.Visible = False
        Else
            QNext.Visible = True
        End If
        QUP.Update()
    End Sub

    Protected Sub ARNext_Click(sender As Object, e As EventArgs) Handles ARNext.Click
        arpcounter = lblARPCount.Text + 1
        Dim pp As New ArTrans
        Dim temp As New Customer
        temp = Session("cust")
        cust.ArTransactions = pp.GetNextPage(temp.CustNo, "", 10, arpcounter, "USSL")
        dlARTrans.DataSource = cust.ArTransactions
        dlARTrans.DataBind()
        lblARPCount.Text = arpcounter
        If lblARPCount.Text = 1 Then
            ARPrev.Visible = False
        Else
            ARPrev.Visible = True
        End If

        If cust.ArTransactions.Count < 10 Then
            ARNext.Visible = False
        Else
            ARNext.Visible = True
        End If
        ARUP.Update()
    End Sub

    Protected Sub ARPrev_Click(sender As Object, e As EventArgs) Handles ARPrev.Click
        arpcounter = lblARPCount.Text - 1
        Dim pp As New ArTrans
        Dim temp As New Customer
        temp = Session("cust")
        cust.ArTransactions = pp.GetNextPage(temp.CustNo, "", 10, arpcounter, "USSL")
        dlARTrans.DataSource = cust.ArTransactions
        dlARTrans.DataBind()
        lblARPCount.Text = arpcounter
        If lblARPCount.Text = 1 Then
            ARPrev.Visible = False
        Else
            ARPrev.Visible = True
        End If

        If cust.ArTransactions.Count < 10 Then
            ARNext.Visible = False
        Else
            ARNext.Visible = True
        End If
        ARUP.Update()
    End Sub

    Protected Sub EquipNext_Click(sender As Object, e As EventArgs) Handles EquipNext.Click
        cepcounter = lblEquipCount.Text + 1
        Dim pp As New Equipment
        Dim temp As New Customer
        temp = Session("cust")
        cust.CustEquipment = pp.GetNextPage(temp.CustNo, 0, 10, cepcounter, "USSL")
        DataListequip.DataSource = cust.CustEquipment
        DataListequip.DataBind()
        lblEquipCount.Text = cepcounter
        If lblEquipCount.Text = 1 Then
            EquipPrev.Visible = False
        Else
            EquipPrev.Visible = True
        End If

        If cust.ArTransactions.Count < 10 Then
            EquipNext.Visible = False
        Else
            EquipNext.Visible = True
        End If
        EquipUP.Update()
    End Sub

    Protected Sub EquipPrev_Click(sender As Object, e As EventArgs) Handles EquipPrev.Click
        cepcounter = lblEquipCount.Text - 1
        Dim pp As New Equipment
        Dim temp As New Customer
        temp = Session("cust")
        cust.CustEquipment = pp.GetNextPage(temp.CustNo, 0, 10, cepcounter, "USSL")
        DataListequip.DataSource = cust.CustEquipment
        DataListequip.DataBind()
        lblEquipCount.Text = cepcounter
        If lblEquipCount.Text = 1 Then
            EquipPrev.Visible = False
        Else
            EquipPrev.Visible = True
        End If

        If cust.ArTransactions.Count < 10 Then
            EquipNext.Visible = False
        Else
            EquipNext.Visible = True
        End If
        EquipUP.Update()
    End Sub
End Class

Open in new window

0
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 39202451
Change the first line to:

<%@ Page Title="" Language="vb"  UICulture="auto"  AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="welcome.aspx.vb" Inherits="GatewayVB.omcswelcome" EnableSessionState="true" %>

Open in new window

0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:Wigging
ID: 39205284
I did what you told me and now I get this ?

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

Source Error:


Line 14:     Protected Sub New()
Line 15:         '  Dim session As System.Web.SessionState.HttpSessionState = HttpContext.Current.Session
Line 16:         If session("newculture") Is Nothing Then
Line 17:             session("newculture") = "en-US"
Line 18:         End If
0
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39205606
Do you have a <sessionState> node in your web.config? If so, what is its value?

e.g.

<configuration>
    <system.web>
      <compilation debug="true" targetFramework="4.5" />
      <httpRuntime targetFramework="4.5" />
      <sessionState mode="Off"></sessionState>           <<------  For example
    </system.web>

</configuration>

Open in new window

0
 

Author Comment

by:Wigging
ID: 39205627
<sessionState mode="InProc" customProvider="DefaultSessionProvider">
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now