Click here to Skip to main content
15,893,668 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Cannot run a website hosted outside. Locally works. Pin
Not Active27-Sep-09 15:54
mentorNot Active27-Sep-09 15:54 
GeneralRe: Cannot run a website hosted outside. Locally works. Pin
Christian Graus27-Sep-09 16:03
protectorChristian Graus27-Sep-09 16:03 
QuestionError - can not create enum dynamically Pin
$unil Dhiman27-Sep-09 8:40
$unil Dhiman27-Sep-09 8:40 
AnswerRe: Error - can not create enum dynamically Pin
Abhijit Jana27-Sep-09 9:02
professionalAbhijit Jana27-Sep-09 9:02 
AnswerRe: Error - can not create enum dynamically Pin
Abhishek Sur27-Sep-09 9:20
professionalAbhishek Sur27-Sep-09 9:20 
QuestionArabic data is not displaying properly while exporting data to csv Pin
Khaja A. Imtiaz27-Sep-09 1:42
Khaja A. Imtiaz27-Sep-09 1:42 
AnswerRe: Arabic data is not displaying properly while exporting data to csv Pin
N a v a n e e t h27-Sep-09 1:44
N a v a n e e t h27-Sep-09 1:44 
GeneralRe: Arabic data is not displaying properly while exporting data to csv Pin
Khaja A. Imtiaz27-Sep-09 1:56
Khaja A. Imtiaz27-Sep-09 1:56 
Iam using the below code..

<br />
da = New SqlDataAdapter(sQuery, Conn)<br />
        da.Fill(ds)<br />
        Dim GridView1 As New GridView<br />
        GridView1.AllowPaging = False<br />
        GridView1.DataSource = ds<br />
        GridView1.DataBind()<br />
        Response.Clear()<br />
        Response.Buffer = True<br />
Response.AddHeader("content-disposition", "attachment;filename=Report.csv")<br />
        Response.Charset = ""<br />
        Response.ContentType = "application/text"<br />
        Dim sb As New StringBuilder()<br />
<br />
        For k As Integer = 0 To ds.Tables(0).Columns.Count - 1<br />
             sb.Append(ds.Tables(0).Columns(k).ColumnName + ","c)<br />
            <br />
        Next<br />
       sb.Append(vbCr & vbLf)<br />
        For i As Integer = 0 To ds.Tables(0).Rows.Count - 1<br />
<br />
            For k As Integer = 0 To ds.Tables(0).Columns.Count - 1<br />
                'add separator <br />
                'sb.Append(ds.Tables(0).Rows(i)(k).ToString().Replace(",", ";") + ","c)<br />
                sb.Append(ds.Tables(0).Rows(i)(k).ToString() + ",")<br />
            Next<br />
            'append new line <br />
            sb.Append(vbCr & vbLf)<br />
        Next<br />
        Response.Output.Write(sb.ToString())<br />
        Response.Flush()<br />
        Response.End()<br />


Is there anything wrong in this code...

But when Iam trying to export the same data to Excel it is working fine....
if the issue is with unicode then it should not also support the Excel....

Please guide..

Imtiaz

Imtiaz A.K

GeneralRe: Arabic data is not displaying properly while exporting data to csv Pin
N a v a n e e t h27-Sep-09 2:08
N a v a n e e t h27-Sep-09 2:08 
GeneralRe: Arabic data is not displaying properly while exporting data to csv Pin
Khaja A. Imtiaz27-Sep-09 2:36
Khaja A. Imtiaz27-Sep-09 2:36 
AnswerRe: Arabic data is not displaying properly while exporting data to csv Pin
Abhishek Sur27-Sep-09 9:30
professionalAbhishek Sur27-Sep-09 9:30 
GeneralRe: Arabic data is not displaying properly while exporting data to csv Pin
Khaja A. Imtiaz27-Sep-09 21:27
Khaja A. Imtiaz27-Sep-09 21:27 
QuestionWhere is my database??? Pin
hasani200727-Sep-09 0:56
hasani200727-Sep-09 0:56 
AnswerRe: Where is my database??? Pin
Abhijit Jana27-Sep-09 1:01
professionalAbhijit Jana27-Sep-09 1:01 
QuestionLoad data into detailsview via C# Pin
_ASPAle_26-Sep-09 23:37
_ASPAle_26-Sep-09 23:37 
AnswerRe: Load data into detailsview via C# Pin
N a v a n e e t h26-Sep-09 23:58
N a v a n e e t h26-Sep-09 23:58 
GeneralRe: Load data into detailsview via C# Pin
_ASPAle_27-Sep-09 0:10
_ASPAle_27-Sep-09 0:10 
GeneralRe: Load data into detailsview via C# Pin
Abhijit Jana27-Sep-09 0:15
professionalAbhijit Jana27-Sep-09 0:15 
GeneralRe: Load data into detailsview via C# Pin
_ASPAle_27-Sep-09 0:17
_ASPAle_27-Sep-09 0:17 
GeneralRe: Load data into detailsview via C# Pin
N a v a n e e t h27-Sep-09 0:19
N a v a n e e t h27-Sep-09 0:19 
GeneralRe: Load data into detailsview via C# Pin
_ASPAle_27-Sep-09 1:12
_ASPAle_27-Sep-09 1:12 
GeneralRe: Load data into detailsview via C# Pin
N a v a n e e t h27-Sep-09 1:41
N a v a n e e t h27-Sep-09 1:41 
AnswerRe: Load data into detailsview via C# Pin
khaleel the kiraak27-Sep-09 10:41
khaleel the kiraak27-Sep-09 10:41 
QuestionAbout ASP.NET application Hosting Pin
jahirhstu26-Sep-09 23:27
jahirhstu26-Sep-09 23:27 
AnswerRe: About ASP.NET application Hosting [modified] Pin
Abhishek Sur27-Sep-09 9:56
professionalAbhishek Sur27-Sep-09 9:56 

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.