Posts

Showing posts from January, 2022

Inline helper in Asp.net MVC

I nline helper in Asp.net MVC always work in same page.The main purpose of inline helper is to create a helper in anywhere in page in body section and call anywhere, where we want to use that helper. Please check teh below example for reference. Example: Here i have created myhelper which will take a string from a list and display. So first we need to create new helper by anyname lie here myhelper . myhelper will take data from list in string format and from foreach loop, we will display . we need to call this method in page anywhere by just helpername like here @myhelper Code: <div> @helper myhelper(string[] str) { <ul> @foreach (var item in str) { <li>@item</li> <br /> } </ul> ...

Emmet in VSCode

Image
  Speed up code your HTML using Emmet in VSCode   "Emmet is a web-developer’s toolkit that helps to improve HTML & CSS workflow:" How to add Emmet with VS Code:   ·          Open VS Code ·          Select Extension icon, ·          type emmet in search position. ·          Select Mithril emmet and install     Open new file and save with html extension     For testing type !     Then click enter. Below screen will display. If not, then there will be some issue. Mean    in Visual Studio Emmet not working properly,   follow the below steps to fix the issue:     Open vs Code Click on setting icon left side Click on extension Select Emmet Add below syntax in include  Languages Add "emmet.triggerE...