页面加载()无效 [英] The page load() not working

查看:64
本文介绍了页面加载()无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从控制器视图中撤回一个Web表单时,它返回成功,但页面加载没有执行。所以请通过示例帮助我。





我正在打开谷歌坐(www.google.com)页面加载网页表格



SHOUTING删除(拼写我独自离开) - OriginalGriff [/ edit]

When I am returing a web Form from controller view the the it return successfully but there page load is not executing .So please help me via example.


I am opening a google sit(www.google.com) on page load ofweb form

[edit]SHOUTING removed (the spelling I left alone) - OriginalGriff[/edit]

推荐答案

你在MVC中没有页面加载



你应该将你的response.redirect放在你的控制器动作中。



You don't have a page load in MVC

You should place your response.redirect in your controller action.

public ActionResult Index(string id)
{
    return Redirect("http://www.google.com");
}


这篇关于页面加载()无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆