Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9147555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:01:04+00:00 2026-06-17T11:01:04+00:00

This seems like it should be an easy answer, but I have searched everywhere

  • 0

This seems like it should be an easy answer, but I have searched everywhere for this and can’t seem to find what I am trying to do and i’m new to this so I might be missing something… Hopefully someone can help.

The purpose of this is to display a packing list of scanners (the dl) I am sending for repair and each repair issue has notes (the gv). I am able to get the dl to display correctly, but i can’t get the gv to display at all. Even when i hard code the “issuekey”. I get an Object not set to object error. Obviously i can’t keep it hard coded, so I try to pull the issuekey (via a DataKey)from the dl and pass it to the gv, I get “Index was out of range”. (when i step thru it comes up -1).

Here is the code i’m working with…. THANKS

Sub LoadShippingList()
    dlShippingList.DataSource = WarehouseManager.GetScannerIssuesByScannerStatus(WarehouseManager.ScannerStatus.PendingShipForRepair)
    dlShippingList.DataBind()
End Sub

Protected Sub dlShippingList_ItemDataBound(sender As Object, e As System.Web.UI.WebControls.DataListItemEventArgs) Handles dlShippingList.ItemDataBound
    Dim dList As DataList = CType(sender, DataList)
    Dim intScannerIssueKey As Integer = dList.DataKeys(e.Item.ItemIndex)

    Dim gv As GridView
    gv = CType(e.Item.FindControl("gvShippingListIssueNotes"), GridView)
    gv.DataSource() = WarehouseManager.GetScannerIssueNotes(intScannerIssueKey)
    gv.DataBind()

End Sub


<asp:Panel ID="pnlShippingList" runat="server">
            <asp:Label ID="lblShippingListCaption" runat="server" Text="Shipping List" SkinID="PageTitle"></asp:Label>
            <br />
            <asp:DataList ID="dlShippingList" runat="server" GridLines="Both" DataKeys="ScannerIssueKey" DataKeyField="ScannerIssueKey">
                <HeaderTemplate>
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lblShipmentNumberCaption" runat="server" Text="Shipment:" SkinID="FieldLabel"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblShipmentNumber" runat="server" SkinID="FeedbackMessageSmallDark"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblShipmentDateCaption" runat="server" Text="Date:" SkinID="FieldLabel"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="ShipmentDate" runat="server" SkinID="FeedbackMessageSmallDark"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </HeaderTemplate>
                <ItemTemplate>
                    Issue #:<asp:Label ID="lblScannerIssueKey" runat="server" Text='<%# Eval("ScannerIssueKey") %>'></asp:Label>
                    Scanner #:
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("ScannerKey") %>'></asp:Label>
                    Subject:<asp:Label ID="Label2" runat="server" Text='<%# Eval("IssueDescription") %>'></asp:Label>
                    <br />
                    Notes:<br />
                    <asp:GridView ID="gvShippingListIssueNotes" HorizontalAlign="Left" runat="server"
                        Font-Size="Medium" EmptyDataText="No Notes" AutoGenerateColumns="false" SkinID="SimpleGrid">
                        <RowStyle VerticalAlign="Top" HorizontalAlign="Center" />
                        <Columns>
                            <asp:BoundField HeaderText="Notes" DataField="Notes" />
                            <asp:BoundField HeaderText="User" DataField="UserEntered" />
                            <asp:BoundField HeaderText="Date" DataField="DateAndTime" />
                        </Columns>
                    </asp:GridView>
                    <br />
                </ItemTemplate>
                <FooterTemplate>
                    Weissmans's 6750 Manchester Avenue St. Louis MO 63139</FooterTemplate>
            </asp:DataList>
            <br />
        </asp:Panel>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:01:05+00:00Added an answer on June 17, 2026 at 11:01 am

    I THINK I FOUND MY OWN ANSWER…. in the ASP of the DataList I added onItemDataBound=”dlShippingList_ItemDataBound” on vb i took out … Handles dlShippingList.ItemDataBound SOO FAR, it seems to be working perfectly!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems like it should be really easy but I couln't find an answer
This seems like it should be easy, but I can't quite find an explanation
This seems like it should be easy as pie, but I can't seem to
Seems like in Perl this should be easy or a module, but I have
This seems like it should be easy, but I can't get the right syntax.
So this seems like it should be easy, but I can't quite figure out
I feel like this should be an easy question but I can't seem to
This seems like it should be an easy thing to do, but for the
This seems like it should be something very easy to do, but every time
This seems like it should be obvious but I can't figure it out. Suppose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.