- 16
Hi Deni,
This method works perfectly. Thank you for providing me such a smart advice.
Thanks again for your help.
regards,
Lee Ka
Hi,
I came up with an idea how to achieve it:
You can call the All Shops action anywhere on the home page - open the Index.cshtml view and place this code, where you want to show the Store Locator functionality:
Now, go to the AllShops.cshtml view and find this row:
Place this code right after it:
That is all !
This method works perfectly. Thank you for providing me such a smart advice.
Thanks again for your help.
regards,
Lee Ka
Hi,
I came up with an idea how to achieve it:
You can call the All Shops action anywhere on the home page - open the Index.cshtml view and place this code, where you want to show the Store Locator functionality:
@Html.Action("AllShops", "StoreLocator", new { isStoreLocatorCalledFromHomePage = true })
Now, go to the AllShops.cshtml view and find this row:
Layout = "~/Views/Shared/_ColumnsOne.cshtml";
Place this code right after it:
if (Url.RequestContext.RouteData.Values["isStoreLocatorCalledFromHomePage"] != null && bool.Parse(Url.RequestContext.RouteData.Values["isStoreLocatorCalledFromHomePage"].ToString()))
{
Layout = "";
}
That is all !