What technology are you using here? This question is the tiniest bit lacking in anything approaching useful detail.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Onyx
Try this Files inserting into database[^]
thatraja |Chennai|India|
Brainbench certifications
Down-votes are like kid's kisses don't reject it :-)
Do what you want quickly because the Doomsday on 2012 :-)
I am not. I like doing something [posting,asking..] here, other than any other Programming forums. because if I do anything wrong others [like u] will correct me. anyway thank you Sandeep Mewara.
Raju.M
i want to import the html table that is dynamically generated to excel to get the table i am using the javascript function and i am using the value stored in hidden field to display in excel string html = hd2.Value; Response.Cache.SetExpires(DateTime.Now.AddSeconds(1)); Response.Clear(); Response.AppendHeader("content-disposition", "attachment;filename=FileName.xls"); Response.Charset = ""; Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = "application/vnd.ms-excel"; this.EnableViewState = false; Response.Write("\r\n"); Response.Write(html); Response.End();
use this code. Dim attachment As String = "attachment; filename=MyFile.xls" Response.ClearContent() Response.AddHeader("content-disposition", attachment) Response.ContentType = "application/ms-excel" Dim sw As New StringWriter() Dim htw As New HtmlTextWriter(sw) Dim frm As New HtmlForm() GridViewEmployeeRegistrationDetails.Parent.Controls.Add(frm) frm.Attributes("runat") = "server" frm.Controls.Add(GridViewEmployeeRegistrationDetails) frm.RenderControl(htw) Response.Write(sw.ToString()) Response.End()
Thanks and Regards Sujit Kr. Mandal
This is such a common question that I am going to recommend that you search the CP messages, using the Search box at the top of the page. Or Bingle for it.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
Great. :thumbsup:
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article