Tuesday 1 September 2015

Free ASP.NET MVC project to learn for beginners

Free ASP.NET MVC project to learn for beginners.

Download Learn And Share.

Download files from given link below.

https://onedrive.live.com/?cid=3d35297f653c11f2&id=3D35297F653C11F2%21190&ithint=folder,7z&authkey=!AIAUCC0SmdoCxDM

Please read the documents and then you can run the project on your system.


Saturday 15 March 2014

How to remove the .aspx from ASP.NET url's ? How to cut the URL's in short form

Solution:-


Just put this piece of code in the Web Config file and be happy !!!!!!

<system.webServer>
    <rewrite>
        <rules>
            <rule name="RewriteASPX">
                <match url="(.*)" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                </conditions>
                <action type="Rewrite" url="{R:1}.aspx" />
            </rule>
        </rules>
    </rewrite>
  </system.webServer>


And just the page name in the link as it is for Example see this:-

<a href="Index.aspx">Sign in</a>  1.Don't use this

<a href="Index">Sign in</a>  1.Use  this

Thanks ..:)