Category - Master Pages
16 Mar 2022 16 Mar 2022 0 Comments  5568 Views
Here Mudassar Khan has explained with an example, how to use _layout.cshtml in ASP.Net MVC Razor.

The Layout Page (_layout.cshtml) of a View is used in scenario where there are multiple Views and there is some design which needs to be kept common, let’s say Header and Footer.

Basically, Layout Page (_layout.cshtml) shares the common design which is shared among all the Views in the project.
16 Mar 2022 16 Mar 2022 0 Comments  2697 Views
Here Mudassar Khan has explained with an example, how to use Layout Page in ASP.Net MVC Razor.

The Layout Page of a View is used in scenario where there are multiple Views and there is some design which needs to be kept common, let’s say Header and Footer.

Basically, Layout Page shares the common design which is shared among all the Views in the project.
02 Mar 2020 02 Mar 2020 0 Comments  5359 Views
Here Mudassar Ahmed Khan has explained a simple Tutorial with an example on how to use Layout Page with View in ASP.Net MVC Razor.

The Layout Page of a View is used in scenario where there are multiple Views and there is some design which needs to be kept common, let’s say Header and Footer or may be Right content
.
This Layout Page concept is very similar to the Master Pages in ASP.Net Web Forms.
03 Jun 2019 03 Jun 2019 1 Comments  14554 Views
Here Mudassar Ahmed Khan has explained with an example, how to get Current Page and Previous Page names when using Master Page in ASP.Net using C# and VB.Net.

This article will illustrate how to extract Current Page and Previous Page names from URL when using Master Page using the Request.Url and Request.UrlReferrer properties in ASP.Net.
30 May 2015 30 May 2015 0 Comments  20054 Views
Here Mudassar Ahmed Khan has explained how to make the jQuery AutoComplete TextBox work inside ASP.Net Master Page using C# and VB.Net.
When jQuery AutoComplete is placed inside Master Page, it does not work as Master Page does not have any visual presence when the website runs. Master Pages are basically used for web page design purposes.
Thus in order to make jQuery AutoComplete work in Master Page, a Web Service is used.
30 May 2015 30 May 2015 1 Comments  22790 Views
Here Mudassar Ahmed Khan has explained how to make the jQuery Autocomplete TextBox work with Content Page inherited with Master Page in ASP.Net using C# and VB.Net.
When Master Page is used the ClientID of the ASP.Net Controls are changed and jQuery is unable to find the target control.
09 May 2015 09 May 2015 2 Comments  48119 Views
Here Mudassar Ahmed Khan has explained how to solve the issue of JavaScript document.getElementById returning NULL when accessing any ASP.Net control on a page that uses Master Page.
This problem starts when Master Page is used as the ID of controls are changed on client side and hence JavaScript document.getElementById returns NULL as it is not able to find the control.
11 Jul 2014 11 Jul 2014 9 Comments  99191 Views
Here Mudassar Ahmed Khan has explained how to find and access controls in Content Page using JavaScript when using Master Page using JavaScript document.getElementById function in ASP.Net.