question

02377530 avatar image
0 Votes"
02377530 asked JerryCai-MSFT edited

Razor page Tutorial is not work designs are changed and the attribute button is gone

razor-pages-start
I'm following the ASP.NET Core tutorial webapp Razor page but I didn't really touch the design or the button part.

Why is the UI I made in the tutorial different from the UI I made?

Symptom

  1. The symptoms of the tutorial's web page and my web page are different

  2. Button not working Create button on localhost/test/Create page

add

db connection is work localhost/test/index page is showing db data
this is WebFileServer link page

part differently in tutorial

  1. use postgresql


102374-3.png
102375-%E1%84%8F%E1%85%A2%E1%86%B8%E1%84%8E%E1%85%A5.png


dotnet-aspnet-core-razor
3.png (123.1 KiB)
캡처.png (79.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

i found sample but cshtml is same

0 Votes 0 ·

1 Answer

JerryCai-MSFT avatar image
1 Vote"
JerryCai-MSFT answered JerryCai-MSFT edited

Hi,02377530

The bootstrap and css have not been loaded.

  • Check whether you have called the _Layout page?

By default, the _Layout.cshtml will be applied to all your razor view, make sure you didn't set _Layout=null or others to disable

the _Layout file.

  • Check whether you have imported the right css/bootstrap path

Here is the css or bootstrap which tutorial need, you can check whether you have them in wwwroot folder and whether the

path is correct.

102814-image.png
102730-image.png

Best Regards,
Jerry Cai


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (4.5 KiB)
image.png (5.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.