What is wrong with this code?


 Posted by Virendradugar on 9/13/2009 | Category: ASP.NET Interview questions | Views: 7719

It is believed that You can not use Server.Transfer method for .HTML file. It only works for .aspx pages. but that's not true.

This code is correct.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Lakhangarg on: 9/13/2009
Hi Virendra-

Server.Transfer will work fine like this

Suppose i have one aspx page named index.aspx and one Default.html page.

now if i'll write Server.transfer("Default.HTML"); at page load then default.html page will be shown in the browser. please check it..

and modify your question accordingly..

Thanks & Regards
Lakhan Pal Garg

Login to post response