Click here to Skip to main content
16,004,969 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAdding CheckBox in ASP.NET Pin
Zeeshan Ahmed Memon11-Nov-07 10:20
Zeeshan Ahmed Memon11-Nov-07 10:20 
AnswerRe: Adding CheckBox in ASP.NET Pin
Tokorie11-Nov-07 15:03
Tokorie11-Nov-07 15:03 
AnswerRe: Adding CheckBox in ASP.NET Pin
Michael Sync11-Nov-07 15:19
Michael Sync11-Nov-07 15:19 
QuestionDatalist problem Pin
komplexb11-Nov-07 8:11
komplexb11-Nov-07 8:11 
QuestionGrid CheckBox Column with javascript Pin
Ahmad Adnan11-Nov-07 3:49
Ahmad Adnan11-Nov-07 3:49 
AnswerRe: Grid CheckBox Column with javascript Pin
Michael Sync11-Nov-07 4:41
Michael Sync11-Nov-07 4:41 
AnswerRe: Grid CheckBox Column with javascript Pin
Prateek G11-Nov-07 19:51
Prateek G11-Nov-07 19:51 
QuestionDownload Dialog box , Encoding problem Pin
Simit Kulkarni11-Nov-07 2:24
Simit Kulkarni11-Nov-07 2:24 
Hello Everyone,

I have posted this problem on more than 2 to 3 forums . But sadly no body answered it.Cry | :(( Hope, I will get an answer, atleast one reply from this forum.Smile | :)


The problem is regarding encoding of file name to be displayed on the Save / Open dialog , while downloading file.

Here is my download code. ( in ASP.NET 2.0 C# VS2005 )

Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment;filename=" + fileName + ".pdf");
Response.BinaryWrite(fileData);
Response.End();

Where fileData is binary Array and fileName is name of file. Now for "English" file name , there is no problem of encoding. File Name is displayed properly on File Save / Open dialog , while downloading. But , when file Name is in "Japanese" , some encoding problem arises. File Name is shown in wrong japanese / garbage characters.
I receive this fileName from database, which is in UTF-8 encoding. Even this Japanese fileName is displayed properly on screen, in a listing which shows fileName and their size. For Screen , encoding is set to UTF-8.
To tackel this problem, I tried by setting Response.Charset = "SHIFT-JIS", but still then problem persists.
Pls can u help me? I Don't know how to set encoding in Response.AddHeader( ) while showing fileName.


Please answer this one. Sigh | :sigh:
AnswerRe: Download Dialog box , Encoding problem Pin
Michael Sync11-Nov-07 4:35
Michael Sync11-Nov-07 4:35 
QuestionHow to use the 'OR' Condition Pin
Kurian_Kurian10-Nov-07 23:11
Kurian_Kurian10-Nov-07 23:11 
AnswerRe: How to use the 'OR' Condition Pin
Michael Sync10-Nov-07 23:15
Michael Sync10-Nov-07 23:15 
AnswerRe: How to use the 'OR' Condition Pin
Dave Doknjas11-Nov-07 15:19
Dave Doknjas11-Nov-07 15:19 
AnswerRe: How to use the 'OR' Condition Pin
SunithaNallana11-Nov-07 19:15
SunithaNallana11-Nov-07 19:15 
QuestioniWeb Setup Pin
Ahmad Adnan10-Nov-07 22:22
Ahmad Adnan10-Nov-07 22:22 
QuestionFile path problem Pin
G.K.M.10-Nov-07 20:32
G.K.M.10-Nov-07 20:32 
AnswerRe: File path problem Pin
Mustafa Ismail Mustafa11-Nov-07 2:17
Mustafa Ismail Mustafa11-Nov-07 2:17 
QuestionI have an aspx app which needs to post data to a form and read the response. Pin
B.A10-Nov-07 19:49
B.A10-Nov-07 19:49 
AnswerRe: I have an aspx app which needs to post data to a form and read the response. Pin
Michael Sync10-Nov-07 20:10
Michael Sync10-Nov-07 20:10 
GeneralRe: I have an aspx app which needs to post data to a form and read the response. Pin
B.A10-Nov-07 20:30
B.A10-Nov-07 20:30 
GeneralRe: I have an aspx app which needs to post data to a form and read the response. Pin
Michael Sync11-Nov-07 15:36
Michael Sync11-Nov-07 15:36 
AnswerRe: I have an aspx app which needs to post data to a form and read the response. Pin
Bassam Saoud10-Nov-07 20:33
Bassam Saoud10-Nov-07 20:33 
GeneralRe: I have an aspx app which needs to post data to a form and read the response. Pin
B.A11-Nov-07 21:06
B.A11-Nov-07 21:06 
AnswerRe: I have an aspx app which needs to post data to a form and read the response. Pin
Prateek G11-Nov-07 20:03
Prateek G11-Nov-07 20:03 
GeneralRe: I have an aspx app which needs to post data to a form and read the response. Pin
B.A11-Nov-07 21:32
B.A11-Nov-07 21:32 
QuestionSessions in window application Pin
afreen taj10-Nov-07 17:07
afreen taj10-Nov-07 17:07 

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.