如何更改类文件中的querystring值 [英] How to change querystring Value in class file

查看:69
本文介绍了如何更改类文件中的querystring值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在编辑模式下发送Sample.aspx?Mode ="Edit"查询字符串.
更新后,我必须立即添加一条记录.
无论如何都可以更改查询字符串的值.
模式=添加".
由于REquest.Quertstring []仅具有属性,是否还有其他可能性.
[已删除的紧急情况]


问候
Froxy

Hi All

I send Sample.aspx?Mode="Edit" querystring in edit mode.
Immediately after updating i have to add a record.
Is there anyway to change the querystring value.
Mode="Add".
Since REquest.Quertstring[] has only get property, is there any other possibilities.
[Removed Urgency]


Regards
Froxy

推荐答案

更新记录完成后,您可以使用QueryString重定向同一页面.
After completion of updating records you can redirect the same page with QueryString.
Response.Redirect("Sample.aspx?mode=edit")


并在Page_Load事件中检查模式(编辑或添加).


And check the mode (edit or add) in the Page_Load event.


这篇关于如何更改类文件中的querystring值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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