Build your professional network on facebook via our app Go to app
 
<< Prev  2 of 2 in Topic 
Posted in Community :

.Net Champions |

.Net |

Java Knowledge

 
Industry : IT Services
Functional Area : Programming Languages
Activity: Question posted: 03 25 2009 20:15:44 +0000, 3 answers, 1624 views, last activity 07 06 2010 20:18:08 +0000
 
Share
 
 
 
 
 Top Answer :
Rating : +2 

 

protected

void Button1_Click(object sender, EventArgs e)

{

Response.Redirect(

"~/ttt.xls");

}

Just place the file on your webserver and give the location in the Redirect in this case i have placed it on the root of the website.



[ Delete ]
[ Edit ]
Report Abuse
by   Darpan Sinha, Tech Architect, Royal Bank of Scotland  | 03 26 2009 12:53:01 +0000
  Answered by     sudeep chandra, Software Developer, Center For Computational Engineering, PEC  | 03 26 2009 13:20:21 +0000
[ Delete ]
[ Edit ]
Not Rated

hi darpan.. thanks for giving me the solution, but there is a problem. your code is opening the excel seperately. i want to open excel sheet into the web page.

  Answered by     Radhakrishna Marar, Business Analyst, Oracle  | 03 26 2009 09:20:18 +0000
[ Delete ]
[ Edit ]
Not Rated

What you can do is you could build a "wrapper" page. You send the users to somePage.aspx?file=myfile.xls, then in the page, set whatever title you want and load the excel file into a frame or something. That way you have control over the page level elements also.

 
Career Portal For IT Products Sector!
  • Create a confidential Career Profile and Resume/C.V. online
  • Get advice for planning their career and for marketing of experience and skills
  • Maximize awareness of and access to the best career opportunities
Viewers also viewed
AS BOTH VLSI EMBEDDED ARE CHIP DESIGN LEVEL PROGRAMMING WHICH ONE IS BETTER? MEANS WHICH HAVING...
 
1 referals 9 arguments, 5168 views
 
150 referals 5 votes, 363 views
more...  
Unanswered Questions (24)
How Indian companies going to adopt this new technology.How cloud computing application going to...
 
0 referals 0 answers, 0 views
Construction site at South Mumbai( One of the prime locality with most of Parsi community...
 
0 referals 0 answers, 0 views
When there is already existing your brand name with well known products, how to come up with few...
 
503 referals 1 answers, 58 views
More From Author
hi darpan.. thanks for giving me the solution, but there is a problem. your code is opening the excel seperately. i want to open excel sheet into the web page.
how to open excel sheet in the web browser using c#.net
more...