Tuesday 26 November 2013

How to hide the page name in ASP.NET using frameset.

Hi friends,in this article i will explain about How to hide the page name in ASP.NET using frameset..
In previous articles i explained about ASP.NET MVC Tutorial or Intro to ASP.NET MVC 4 or what is MVC (Model – View – Controller),Angular JS Email Validation in ASP.NET and CSS - Gmail-style progress bar when page is loading

HidePageName.aspx
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>How to hide the page name in ASP.NET using frameset.</title>
</head>
<frameset>
                   <frame name="Home" src="Default.aspx">
                   </frame>
</frameset>
</html>

Default.aspx
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.aspdotnet-kishore.blogspot.com" title="ASP.NET Website">www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
</asp:Content>



The output of the above code as shown in the below figure.When you give the page name as HidePageName.aspx then it will redirect to default.aspx but in the URL it shows HidePageName.aspx.

"If you like my blog or articles, you can appreciate by leaving your comments or Liking my Facebook pageAspdotnet-kishore, following on Google+ Aspdotnet-Kishore, Twitter  on AspdotnetKishore, Linked in Aspdotnet-Kishore, stumbling my posts on stumble upon and subscribing on  RSSfeed Aspdotnet-Kishore for free updates directly to your Email inbox . Watch my blog  for more articles."

No comments:

Post a Comment

© 2012-2018 Aspdotnet-Kishore.blogspot.com. All Rights Reserved.
The content is copyrighted to Kishore and may not be reproduced on other websites without permission from the owner.