Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to delete specific record from database to whom i click.I need help how to do this.
this is php working code
PHP
onclick="javascript:window.location.href='edit_contents.php?content_id=<?php echo $rows['cid'];?>

i want to know this in ASP.Net ? i try this but not working
HTML
onclick="javascript:window.location.href='edit_contents.aspx?content_id=<%dr.GetInt32(0);%>

kindly see the image for more understand what i mean to say [Abusive link removed]




Posted
Updated 18-Aug-14 1:24am
v3
Comments
Ashi0891 18-Aug-14 7:22am    
where do you have your data? in Gridview control of asp.net?
Thanks7872 18-Aug-14 7:24am    
Don't host images on such websites. We are not suppose to see their abusive ads.
arif hussain 18-Aug-14 7:56am    
@Ashi i just user HTML Table and show my Database value on <tr> of Table .
PhilLenoir 18-Aug-14 10:41am    
Is the onclick expression in an ASP server control? If so, you need OnClientClick as OnClick would be processed as a server event.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900