I have one link..
If i click link ,I need one confirmation box with ok/cancel
if i click ok,It shd open next window,,
If i click cancel,It shd not open.
I tried the following code..
For both ok and cancel my window opening...
How to set for cancel
<script type="text/javascript">
function getConfirm() {
confirm('Do you want to open excel');
}
</script>
<asp:LinkButton ID="lnk" runat="server" Text="Open window" OnClick="lnk_Click" Visible="true" OnClientClick="return getConfirm()" ></asp:LinkButton> <br />