Unable to open excel file on click of link buttons
I am using a checkboxlist control in my application. Each Item of checkbox list should be displayed as linkbutton. On click of this linkbuttons it should open a excel file from a folder in my application. I have generated the linkbuttons of checkboxlist dynamically through the code
checkboxlist1.Items[i].Text = " <a href= '" + checkboxlist1.Items[i].Value
+ "' target='_blank'>" + checkboxlist1.Items[i].Text + "</a>";
checkboxlist1.Items[i].Value will be containing the path of excel file.
But on clicking the link button the excel file is not getting opened.
Can anyone help me how to open a excel file on click of link button.
Thanks in Advance...