Click here to Skip to main content
15,886,963 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionClose iframe Div in javascript Pin
SatyaKeerthi152-Sep-10 0:42
SatyaKeerthi152-Sep-10 0:42 
AnswerRe: Close iframe Div in javascript Pin
Not Active2-Sep-10 1:53
mentorNot Active2-Sep-10 1:53 
GeneralRe: Close iframe Div in javascript Pin
SatyaKeerthi152-Sep-10 2:04
SatyaKeerthi152-Sep-10 2:04 
GeneralRe: Close iframe Div in javascript Pin
Not Active2-Sep-10 4:18
mentorNot Active2-Sep-10 4:18 
Questioncalling a client method from master page Pin
amit_831-Sep-10 20:56
professionalamit_831-Sep-10 20:56 
AnswerRe: calling a client method from master page Pin
Anurag Gandhi1-Sep-10 23:20
professionalAnurag Gandhi1-Sep-10 23:20 
QuestionDropdown List Template field Pin
vishnukamath1-Sep-10 20:24
vishnukamath1-Sep-10 20:24 
Questionconvert html to csvexport to CSV Pin
Member 38798811-Sep-10 19:55
Member 38798811-Sep-10 19:55 
Hi Guys i have a data format like this format...,

<table>
<tr><td>Head1</td><td>Head2</td><td>Head3</td></tr>
<tr><td colspan='3'>some value</td></tr>
<tr><td>value1</td><td>value2</td><td>value3</td></tr>
<tr><td>value1</td><td>value2</td><td>value3</td></tr>
<tr><td>value1</td><td>value2</td><td>value3</td></tr>
<tr><td colspan='3'>some value dasfs</td></tr>
<tr><td>value1</td><td>value2</td><td>value3</td></tr>
<tr><td>value1</td><td>value2</td><td>value3</td></tr>
</table>

Now i want to export the values to .CSV format...,
In lower version of .CSV(2000) its showing datas properly...,

the same thing if i open in 2007 CSV format...,

i am getting the records how i mentioned in above(table) the sme way i am getting (i.e) with table...,


this is my code:


string strData = "<table>.......</table> //the above table format i given here
Response.Write(strData);
byte[] data = ASCIIEncoding.ASCII.GetBytes(strData);
Response.Clear();
Response.ContentType = "text/csv";
Response.AddHeader("content-disposition", "attachment;filename=" + _UserID + "Stock" + DateTime.Now.Second.ToString() + DateTime.Now.Millisecond.ToString() + ".csv");

Response.BinaryWrite(data);
Response.End();



plz help me regards this...,

Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
AnswerRe: convert html to csvexport to CSV Pin
T M Gray2-Sep-10 4:21
T M Gray2-Sep-10 4:21 
QuestionAccessing Parent Page Method from User Control doesnot refresh Pin
Satish_S1-Sep-10 19:29
Satish_S1-Sep-10 19:29 
AnswerRe: Accessing Parent Page Method from User Control doesnot refresh Pin
robocodeboy1-Sep-10 23:30
robocodeboy1-Sep-10 23:30 
GeneralRe: Accessing Parent Page Method from User Control doesnot refresh Pin
Satish_S2-Sep-10 2:13
Satish_S2-Sep-10 2:13 
QuestionCheck Aspx file integrity? Pin
robocodeboy1-Sep-10 4:43
robocodeboy1-Sep-10 4:43 
AnswerRe: Check Aspx file integrity? [modified] Pin
Not Active1-Sep-10 6:55
mentorNot Active1-Sep-10 6:55 
GeneralRe: Check Aspx file integrity? Pin
Ennis Ray Lynch, Jr.1-Sep-10 7:16
Ennis Ray Lynch, Jr.1-Sep-10 7:16 
GeneralRe: Check Aspx file integrity? Pin
Not Active1-Sep-10 7:44
mentorNot Active1-Sep-10 7:44 
GeneralRe: Check Aspx file integrity? Pin
robocodeboy1-Sep-10 7:59
robocodeboy1-Sep-10 7:59 
GeneralRe: Check Aspx file integrity? Pin
Not Active1-Sep-10 9:10
mentorNot Active1-Sep-10 9:10 
GeneralRe: Check Aspx file integrity? Pin
robocodeboy1-Sep-10 21:36
robocodeboy1-Sep-10 21:36 
QuestionChild Controls Showing as Null Pin
David Muir1-Sep-10 4:20
David Muir1-Sep-10 4:20 
AnswerRe: Child Controls Showing as Null Pin
Ennis Ray Lynch, Jr.1-Sep-10 7:26
Ennis Ray Lynch, Jr.1-Sep-10 7:26 
GeneralRe: Child Controls Showing as Null Pin
David Muir1-Sep-10 22:11
David Muir1-Sep-10 22:11 
QuestionASP.Net State Service doesnt exists in IIS7 Pin
indian14331-Aug-10 7:09
indian14331-Aug-10 7:09 
AnswerRe: ASP.Net State Service doesnt exists in IIS7 Pin
T M Gray31-Aug-10 11:36
T M Gray31-Aug-10 11:36 
QuestionHttpCompileException occurs at random times Pin
mark_me30-Aug-10 13:28
mark_me30-Aug-10 13:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.