Hi
I have a datalist control in my aspx page. I want to get the values of the colums
for a row selected by the user and pass them to a crystal report.
How do i trap these values? I mean in which event of datalist? I tried

protected void myDataList_SelectedIndexChanged(object sender, EventArgs e)
  {
    Response .Write( "hello");
  }
but cannot trap the event. also tried 
protected void myDataList_ItemCommand(object sender, DataListCommandEventArgs ex)
  {
    Response.Write("hello");
  }

but :(
can neone help me how to get the values of all the colums in a row of datalist at runtime.

Hi,

If you want to pass value to other pages, try this one :

<a href="Next.aspx?TransNo='<%# Eval("TransNo") %>'" ><span style="color: #0000ff; text-decoration: underline">Next</span></a>

Just put your link into Datalist form.

Thanks,

Kusno.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.