Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am new to asp.net mvc.I have gone through one video tutorial for project.
In that tutorial ,inside layout view and index view instead of any html table, only div were used having bootstrap class and external css used for each div.
Following classes were used.For one div more than one classes were used.
Can anybody tell me meaning of these classes.
1: Active
2: Hidden
3: col-md-6

I have few queries

1 : Is it necessary to give style to element with the help of css only.
If style given directly to element is also fine?

2 : For every view,will there will be each diff style sheet or one global style
sheet will be there which can be used by many developer.Style sheet should not contain diff style for same class.

3 : Instead of any helper method (helper textbox method),directly html tag (input type for textbox)were used.

When to used html helper and when to used html control?

4: @Styles.Render("~/Content/css),this method was commented in layout page.
I have seen this section in bundle.config file which include 2 css file on bootstrap.css and site.css and used like below

5: <a href=""> this link is used instead of helper method

What I have tried:

I have gone through one video tutorial for project.
In that tutorial ,inside layout view and index view instead of any html table, only div were used having bootstrap class and external css used for each div.
Posted
Updated 21-Jun-21 2:28am
v2

1 solution

I'd suggest to read these:
Razor syntax reference for ASP.NET Core | Microsoft Docs[^]
ASP.NET MVC - Razor - Tutorialspoint[^]
There you'll find an answer to all your questions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900