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

 
Asked by : sudeep chandra, Software Developer, Center For Computational Engineering, PEC
Industry : IT Services
Functional Area : Programming Languages
Activity: Question posted: 03 25 2009 20:15:44 +0000, 3 answers, 2148 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.

 
Leading Training Institute
Leading Training Institute
Viewers also viewed
Hi All, How is the idea of moving from .net Development to Java development sound to you? One of...
 
181 referals 22 arguments, 933 views
No vs Yes
 
309 referals 5 arguments, 151 views
In today's world of fast food, fast cars, and instant gratification, people expect to be in touch...
 
5 referals 14 comments, 1354 views
more...  
Unanswered Questions (15)
 
0 referals 0 answers, 0 views
Can you please tell me about the registration details regarding to computer institute.. or other...
 
2 referals 0 answers, 0 views
This massage is called Thai massage this massage is an extraordinary method of aligning the...
 
0 referals 0 answers, 0 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...