Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From your code it looks like you're passing 4 parameters, but let's make sure that's what's happening during design AND run time.</p> <h2>Design Time</h2> <p>In the Design view of your page, select your GridView and expand the extended menu by clicking the [>] and choose to refresh the schema. This may clear your item templates but that should be ok since you have your code saved elsewhere (i.e. here).</p> <h2>Run Time</h2> <p>Hook onto the SqlDataSource.Selecting event and check your command parameters in debug mode.</p> <p>ASPX</p> <pre><code>&lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="&lt;%$ ConnectionStrings:Development %&gt;" SelectCommand="sp_GatewayMerchants" SelectCommandType="StoredProcedure" OnSelecting=SqlDataSource1_Selecting&gt; ... </code></pre> <p>CS</p> <pre><code>protected void SqlDataSource1_Selecting(object sender, System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs e) { // check e.Command.Parameters } </code></pre> <p><strong>EDIT</strong></p> <p>Another thing you can try is set the DataKeyNames property of the Data</p> <pre><code>&lt;asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" ShowFooter="True" OnRowDataBound="GridView1_RowDataBound" AllowSorting="True" DataKeyNames="MerchantID"&gt; </code></pre> <p><strong>EDIT 2</strong></p> <p>More things to try:</p> <ol> <li>When you're "refreshing" your page, make sure to not use F5 or hit the Refresh button. Go to your browser's address field and hit Enter as to not have IsPostBack = true</li> <li>Remove OnClick, CommandName, and CommandArguemnt from the LinkButton's declaration</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload