DataGrid Button Short dude....

J

Josema

Hi,

Im making a web custom datagrid of products.

I have this piece of code in the override OnInit Method:

ButtonColumn colbtn=new ButtonColumn();

colbtn.ButtonType=ButtonColumnType.LinkButton;

colbtn.Text="<a href=# onclick=alert("+")>See Product</a>";

How could i know what link is pressed by the user?,

i would like to have a link buton in each row of the datagrid, and when a user clicks on it open a popup and pass the ID of the product to the page that im opening?

Thanks
Josema.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top