Click here to Skip to main content
15,891,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: External css (Firefox vs IE) Pin
Morgs Morgan22-Apr-10 2:43
Morgs Morgan22-Apr-10 2:43 
GeneralRe: External css (Firefox vs IE) Pin
WoutL22-Apr-10 2:50
WoutL22-Apr-10 2:50 
GeneralRe: External css (Firefox vs IE) Pin
Morgs Morgan22-Apr-10 2:59
Morgs Morgan22-Apr-10 2:59 
GeneralRe: External css (Firefox vs IE) Pin
Gregory Gadow22-Apr-10 3:29
Gregory Gadow22-Apr-10 3:29 
Questionget a value from Datalist and bring it on popupcontrol Panel Pin
gautamamit821-Apr-10 23:50
gautamamit821-Apr-10 23:50 
AnswerRe: get a value from Datalist and bring it on popupcontrol Panel Pin
Arindam Tewary22-Apr-10 1:58
professionalArindam Tewary22-Apr-10 1:58 
GeneralRe: get a value from Datalist and bring it on popupcontrol Panel Pin
gautamamit822-Apr-10 2:23
gautamamit822-Apr-10 2:23 
QuestionRegarding Binary data write Pin
Unknown Ajanabi21-Apr-10 23:28
Unknown Ajanabi21-Apr-10 23:28 
Hi,
I have trouble to write binary data stored in sql server databse to word
document.when i run the program it write garbage value to document.
how can i do it
plz help
My code is given below

byte[] MyData = new byte[0];

da.Fill(ds, "myinages");
DataRow myRow;
myRow = ds.Tables["myinages"].Rows[0];

MyData = (byte[])myRow["imgField"];

int ArraySize = new int();
ArraySize = MyData.GetUpperBound(0);

string fileName=@"C:\Documents and Settings\Anurag_2\Desktop\anurag.doc";

Response.AppendHeader("Content-Type", "application/msword");

Response.AppendHeader("Content-disposition", "attachment; filename=" + fileName);
Response.BinaryWrite(MyData);
Response.Flush();
no knowledge in .net

AnswerRe: Regarding Binary data write Pin
michaelschmitt22-Apr-10 1:18
michaelschmitt22-Apr-10 1:18 
GeneralRe: Regarding Binary data write Pin
Unknown Ajanabi22-Apr-10 2:34
Unknown Ajanabi22-Apr-10 2:34 
GeneralRe: Regarding Binary data write Pin
michaelschmitt22-Apr-10 2:45
michaelschmitt22-Apr-10 2:45 
QuestionHow can i Convert currency amount in word in crystal report Pin
Sadeq Monoj21-Apr-10 17:40
Sadeq Monoj21-Apr-10 17:40 
AnswerRe: How can i Convert currency amount in word in crystal report Pin
Sandesh M Patil21-Apr-10 22:58
Sandesh M Patil21-Apr-10 22:58 
QuestionPage Methods and ASCX Pin
Matt Cavanagh21-Apr-10 14:38
Matt Cavanagh21-Apr-10 14:38 
AnswerRe: Page Methods and ASCX Pin
daveyerwin21-Apr-10 15:36
daveyerwin21-Apr-10 15:36 
GeneralRe: Page Methods and ASCX Pin
Not Active21-Apr-10 16:38
mentorNot Active21-Apr-10 16:38 
GeneralRe: Page Methods and ASCX [modified] Pin
daveyerwin21-Apr-10 17:30
daveyerwin21-Apr-10 17:30 
GeneralRe: Page Methods and ASCX Pin
Not Active22-Apr-10 1:46
mentorNot Active22-Apr-10 1:46 
GeneralRe: Page Methods and ASCX Pin
daveyerwin22-Apr-10 3:37
daveyerwin22-Apr-10 3:37 
GeneralRe: Page Methods and ASCX Pin
Not Active22-Apr-10 4:41
mentorNot Active22-Apr-10 4:41 
GeneralRe: Page Methods and ASCX Pin
daveyerwin22-Apr-10 4:49
daveyerwin22-Apr-10 4:49 
AnswerRe: Page Methods and ASCX Pin
Not Active21-Apr-10 16:41
mentorNot Active21-Apr-10 16:41 
GeneralRe: Page Methods and ASCX Pin
Matt Cavanagh21-Apr-10 21:39
Matt Cavanagh21-Apr-10 21:39 
Questionweb Services or make a connection directly to the servers or another way Pin
Arlen Navasartian21-Apr-10 12:10
Arlen Navasartian21-Apr-10 12:10 
AnswerRe: web Services or make a connection directly to the servers or another way Pin
Not Active21-Apr-10 12:57
mentorNot Active21-Apr-10 12:57 

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.