NetBlog主题
2017-05-05 09:57
4683
?xml version="1.0" encoding="UTF-8"?configurationsystem.webServerrewriterulesrule name="WWW Redirect" stopProcessing="true"match url=".*" /conditions logicalGrouping="MatchAny"add input="{HTTP_HOST}" pattern="^luofenming.com$" /…
2017-08-20 18:56
2254
<script type="text/javascript"> window.onload = function () {setInterval(function () {document.getElementById(txt1).value++;if (document.getElementById(txt1).value == 10) {location.href = http://www.luofenming.com;}},1000)}</script>//…
2021-09-29 13:32
3395
public IActionResult A(){//B为 Action名称,Home为控制器名称 new { id = 1 }为B Action的参数return RedirectToAction("B", "Home", new { id = 1 });}public IActionResult B(int id){return View();}//转载请保留原创地址 http://www.luofenming.com/show.aspx?i…
2017-09-02 20:27
2653
HTML定时跳转(不用JS) 直接放在HTML页面就可以 3秒自动跳转<meta http-equiv="refresh" content="3;url=http://www.luofenming.com/" />
2019-11-10 22:14
3547
如果输入的地址不存在或者原因地址被删除等问题,我们可以用下面方法实现跳转到指定的页面,在这里我是跳转到了首页代码如下
public class Jump404Middleware
{private readonly RequestDelegate next;public Jump404Middleware(RequestDelegate next){this.next = next;}publ…
2023-05-15 11:42
795
//C# goto语句用法,跳转到某个执行步骤public void Test(){ //步骤1 B1: Console.WriteLine("执行步骤1功能"); //步骤3 B2: Console.WriteLine("执行步骤2功能"); //步骤3 B3: Console.WriteLine("执行步骤3功能"); //假如 执行此步…
2023-07-14 11:58
517
在web.config文件中 system.webServer 节点下配置下面代码即可rewrite rules rule name = "Redirect to https" stopProcessing="true" match url = "(.*)" / conditions add input="{HTTPS}" pattern="^OF…
2024-01-28 18:53
814
/// summary /// 下载 302跳转文件 /// /summary /// param name="parentUrl"父Url/param /// param name="url"302跳转的Url/param /// returns/returns public bool DownFile(string parentUrl,string url) { using (HttpClient client = new …