Yearh, and when you are finished I'd like you to do my work too :-) Seriously though,- there are several really good articles on writing excel documents here on codeproject, and even some nice librarys. (just do a google site seach Do the search for me!) The rest should be pretty straight forward.
morphix
Posts
-
How to export selected records from DataGrid to Excel????? -
How to freeze the web page when displaying progress bar?I second that, a script could look like this: Javascript: function disableAllInputs() { var inps = document.getElementsByTagName('INPUT'); for(var i=0;i
-
What's Problem?Hi, This is actually one of the most common mistakes i see, but dont worry that also meens that the solution is pretty straight forward. The problem... Page_load() is the FIRST event to be triggered. so you have a situation where your code behaves corectly but just not the way you intended. I guess that you want to have some code execute after your button event was triggered. there are a few methods, but i like to use the PreRender event. the PreRender event is the last event to be fired before the HTML is rendered and send to the client. to use: In the InitializeComponent function add: this.PreRender += new System.EventHandler (this.Page_PreRender); and create a private function: private void Page_PreRender(object sender, System.EventArgs e) { Load_Data(); } thats all there is to it.
-
Is there an opposite to Server.Mappath?Hi, i was coding a small wen util to manage files on a webserver, and i needed a function do get the url from a file with a absolute path. Ex file : "c:\inetpub\wwwroot\funnyWeb\bad.txt" wich translate to "/funnyweb/bad.txt" is there a function build in asp.net that does that?