Link to home
Start Free TrialLog in
Avatar of James Foxworthy
James FoxworthyFlag for United States of America

asked on

Why isn't my asp:ControlParameter being found on page load

Hello,

When my page loads, there is a date populated in FormView_SelectedSalesDate (line 78). This works. I am pulling the date from a table using an SQLDataSource for this FormView.

Now, I want to use this date as a ControlParameter in the SQLDataSource of a GridView (line 272) but when I try to do that I get a message stating, "Could not find control 'ctl00_ContentPlaceHolder1_FormView_SalesDate_SelectedSalesDateLabel' in ControlParameter 'SelectedSalesDateLabel'."

I greatly appreciate your assistance!

Thank you,
Riverwalk


Here is the control that I want to use as a ControlParameter, as seen in the page source. Line 304, is where I am trying to set this up as a ControlParamter.
<span id="ctl00_ContentPlaceHolder1_FormView_SalesDate_SelectedSalesDateLabel" style="display:inline-block;color:Blue;font-size:14pt;font-weight:bold;width:150px;">8/7/2012</span>

Open in new window


And here is the code for the entire page in question.

<%@ Page Title="" Language="VB" Debug="true" MaintainScrollPositionOnPostback="true" MasterPageFile="~/CustManMasterPage.master" AutoEventWireup="false" CodeFile="Inventory.aspx.vb" Inherits="Inventory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<form id="form1" runat="server">


<div id="content">
 
    <%-- This is populated with the logged-in username, by Inventory.aspx.vb. It is set to be invisible because it is for other code to reference
            it is not mean to be displayed.--%>
    <asp:TextBox ID="UserName"  Visible="false" name="UserName" runat="server"></asp:TextBox>

    <%-- Data Source, to look up the Customer ID, based on logged-in user.--%>
    <asp:SqlDataSource ID="SqlDataSource_GetCustomerID" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MBFConnectionString %>" 
        SelectCommand="SELECT [POS_ID] FROM [tblPOSLocation] WHERE UserName = @UserName">

        <%--Makes UserName available with the WHERE clause of data source.--%>
        <SelectParameters>
            <asp:ControlParameter ControlID="UserName" name="UserName" PropertyName="text" DefaultValue="0" />
        </SelectParameters>
     </asp:SqlDataSource>
     
    <%-- FormView is bound to the looked-up CustomerID, from the data source. Visible has been set to False, and the lable commented out
         because this is TextBox is for other code to reference and use, it is not for display.  --%>
    <asp:FormView ID="FormView_CustomerID" runat="server" 
     DataSourceID="SqlDataSource_GetCustomerID">
     <ItemTemplate>
         <%--Customer ID = --%><asp:textbox ID="CustomerID" Visible="false" runat="server" Text='<%# Bind("POS_ID") %>' />
     </ItemTemplate>
 </asp:FormView>
     
<%--************************************************************************************************************--%>
<div id="greeting">
   
   <table>
    <tr>
       <td style="height: 33px; width: 665px">
            <%-- 
            The below line displays the login name.
            The value of LoginName in this control, comes automatically from the asp LoginName control. No other code is needed.
            But I could not figure out how to reference this login name for use elsewhere in the code, so I have used other means below
            to use the login name.
            --%>
            Welcome! You are logged in as:&nbsp<asp:LoginName ID="LoginName1" Name="LoginName1" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="12pt" Width="366px" />
       </td>
    </tr>
   </table>
 </div>
 
 <div id="sales_date">
    <table border="0">
    
   
    <tr>
       <td>
           <asp:SqlDataSource ID="SqlDataSource_SalesDate" runat="server" 
               ConnectionString="<%$ ConnectionStrings:MBFConnectionString %>"
               ConflictDetection="CompareAllValues"
               OldValuesParameterFormatString="original_{0}"
               SelectCommand="SELECT SelectedSalesDate FROM tblPOSLocation WHERE POS_ID = @POS_IDTextBox"
               UpdateCommand="UPDATE [tblPOSLocation] SET [SelectedSalesDate] = @SelectedSalesDateTextBox WHERE [POS_ID] = @POS_IDTextBox">
                   
                   <UpdateParameters>  
                         <asp:ControlParameter ControlID="ctl00$ContentPlaceHolder1$FormView_Daily_Inventory_Entry$POS_IDTextBox" Name="POS_IDTextBox" PropertyName="Text" DefaultValue="0" ></asp:ControlParameter>  
                         <asp:ControlParameter ControlID="ctl00$ContentPlaceHolder1$FormView_SalesDate$SelectedSalesDateTextBox" Name="SelectedSalesDateTextBox" PropertyName="Text" DefaultValue="0" ></asp:ControlParameter>   
                   </UpdateParameters>

                    <SelectParameters>
                        <asp:ControlParameter ControlID="ctl00$ContentPlaceHolder1$FormView_Daily_Inventory_Entry$POS_IDTextBox" Name="POS_IDTextBox" PropertyName="Text" DefaultValue="0" ></asp:ControlParameter>
                    </SelectParameters>
            </asp:SqlDataSource>
       </td>
       <td>
       
            <asp:FormView ID="FormView_SalesDate" runat="server" 
            DataSourceID="SqlDataSource_SalesDate" >
           
                <EditItemTemplate>
                    For Sales Date:
                    <asp:TextBox ID="SelectedSalesDateTextBox" DataFormatString="{0:d}" runat="server" 
                        Text='<%# Bind("SelectedSalesDate", "{0:d}") %>' ForeColor="Blue"   Font-Size="14pt" Width="100px" Font-Bold="True" />
                    
                    <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                        CommandName="Update" Text="Update" Font-Size="10pt" />
                    &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                        CausesValidation="False" CommandName="Cancel" Text="Cancel" Font-Size="10pt" />
                </EditItemTemplate>
        
                <ItemTemplate>
                    For Sales Date:
                    <asp:Label ID="SelectedSalesDateLabel" Name="SelectedSalesDateLabel" runat="server" ForeColor="Blue" Font-Size="14pt" Font-Bold="True" Width="150px"
                      Text='<%# Bind("SelectedSalesDate", "{0:d}") %>' />
                    
                    <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" Font-Size="10pt"
                        CommandName="Edit" Text="Edit" />
                </ItemTemplate>
        
        </asp:FormView>
            
       </td>
       
    </tr>
   </table>
   
</div>
   
    <br /> <br />
 
<%-- ****************** Customer Drop Down List Data source  ***********************************  --%>

    <asp:SqlDataSource ID="SqlDataSource_Location" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MBFConnectionString %>" 
        SelectCommand="SELECT POS_ID, POS_Name FROM jdorn.tblPOSLocation Order By POS_ID Asc">
        
        <SelectParameters>
            <asp:ControlParameter ControlID="DropDownList_Location" Name="DropDownList_Location" PropertyName="SelectedValue" DefaultValue="0" />
        </SelectParameters>
    </asp:SqlDataSource>
 
<%-- ****************** Product List Data source  ***********************************  --%>
   
     <asp:SqlDataSource ID="SqlDataSource_Product_List" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MBFConnectionString %>" 
        SelectCommand="SELECT [Product_ID], [Product_Name] FROM [tblProductList] Order By Product_Name Asc">
     </asp:SqlDataSource>

 <%-- ****************** FormView Data source  ***********************************  --%>
 
 <asp:SqlDataSource ID="SqlDataSource_Daily_Inventory" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MBFConnectionString %>" 
        SelectCommand="SELECT [Inventory_Sales_ID], [Sales_Date], [Day_Of_Week], [POS_Name], [Average_Sale_DOW], [Adjusted_Sale_DOW], [New_Units_Received], [Maximum_Sale_DOW], [SoldUnits], [Samples], [UnsoldDiscard], [CurrentDaysCarryover], [POS_ID], [ProductID], Commnets FROM [tblPOSDailyInventoryDetail]"
        InsertCommand="INSERT INTO [tblPOSDailyInventoryDetail] ([SalesDate], [POS_ID], [ProductID], [SoldUnits], [Samples], [UnsoldDiscard], [AdjustedUnits],[CurrentDaysCarryover],[RSMEstNextDaySales],[Comments]) VALUES (@Sales_Date, @POS_ID, @Product_ID, @SoldUnits, @Samples, @UnsoldDiscard, @AdjustedUnits, @CurrentDaysCarryover, @RSMEstNextDaySales, @Comments)" >
            <InsertParameters>
                <asp:Parameter Name="SalesDate" DbType="Date" />
                <asp:Parameter Name="POS_ID" Type="Int32" />
                <asp:Parameter Name="ProductID" Type="Int32" />
                <asp:Parameter Name="SoldUnits" Type="Int32" />
                <asp:Parameter Name="Samples" Type="Int32" />
                <asp:Parameter Name="UnsoldDiscard" Type="Int32" />
                <asp:Parameter Name="AdjustedUnits" Type="Int32" />
                <asp:Parameter Name="CurrentDaysCarryover" Type="Int32" />
                <asp:Parameter Name="RSMEstNextDaySales" Type="Int32" />
                <asp:Parameter Name="Comments" Type="string" />
            </InsertParameters>
 </asp:SqlDataSource>

<%-- ****************** Customer Drop Down LIst ***********************************  --%>
<div id="Customer_Drop_Down">
 <asp:DropDownList ID="DropDownList_Location" runat="server"
                AppendDataBoundItems="true"
                DataSourceID="SqlDataSource_Location" DataTextField="POS_Name" DataValueField="POS_ID"
                Height="27px" Width="225px"
                AutoPostBack="True" 
        onselectedindexchanged="DropDownList_Location_SelectedIndexChanged">
                <asp:ListItem Text="--Select a POS location --" Value="" />
            </asp:DropDownList>
</div>

<div id="selected_product">
<asp:SqlDataSource ID="SqlDataSource_Selected_Product" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MBFConnectionString %>" 
        SelectCommand="SELECT [Product_Name] FROM [tblProductList] WHERE Product_ID = @POS_IDTextBox">
        <SelectParameters>
           <asp:ControlParameter ControlID="ctl00$ContentPlaceHolder1$FormView_Daily_Inventory_Entry$Product_IDTextBox" Name="POS_IDTextBox" PropertyName="Text" DefaultValue="0" ></asp:ControlParameter>
        </SelectParameters>
    </asp:SqlDataSource>
        
                                    <asp:FormView ID="FormView_Selected_Product" runat="server" 
                                        DataSourceID="SqlDataSource_Selected_Product">
                                        <ItemTemplate>
                                            <table>
                                                <tr><td><asp:Label Font-Size="14pt" ID="Selected_Product_Label" runat="server" Text='<%# Bind("Product_Name") %>' /></td></tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:FormView>

</div>

<%-- ****************** Product List Data Grid ***********************************  --%>
<div id="Product_List_GridView">
   

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
        CellPadding="5" DataKeyNames="Product_ID"
        AutoPostBack="True" onselectedindexchanged="GridView1_SelectedIndexChanged" 
        DataSourceID="SqlDataSource_Product_List" ForeColor="Black" 
        GridLines="None" AllowPaging="True" PageSize="300">
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
            <asp:BoundField DataField="Product_ID" HeaderText="ID" ReadOnly="True" 
                SortExpression="Product_ID" HeaderStyle-HorizontalAlign="Left" >
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
            </asp:BoundField>
            <asp:BoundField DataField="Product_Name" HeaderText="Product" 
                SortExpression="Product_Name" HeaderStyle-HorizontalAlign="Left" >
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="Tan" />
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <AlternatingRowStyle BackColor="PaleGoldenrod" />
    </asp:GridView>
    
</div>   
    
    
<div id="Data_Inventory_Input_Form"> 

  <asp:FormView ID="FormView_Daily_Inventory_Entry" runat="server" DataKeyNames="Inventory_Sales_ID" 
        DataSourceID="SqlDataSource_Daily_Inventory" DefaultMode="Insert" 
        CellPadding="1" ForeColor="#333333">
        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="PaleGoldenrod" ForeColor="#333333" />
    
        <InsertItemTemplate>   
       

          <table>
            <tr><td colspan="6"><asp:RequiredFieldValidator ID="RequiredFieldValidator1" Display="Dynamic" runat="server" ValidationGroup="Group1" ControlToValidate="Product_IDTextBox" Font-Bold="true" ForeColor="Blue" ErrorMessage="You must reselect a Product."></asp:RequiredFieldValidator></td></tr>
         
            <tr>
                <td><asp:CompareValidator ID="CompareValidator1" Display="Dynamic" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="SoldUnitsTextBox" ForeColor="Blue" ErrorMessage="No Decimals or Letters!" /></td>
                <td><asp:CompareValidator ID="CompareValidator2" Display="Dynamic" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="SamplesTextBox" ForeColor="Blue" ErrorMessage="No Decimals or Letters!" /></td>
                <td><asp:CompareValidator ID="CompareValidator3" Display="Dynamic" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="UnsoldDiscardTextBox" ForeColor="Blue" ErrorMessage="No Decimals or Letters!" /></td>
                <td><asp:CompareValidator ID="CompareValidator4" Display="Dynamic" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="AdjustedUnits" ForeColor="Blue" ErrorMessage="No Decimals or Letters!" /></td>
                <td><asp:CompareValidator ID="CompareValidator5" Display="Dynamic" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="CurrentDaysCarryoverTextBox" ForeColor="Blue" ErrorMessage="No Decimals or Letterv" /></td>
                <td><asp:CompareValidator ID="CompareValidator6" Display="Dynamic" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="RSMEstNextDaySales" ForeColor="Blue" ErrorMessage="No Decimals or Letters!" /></td>
            </tr>
            <tr><td class="FormViewLable" width="84px">Sold:</td><td class="FormViewLable" width="84px">Samples:</td><td class="FormViewLable" width="84px">Discard:</td><td class="FormViewLable" width="84px">Adjusted:</td><td class="FormViewLable" width="84px">Carryover:</td><td class="FormViewLable" width="84px">Est Next Day:</td><td class="FormViewLable" width="84px">Comments:</td></tr>            
            <tr>
                <td><asp:TextBox ID="SoldUnitsTextBox" runat="server" Text='<%# Bind("SoldUnits") %>' width="84px" /></td>
                <td><asp:TextBox ID="SamplesTextBox" runat="server" Text='<%# Bind("Samples") %>' Width="84px" /></td>
                <td><asp:TextBox ID="UnsoldDiscardTextBox" runat="server" Text='<%# Bind("UnsoldDiscard") %>' Width="84px" /></td>
                <td><asp:TextBox ID="AdjustedUnits" runat="server" Text='<%# Bind("AdjustedUnits") %>' Width="84px" /></td>
                <td><asp:TextBox ID="CurrentDaysCarryoverTextBox" runat="server" Text='<%# Bind("CurrentDaysCarryover") %>' Width="84px" /></td>
                <td><asp:TextBox ID="RSMEstNextDaySales" runat="server" Text='<%# Bind("RSMEstNextDaySales") %>' Width="84px" /></td>
                <td><asp:TextBox ID="Comments" runat="server" Text='<%# Bind("Comments") %>' Width="187px" Height="19px" /></td>
            </tr>   
         </table>
         <table>
            <tr>
            <td><asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" ValidationGroup="Group1" CommandName="Insert" Text="Insert" />&nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /></td>
            <td class="FormViewLable" width="84px">Sales Date:</td>
            <td><asp:TextBox visible="true" ID="Sales_DateTextBox" runat="server" Text='<%# Bind("Sales_Date") %>'  BackColor="PaleGoldenrod" BorderStyle="None" ReadOnly="True" Width="84px" /></td>
            <td class="FormViewLable" width="84px">Customer ID:</td>
            <td><asp:TextBox visible="true" ID="POS_IDTextBox" runat="server" Text='<%# Bind("POS_ID") %>'  BackColor="PaleGoldenrod" BorderStyle="None" ReadOnly="True" width="84px" /></td>
           <td class="FormViewLable" width="84px">Product ID:</td>
            <td><asp:TextBox visible="true" ID="Product_IDTextBox" ValidationGroup="Group1" runat="server" Text='<%# Bind("Product_ID") %>'  BackColor="PaleGoldenrod" BorderStyle="None" ReadOnly="True" width="84px" /></td></tr>
              
        </table>
          
        </table>
       
        </InsertItemTemplate>
        
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <HeaderStyle BackColor="tan" Font-Bold="True" ForeColor="White" />
    </asp:FormView>
       
        
</div>

<div id="Inventory_Input_Confirmation" align="left"> 

    <asp:SqlDataSource ID="SqlDataSource_ProductsSelected" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MBFConnectionString %>" 
        ConflictDetection="CompareAllValues"
        OldValuesParameterFormatString="original_{0}"
        SelectCommand="SELECT tblPOSDailyInventoryDetail.Inventory_Sales_ID, tblPOSDailyInventoryDetail.POS_ID, RSMEstNextDaySales, tblPOSDailyInventoryDetail.SalesDate, tblPOSDailyInventoryDetail.ProductID, tblPOSDailyInventoryDetail.AdjustedUnits, tblPOSDailyInventoryDetail.SoldUnits, tblPOSDailyInventoryDetail.Samples, tblPOSDailyInventoryDetail.UnsoldDiscard, tblPOSDailyInventoryDetail.CurrentDaysCarryover, tblProductList.Product_Name, Comments FROM tblPOSDailyInventoryDetail INNER JOIN tblProductList ON tblPOSDailyInventoryDetail.ProductID = tblProductList.Product_ID WHERE (tblPOSDailyInventoryDetail.POS_ID = @POS_IDTextBox) AND (tblPOSDailyInventoryDetail.SalesDate = CAST(@ctl00_ContentPlaceHolder1_FormView_SalesDate_SelectedSalesDateLabel AS Date)) ORDER BY Product_Name" 
       
        UpdateCommand="UPDATE [tblPOSDailyInventoryDetail] SET [SoldUnits] = @SoldUnits, [Samples] = @Samples, [UnsoldDiscard] = @UnsoldDiscard, [RSMEstNextDaySales] = @RSMEstNextDaySales, [CurrentDaysCarryover] = @CurrentDaysCarryover, [AdjustedUnits] = @AdjustedUnits, [Comments] = @Comments WHERE [Inventory_Sales_ID] = @original_Inventory_Sales_ID"
        DeleteCommand="DELETE FROM [tblPOSDailyInventoryDetail] WHERE [Inventory_Sales_ID] = @original_Inventory_Sales_ID">
        
        <DeleteParameters>
            <asp:Parameter Name="original_Inventory_Sales_ID" Type="Int32" />
        </DeleteParameters>
     
 
        <UpdateParameters>  
            <asp:Parameter Name="SoldUnits" Type="Int32" />      
            <asp:Parameter Name="Samples" Type="Int32" />
            <asp:Parameter Name="UnsoldDiscard" Type="Int32" />
            <asp:Parameter Name="CurrentDaysCarryover" Type="Int32" />
            <asp:Parameter Name="AdjutedUnits" Type="Int32" />
            <asp:Parameter Name="RSMEstNextDaySales" Type="Int32" />
            <asp:Parameter Name="Comments" DbType="String" />
            <asp:Parameter Name="original_Inventory_Sales_ID" Type="Int32" />  
            <asp:Parameter Name="original_SoldUnits" Type="Int32" />          
            <asp:Parameter Name="original_Samples" Type="Int32" />
            <asp:Parameter Name="original_UnsoldDiscard" Type="Int32" />
            <asp:Parameter Name="original_CurrentDaysCarryover" Type="Int32" />
            <asp:Parameter Name="original_Comments" DbType="String" />
        </UpdateParameters>

        <SelectParameters>
            <asp:ControlParameter ControlID="ctl00$ContentPlaceHolder1$FormView_Daily_Inventory_Entry$POS_IDTextBox" Name="POS_IDTextBox" PropertyName="Text" DefaultValue="0" ></asp:ControlParameter>
            <asp:ControlParameter ControlID="ctl00_ContentPlaceHolder1_FormView_SalesDate_SelectedSalesDateLabel" Name="SelectedSalesDateLabel" PropertyName="Text" DefaultValue="0" ></asp:ControlParameter>
        </SelectParameters>
        
    </asp:SqlDataSource>

 <asp:GridView ID="GridView_Inventory_Input_Confirmation" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="Inventory_Sales_ID" CellPadding="6" 
        DataSourceID="SqlDataSource_ProductsSelected" BackColor="LightGoldenrodYellow" 
        BorderColor="Tan" BorderWidth="1px" ForeColor="Black" GridLines="None" 
         AllowSorting="True">
 <Columns>
            <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" />
            <asp:BoundField DataField="Inventory_Sales_ID" HeaderText="Record ID" 
                InsertVisible="False" ReadOnly="True" Visible="True" 
                SortExpression="Inventory_Sales_ID" ItemStyle-HorizontalAlign="Center" >
                
<ItemStyle HorizontalAlign="Center"></ItemStyle>       
            </asp:BoundField>
            <asp:BoundField DataField="Product_Name" HeaderText="Product" 
                SortExpression="Product_Name" ItemStyle-HorizontalAlign="left" ReadOnly = "true" HeaderStyle-HorizontalAlign="Left">
                
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>         
            </asp:BoundField>
            <asp:BoundField DataField="POS_ID" HeaderText="POS_ID" 
                SortExpression="POS_ID" Visible="false" 
                ItemStyle-HorizontalAlign="Center" >
                
<ItemStyle HorizontalAlign="Center"></ItemStyle>              
            </asp:BoundField>
            <asp:BoundField DataField="SalesDate" HeaderText="SalesDate" 
                SortExpression="SalesDate" Visible="false" 
                ItemStyle-HorizontalAlign="Center" >
            
<ItemStyle HorizontalAlign="Center"></ItemStyle>           
            </asp:BoundField>
            <asp:BoundField DataField="ProductID" HeaderText="ProductID" 
                SortExpression="ProductID" Visible="false" 
                ItemStyle-HorizontalAlign="left" >

 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="SoldUnits" HeaderText="Sold" 
                SortExpression="SoldUnits" ItemStyle-HorizontalAlign="Center" >
            
<ItemStyle HorizontalAlign="Center"></ItemStyle>        
            </asp:BoundField>
            <asp:BoundField DataField="Samples" HeaderText="Samples" 
                SortExpression="Samples" ItemStyle-HorizontalAlign="Center" >
            
<ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="UnsoldDiscard" HeaderText="Discard" 
                SortExpression="UnsoldDiscard" ItemStyle-HorizontalAlign="Center" >
           

<ItemStyle HorizontalAlign="Left"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="AdjustedUnits" HeaderText="Adjusted" 
                SortExpression="AdjustedUnits" ItemStyle-HorizontalAlign="Center" >
                
                
<ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="CurrentDaysCarryover" 
                HeaderText="Carryover" SortExpression="CurrentDaysCarryover" 
                ItemStyle-HorizontalAlign="Center" >
  
                
<ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="RSMEstNextDaySales" 
                HeaderText="Est Next Day" SortExpression="RSMEstNextDaySales" 
                ItemStyle-HorizontalAlign="Center" >                

    
<ItemStyle HorizontalAlign="Center"></ItemStyle>    
            </asp:BoundField>
            <asp:BoundField DataField="comments" 
               HeaderText="Comments" SortExpression="comments" 
                ItemStyle-HorizontalAlign="left" HeaderStyle-HorizontalAlign="Left" >
            
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>

<ItemStyle HorizontalAlign="Left"></ItemStyle>
            </asp:BoundField>
            
</Columns>
        <FooterStyle BackColor="Tan" />
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <EditRowStyle HorizontalAlign="Center" />
        <AlternatingRowStyle BackColor="PaleGoldenrod" />
</asp:GridView>  


</div>
</div>

</form>

</asp:Content>

Open in new window

Avatar of kblau
kblau

I have a master page on mine but I don't have to prefix the element I'd with that junk. Try using view source in the browser and identify the correct I'd.
Avatar of James Foxworthy

ASKER

Thank you for responding. I did do a view source, as I pointed out above in the first code section. You can see it above.  Any other ideas? This issue has been killing me for several days.

Thank you,
Riverwalk
ASKER CERTIFIED SOLUTION
Avatar of James Foxworthy
James Foxworthy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No one else provided an answer.