Click here to Skip to main content
15,914,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionasp.net & Oracle Pin
aransiola16-Feb-07 6:14
aransiola16-Feb-07 6:14 
AnswerRe: asp.net & Oracle Pin
sathesh pandian19-Feb-07 23:25
sathesh pandian19-Feb-07 23:25 
QuestionApplication settings in constructor Pin
mail57235216-Feb-07 5:31
mail57235216-Feb-07 5:31 
AnswerRe: Application settings in constructor Pin
kubben16-Feb-07 6:00
kubben16-Feb-07 6:00 
AnswerRe: Application settings in constructor Pin
badgrs16-Feb-07 6:01
badgrs16-Feb-07 6:01 
AnswerRe: Application settings in constructor Pin
thowra16-Feb-07 7:52
thowra16-Feb-07 7:52 
Questionhow to create a link in a grid view's each row to navigate to some other page Pin
theprofound16-Feb-07 4:25
theprofound16-Feb-07 4:25 
AnswerRe: how to create a link in a grid view's each row to navigate to some other page Pin
badgrs16-Feb-07 4:49
badgrs16-Feb-07 4:49 
AnswerRe: how to create a link in a grid view's each row to navigate to some other page Pin
-Dr_X-16-Feb-07 5:04
-Dr_X-16-Feb-07 5:04 
GeneralRe: how to create a link in a grid view's each row to navigate to some other page Pin
badgrs16-Feb-07 5:30
badgrs16-Feb-07 5:30 
QuestionDisplay excel files in web browser Pin
venkatasivaramaprasad15-Feb-07 23:41
venkatasivaramaprasad15-Feb-07 23:41 
AnswerRe: Display excel files in web browser Pin
Michael Sync15-Feb-07 23:50
Michael Sync15-Feb-07 23:50 
AnswerRe: Display excel files in web browser Pin
Sylvester george15-Feb-07 23:59
Sylvester george15-Feb-07 23:59 
hi,

this is the code to do that, Dont forget to score it if it satisfies your need.


FileStream fileStream = new FileStream("c:\\Admin.xls", FileMode.OpenOrCreate, FileAccess.Read);

long len;

len = fileStream.Length;

Byte[] fileAsByte = new Byte[len];

fileStream.Read(fileAsByte, 0, fileAsByte.Length);


Response.Clear();
Response.ClearContent();
Response.ClearHeaders();

Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.BinaryWrite(fileAsByte);
Response.End();


Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com

GeneralRe: Display excel files in web browser Pin
venkatasivaramaprasad16-Feb-07 1:37
venkatasivaramaprasad16-Feb-07 1:37 
GeneralRe: Display excel files in web browser Pin
venkatasivaramaprasad16-Feb-07 1:41
venkatasivaramaprasad16-Feb-07 1:41 
GeneralRe: Display excel files in web browser Pin
Sylvester george16-Feb-07 1:46
Sylvester george16-Feb-07 1:46 
QuestionVisual Studio 2003 - setup and deployment project Pin
micutzu15-Feb-07 22:46
micutzu15-Feb-07 22:46 
Questionpublish Pin
Shriya Kapoor15-Feb-07 22:30
Shriya Kapoor15-Feb-07 22:30 
AnswerRe: publish Pin
rama charan15-Feb-07 22:45
rama charan15-Feb-07 22:45 
GeneralRe: publish Pin
Shriya Kapoor15-Feb-07 23:20
Shriya Kapoor15-Feb-07 23:20 
GeneralRe: publish Pin
rama charan16-Feb-07 0:28
rama charan16-Feb-07 0:28 
Questionhow to send secure data Pin
rama charan15-Feb-07 21:27
rama charan15-Feb-07 21:27 
AnswerRe: how to send secure data Pin
Sylvester george16-Feb-07 2:16
Sylvester george16-Feb-07 2:16 
Generalthanks .... can we have something about it at local msdn Pin
rama charan16-Feb-07 5:49
rama charan16-Feb-07 5:49 
Questionhow to use SLL to send secure data Pin
rama charan15-Feb-07 21:23
rama charan15-Feb-07 21:23 

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.