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 6220319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:56:12+00:00 2026-05-24T07:56:12+00:00

I have an ASPX GridView with a DetailsRow which I need to display some

  • 0

I have an ASPX GridView with a DetailsRow which I need to display some information on the expanded row, as well as an opportunity to add some data. My problem right now is SELECT’ing the right data when the DetailsRow expands. This is my template code:

  <Templates>
       <DetailRow>
           <asp:Repeater DataSourceID="ConversationsDataSource" runat="server">
           <ItemTemplate>
           <p>Foobar</p>
           </ItemTemplate>
           </asp:Repeater>
           <asp:SqlDataSource SelectCommand='SELECT Subject, Message FROM [Fedmekirurgi].[dbo].[MessageSystem.Message] WHERE ConversationID = @ID %>'
                        runat="server" ID="ConversationsDataSource" ConnectionString="<%$ ConnectionStrings:Fedmekirurgi %>">
            <SelectParameters>
                <asp:Parameter Name="ID" Type="Int32" />
            </SelectParameters>
            </asp:SqlDataSource>
            <dx:ASPxMemo ID="ASPxMemo1" runat="server" Height="71px" Width="470px">
            </dx:ASPxMemo>
        </DetailRow>
   </Templates>

My problem is that I just for the life of me cannot get the relevant paramter injected into my SqlDataSource. Basically, if I could just do:

                    <asp:SqlDataSource SelectCommand='SELECT Subject, Message FROM [Fedmekirurgi].[dbo].[MessageSystem.Message] WHERE ConversationID = <%# Eval("ID") %>'
                        runat="server" ID="ConversationsDataSource" ConnectionString="<%$ ConnectionStrings:Fedmekirurgi %>">

it would serve my needs!

So, how do I “inject” data I get from an Eval() into a SqlDataSource?

  • 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-05-24T07:56:14+00:00Added an answer on May 24, 2026 at 7:56 am

    Not sure where that data is coming from but you have an option to pass parameters in SQLDataSource from QueryString, Cookie, Session, Form, Control, Route, and Profile For example, here’s the SQLDataSource picking it up from the QueryString:

        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ChinookConnectionString %>" 
            SelectCommand="SELECT [CustomerId], [FirstName], [LastName], [Country], [Phone], [Email] FROM [Customer] WHERE ([CustomerId] &gt;= @CustomerId)">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="0" Name="CustomerId" 
                    QueryStringField="custid" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    

    As for passing the eval value on the client-side, I’m not sure that is possible because SQLDataSource is a server-control (I.e. runat=server) and it binds the data on the serverside before rendering it for the client browser.

    For the Master-detail, check out these resources which can help you:

    • http://tv.devexpress.com/#ASPxGridView04
    • http://search.devexpress.com/?q=master-detail&p=T4|P5|57
    • http://documentation.devexpress.com/#AspNet/CustomDocument3773

    Hope that helps, thanks.

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

Sidebar

Related Questions

I have a gridview and listview in my aspx pages which both display tables
I have an ASPx Gridview control which displays a bunch of data. In the
I have one aspx page with some controls. Also i have one DIV which
In my aspx page I have a gridview which displays the value from my
I have a few aspx pages which displays GridView controls. In each control I
I have an aspx page which has a GridView and a Panel with Summary
I have a GridView on my aspx page which displays a collection of objects
I have GridView which I can select a row. I then have a button
Basically in my in my aspx page I have a gridview which displays the
I have asp.net's .aspx page. that have GridView let say GridViewParent and Each row

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.