Click here to Skip to main content
15,898,588 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondisplay .ico extension image in imagecontrol Pin
mbbisht13-Aug-06 23:02
mbbisht13-Aug-06 23:02 
QuestionProbelm in Ajax Pin
B Sridhar13-Aug-06 21:38
B Sridhar13-Aug-06 21:38 
AnswerRe: Probelm in Ajax Pin
RichardGrimmer14-Aug-06 5:44
RichardGrimmer14-Aug-06 5:44 
Questionhow to open a file Pin
nannapanenikamalnath13-Aug-06 20:59
nannapanenikamalnath13-Aug-06 20:59 
AnswerRe: how to open a file Pin
Guffa13-Aug-06 21:09
Guffa13-Aug-06 21:09 
GeneralRe: how to open a file Pin
nannapanenikamalnath13-Aug-06 21:26
nannapanenikamalnath13-Aug-06 21:26 
GeneralRe: how to open a file Pin
mrsnipey14-Aug-06 22:43
mrsnipey14-Aug-06 22:43 
AnswerRe: how to open a file Pin
Ramasubramaniam15-Aug-06 3:35
Ramasubramaniam15-Aug-06 3:35 
We can change the content type to open a file, This code will open document:
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
sOrigFilename);
Response.AddHeader("Content-Length", oFileInfo.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(sFullFilePath);
Response.End();

This will used to open an excel file:
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename="
+ "c:\\Test\\Test.xls");
Response.AddHeader("Content-Length", oFileInfo.Length.ToString());
Response.ContentType = "application/vnd.ms-excel";
Response.WriteFile("c:\\Test\\Test.xls");
Response.end

Ram
QuestionDundas vs. Chart FX Pin
oskardiazdeleon13-Aug-06 20:37
oskardiazdeleon13-Aug-06 20:37 
AnswerRe: Dundas vs. Chart FX Pin
Mike Ellison14-Aug-06 3:24
Mike Ellison14-Aug-06 3:24 
QuestionUP arrow and DOWN arrow button in ASP.net Pin
nannapanenikamalnath13-Aug-06 20:20
nannapanenikamalnath13-Aug-06 20:20 
AnswerRe: UP arrow and DOWN arrow button in ASP.net Pin
Guffa13-Aug-06 21:20
Guffa13-Aug-06 21:20 
GeneralRe: UP arrow and DOWN arrow button in ASP.net Pin
nannapanenikamalnath13-Aug-06 21:28
nannapanenikamalnath13-Aug-06 21:28 
AnswerRe: UP arrow and DOWN arrow button in ASP.net Pin
Guffa13-Aug-06 23:26
Guffa13-Aug-06 23:26 
AnswerRe: UP arrow and DOWN arrow button in ASP.net Pin
seee sharp14-Aug-06 0:25
seee sharp14-Aug-06 0:25 
QuestionHi, How to use Ajax when I use Forms Authemtication for My Home Login page in DOTNET Pin
Balavardhan13-Aug-06 20:07
Balavardhan13-Aug-06 20:07 
QuestionHow to avoid to refer the old file? Pin
subburaj.sabapathy13-Aug-06 20:06
subburaj.sabapathy13-Aug-06 20:06 
AnswerRe: How to avoid to refer the old file? Pin
Guffa13-Aug-06 21:17
Guffa13-Aug-06 21:17 
Questionalert message box in asp.net in vb.net Pin
amaneet13-Aug-06 19:56
amaneet13-Aug-06 19:56 
AnswerRe: alert message box in asp.net in vb.net [modified] Pin
devboycpp14-Aug-06 3:16
devboycpp14-Aug-06 3:16 
AnswerRe: alert message box in asp.net in vb.net Pin
Mike Ellison14-Aug-06 3:27
Mike Ellison14-Aug-06 3:27 
QuestionCreating Microsoft Powerpoint presentation dynamically Pin
Avanika Gupta13-Aug-06 19:07
Avanika Gupta13-Aug-06 19:07 
AnswerRe: Creating Microsoft Powerpoint presentation dynamically Pin
seee sharp14-Aug-06 0:09
seee sharp14-Aug-06 0:09 
GeneralRe: Creating Microsoft Powerpoint presentation dynamically Pin
Avanika Gupta14-Aug-06 1:13
Avanika Gupta14-Aug-06 1:13 
AnswerRe: Creating Microsoft Powerpoint presentation dynamically Pin
seee sharp14-Aug-06 22:12
seee sharp14-Aug-06 22:12 

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.