Click here to Skip to main content
15,914,396 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i run project then default.aspx page is run. i want to change its name to ABCXYZ.aspx at runtime... then how its posible

plz give me any suggession

thnx in advance
Posted

Right-click ABCXYZ.aspx and click 'Set as Start Page'.
 
Share this answer
 
Comments
Hitu55 30-Jul-11 8:51am    
i want to rename default.aspx form name runtime like abcxyz.aspx
[no name] 30-Jul-11 8:52am    
select default.aspx, press F2 and give it a new name.
deepak saini 2021 17-Jul-21 6:01am    
How to Rename not rewrite url
You would already have started the web page, so what would be the purpose of changing the startup page at runtime? Im a little confused here.
 
Share this answer
 
Comments
Hitu55 30-Jul-11 8:56am    
because i want to original form name hidden by the user
Sergey Alexandrovich Kryukov 2-Aug-11 2:22am    
How would it hide it?
--SA
Beside all the solutions, what I would proposed,

I assume what you would want is, you have a Default.aspx page when you woould run the site Default.aspx will be displaying as ABCXYZ.aspx in the address bar and also YOU ARE NOT mentioning physical renaming of the default.aspx to ABCXYZ.aspx.

If I am correct then you might need to consider URL rewriting in ASP.NET, please a have a look following site,

URL Rewriting in ASP.NET[^]

Hope it helps :)
 
Share this answer
 
Comments
Hitu55 1-Aug-11 5:17am    
thnxxxxxxxxxxxxx a lotttttttt
deepak saini 2021 17-Jul-21 6:02am    
not url Rewriting . its rename like home.aspx to home_1.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900