I need to open a excel in web browser when click a button.how to do that in asp.net
I use Google Docs Viewer for opening a wide variety of files in the browser.
Example:
http://docs.google.com/viewer?url=http%3A%2F%2Fyoursite.com%2Fyourexcelsheet.xlsx
you just need to give the url of the excel in the server
<a href ="... .xls"> Excel </a>
Only you can open a excel in server
you can do.not in Client
You can open and control and excel file on the server side with .net, then you can write an html/javascript frontend (or silverlight) for the actions. But you cannot open the ms excel itself as a dom object etc.
Look into the excel object model for .net.
You can't control and launch software on the client (browser) computer - why? Security.
If this was possible, hackers would have taken over all computers long ago...
Can you please explain exactly what you are trying to do? Instead of asking how to open excel from the browser, if you explain what you need to accomplish, perhaps we can come up with a better idea.