当前位置:网站首页>C MVC creates a view to get rid of the influence of layout
C MVC creates a view to get rid of the influence of layout
2022-07-02 23:23:00 【A descendant of the sun】
C# MVC Xiaobian has also been in contact with many , But sometimes I still get annoyed by some small problems , Today, I will meet one , The editor needs to put the page provided by the artist in the project , But when you add a view, you find that the view is affected by the layout , Xiaobian also checked some information to understand
Generally, after adding a view , Views will contain the following code
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Index_Layout.cshtml";
}
To be unaffected by the layout page, do the following
@{
ViewBag.Title = "Index";
Layout = null;
}
Yes, it will "~/Views/Shared/_Index_Layout.cshtml" Change to null That's it
You meet someone , Because you learn from each other, you gradually get together , One day you said a wrong sentence , She finally chose not to forgive , You want to explain , But she didn't listen , Also unwilling to communicate , Finally, until you lose patience , Emotional breakdown .
Sometimes things are so bloody , After many years, you still can't figure out how a sentence can make her have such a big reaction , It's because of that sentence , Or because she didn't like you at all , Just want to borrow your words to get rid of your relationship .
But friends , When you are still bitter , She has found a better person. Isn't that enough to say ?
A person loves you or doesn't love you , Look at your eyes , The tone of voice will show , Those who love you will not leave easily , I don't love you , Why do you care !
边栏推荐
- How difficult is it to be high? AI rolls into the mathematics circle, and the accuracy rate of advanced mathematics examination is 81%!
- Explain promise usage in detail
- Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP
- STM32之ADC
- SharedPreferences 保存List<Bean> 到本地并解决com.google.gson.internal.LinkedTreeMap cannot be cast to异常
- [npuctf2020]ezlogin XPath injection
- Redis 过期策略+conf 记录
- Tiktok actual combat ~ number of likes pop-up box
- Win11系统explorer频繁卡死无响应的三种解决方法
- Use of recyclerview with viewbinding
猜你喜欢
Golang common settings - modify background
Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP
YOLOX加强特征提取网络Panet分析
Looking at Ctrip's toughness and vision from the Q1 financial report in 2022
[redis notes] compressed list (ziplist)
采用VNC Viewer方式遠程連接樹莓派
Go language sqlx library operation SQLite3 database addition, deletion, modification and query
ServletContext learning diary 1
Catalogue of digital image processing experiments
How does win11 turn on visual control? Win11 method of turning on visual control
随机推荐
vim区间删行注释
MarkDown基本语法
Value sequence < detailed explanation of daily question >
采用VNC Viewer方式遠程連接樹莓派
Redis 过期策略+conf 记录
Numerical solution of partial differential equations with MATLAB
Simple square wave generating circuit [51 single chip microcomputer and 8253a]
Talk about memory model and memory order
Static file display problem
Sword finger offer II 099 Sum of minimum paths - double hundred code
“一个优秀程序员可抵五个普通程序员!”
STM32串口DAM接收253字节就死机原因排查
数字图像处理实验目录
Mask R-CNN
公司里只有一个测试是什么体验?听听他们怎么说吧
SQL进阶语法
(毒刺)利用Pystinger Socks4上线不出网主机
Introduction to the latest plan of horizon in April 2022
Editor Caton
Boost库链接错误解决方案