ASP.NET 回发会在 URL 重写中产生问题吗? [英] ASP.NET postbacks creates issue in URL rewriting?

查看:18
本文介绍了ASP.NET 回发会在 URL 重写中产生问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的 asp.net 项目中使用 Intelligencia 进行 url 重写.

I am using Intelligencia for url rewriting in my asp.net project.

我通过研发解决了很多问题D 用于 url 重写,但现在我遇到了一个关于页面回发的问题.

I have solved many issues by doing R & D for url rewriting but right now i stuck with one issue regarding page postback.

页面回发将我的重写 url 更改为原始 url.

page postback change my rewrite url to original url.

所以,任何人都可以帮助我离开这里.

SO, anyone help me to get out from here.

推荐答案

您可以在母版页中对此问题进行编码

You can code this in your master page for this problem

这里的 form1form 标签,放在母版页的加载事件中

Here form1 is the form tag and place it in master page's load event

  protected void Page_Load(object sender, EventArgs e)
    {
        form1.Action = Request.RawUrl;
    }

这篇关于ASP.NET 回发会在 URL 重写中产生问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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