title: Passing value through path using postback url
body: <p>I am using a <code>datalist</code> on customer page to list all customers. There is a page named "view" where I want to show the details of the particular selected customer. Here is the image button code:</p>
  
  <pre><code> &lt;asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='&lt;%# GetImageURL(Eval("image")) %&gt;' PostBackUrl='&lt;%# Eval("id", "view.aspx?id={0}") %&gt;'/&gt;&lt;/tr&gt;
  </code></pre>
  
  <p><code>id</code> is the unique field of the customer table. Now how should I retrieve the customer data on <code>view.aspx</code>, using the particular ID passed from the customer page. I use this code but it's not working:</p>
  
  <pre><code>   Dim mycommand As New SqlCommand("SELECT * FROM customer where id = @id", con)
      Int(ID = Request.QueryString("id"))
      con.Open()
      ProfileData.DataSource = mycommand.ExecuteReader 
      ProfileData.DataBind()
      con.Close()
  </code></pre>
  
  <p>I just want to do that. In the customer page all customers are displayed with their image and when I click on any one of them then the details of the particular customer should be displayed on view.aspx page ..</p>