当前位置:网站首页>C ASP, net core framework value transfer method and session use
C ASP, net core framework value transfer method and session use
2022-06-25 18:20:00 【No. 1 in Jinan medical applet】
controller
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Database_First625.Controllers
{
public class FirstController : Controller
{
public IActionResult Index()
{
base.TempData["u1"] = "temo data u1";
base.ViewBag.u2 = "temo data u2";
base.ViewData["u3"]= "temo data u3";
string data = "this data";
// session Pass value , Not successfully output
base.HttpContext.Session.SetString("u4","this is session");
return View("Index",data);
}
}
}
View
@using Microsoft.AspNetCore.Http;
@{
ViewData["Title"] = "Index";
}<h1>Index&l
边栏推荐
- 深度学习网路模型
- Deeply understand and grasp the basic characteristics of digital economy
- Is it convenient to open a stock account? Is online account opening safe?
- Trample hole record -- a series of coincidences caused by thread pool rejection policy
- 視覺SLAM十四講 第9講 卡爾曼濾波
- [how do I refresh the shuttle page after jumping back?]
- Video production material website arrangement
- OSError: Unable to open file (truncated file: eof = 254803968, sblock->base_addr = 0, stored_eof = 2
- [daily record] - bug encountered during BigDecimal Division
- 【深入理解TcaplusDB技术】TcaplusDB新增机型
猜你喜欢

【深入理解TcaplusDB技术】如何实现Tmonitor单机安装

JVM understanding

Deeply understand and grasp the basic characteristics of digital economy

SQL Server real time backup library requirements

利用Qt制作美化登录界面框

Using QT to make a beautiful login interface box

Mobile heterogeneous computing technology - GPU OpenCL programming (basic)

LeetCode力扣(剑指offer 26-30)26. 树的子结构 27. 二叉树的镜像 28. 对称的二叉树 29. 顺时针打印矩阵 30. 包含min函数的栈
![[tips] how to quickly start a new position for a new software testing engineer](/img/88/5c002f492db56c646cbfd1ee98cd5b.png)
[tips] how to quickly start a new position for a new software testing engineer

Matlab中图形对象属性gca使用
随机推荐
視覺SLAM十四講 第9講 卡爾曼濾波
【深入理解TcaplusDB技术】单据受理之事务执行
jvm问题复盘
Are the top ten leading securities companies safe to open accounts
What is generics and the use of generics in collections [easy to understand]
【深入理解TcaplusDB技术】TcaplusDB新增机型
Encryption trend: Fashion advances to the meta universe
GNU nano
[daily record] - bug encountered during BigDecimal Division
Article 7: there is no code prompt in clion,,,
解决nvprof 报错ERR_NVGPUCTRPERM - The user does not have permission to profile on the target device.
SDN system method | 10 The future of SDN
Qi v1.2.4协议 之 定频调压方案
篇7:CLion中没有代码提示,,,
How to judge whether you are suitable for software testing
华为云SRE确定性运维专刊(第一期)
RMAN备份数据库_重启RMAN备份
Video production material website arrangement
[tips] how to quickly start a new position for a new software testing engineer
中断操作:AbortController学习笔记