asp.net pass parameter to
<p>I have a fly out menu that is 2 level deep. Once the user clicks on it, I am not sure how get what the user selected to populate a grid's datasource SelectedCommand</p>

<p>This is what the DataSource looks like that populates the grid:</p>

<pre><code>      &lt;asp:SqlDataSource ID="CliendDS" runat="server" ConnectionString="&lt;%$ ConnectionStrings:ProgSQL %&gt;"
</code></pre>

<p>My SelectCommand is as following for the grid:</p>

<pre><code>    SelectCommand="SELECT FirstName from Prog where ProgId = @LocId "&gt;
</code></pre>

<p>This is the method I call when the user clicks on an item on the flyout menu:</p>

<pre><code>    protected void menu_ItemClicked(object sender, Telerik.Web.UI.RadMenuEventArgs e)
    {

           int value = Convert.ToInt32(e.Item.Value);
           ViewState["LocId"] = value;

    }
</code></pre>

<p>I am not sure how to get @LocId to be the value of ViewState["LocId"] so that once it is selected, the binding can happen with the selected value.</p>

<p>I tried:</p>

<pre><code>      &lt;SelectParameters&gt;
          &lt;asp:QueryStringParameter Name="LocId" QueryStringField="LocId" /&gt;
      &lt;/SelectParameters&gt;
</code></pre>

<p>but that didn't work. </p>
