Click here to Skip to main content
15,900,724 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Menu is not appearing in IE8 Pin
Arun Jacob5-Aug-09 21:20
Arun Jacob5-Aug-09 21:20 
QuestionPassing Parameters To RDL Report from aspx page Pin
tejesh1235-Aug-09 20:20
tejesh1235-Aug-09 20:20 
AnswerRe: Passing Parameters To RDL Report from aspx page Pin
Abhishek Sur5-Aug-09 21:53
professionalAbhishek Sur5-Aug-09 21:53 
GeneralRe: Passing Parameters To RDL Report from aspx page Pin
tejesh1236-Aug-09 19:43
tejesh1236-Aug-09 19:43 
GeneralRe: Passing Parameters To RDL Report from aspx page Pin
Abhishek Sur6-Aug-09 21:19
professionalAbhishek Sur6-Aug-09 21:19 
Questionhow to open an excel file with in the asp.net web page Pin
anithasalavadi5-Aug-09 20:12
anithasalavadi5-Aug-09 20:12 
AnswerRe: how to open an excel file with in the asp.net web page Pin
Arun Jacob5-Aug-09 20:46
Arun Jacob5-Aug-09 20:46 
AnswerRe: how to open an excel file with in the asp.net web page Pin
Abhishek Sur5-Aug-09 22:00
professionalAbhishek Sur5-Aug-09 22:00 
You can use this to open a new window.
<a href= "yourpage.aspx" target="_blank" >Open Excel</a>


Place this in the handler to the page or just write the content to the page in code behind.

Response.ContentType = "application/vnd.ms-excel";
string sFile = Server.MapPath("MyExcel.xls");
using(FileStream fs = new FileStream(sFile, FileMode.Open, FileAccess.Read))
{
      byte[] b = new byte[(int)fs.Length];
      fs.Read(b, 0, (int)fs.Length);
      fs.Close();
}
Response.Clear();
Response.BinaryWrite(b);
Response.End();


the file will be opened to the client. Thumbs Up | :thumbsup: Thumbs Up | :thumbsup:


GeneralRe: how to open an excel file with in the asp.net web page Pin
anithasalavadi5-Aug-09 22:50
anithasalavadi5-Aug-09 22:50 
GeneralVoice File Conversion (from DSS or DSS2 to WAV or WMA) Pin
Pandu4385-Aug-09 18:29
Pandu4385-Aug-09 18:29 
GeneralRe: Voice File Conversion (from DSS or DSS2 to WAV or WMA) Pin
Abhijit Jana5-Aug-09 18:32
professionalAbhijit Jana5-Aug-09 18:32 
QuestionQuery required Pin
siddisagar5-Aug-09 18:21
siddisagar5-Aug-09 18:21 
AnswerRe: Query required Pin
Abhijit Jana5-Aug-09 18:30
professionalAbhijit Jana5-Aug-09 18:30 
AnswerRe: Query required Pin
Sundeep Ganiga5-Aug-09 19:10
Sundeep Ganiga5-Aug-09 19:10 
Questionreply to the post..., Pin
Member 38798815-Aug-09 18:18
Member 38798815-Aug-09 18:18 
AnswerRe: reply to the post..., Pin
Abhijit Jana5-Aug-09 18:28
professionalAbhijit Jana5-Aug-09 18:28 
GeneralRe: reply to the post..., Pin
Member 38798815-Aug-09 18:35
Member 38798815-Aug-09 18:35 
Questioniframe content [modified] Pin
epcode15015-Aug-09 16:46
epcode15015-Aug-09 16:46 
QuestionDatabase Data Entry problem Pin
jestgr5-Aug-09 11:07
jestgr5-Aug-09 11:07 
AnswerRe: Database Data Entry problem Pin
Christian Graus5-Aug-09 11:38
protectorChristian Graus5-Aug-09 11:38 
Questioninsert query Pin
sajjy5-Aug-09 9:59
sajjy5-Aug-09 9:59 
AnswerRe: insert query Pin
Blue_Boy5-Aug-09 10:23
Blue_Boy5-Aug-09 10:23 
GeneralRe: insert query Pin
sajjy5-Aug-09 10:39
sajjy5-Aug-09 10:39 
GeneralRe: insert query Pin
Blue_Boy5-Aug-09 10:41
Blue_Boy5-Aug-09 10:41 
QuestionArrayList Objects referencing to old objects Pin
freeman19895-Aug-09 8:25
freeman19895-Aug-09 8:25 

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.