需要有关asp.net中查询字符串的帮助 [英] Need help regarding query string in asp.net
本文介绍了需要有关asp.net中查询字符串的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个页面create-quote.aspx.我想以不同的方式打开此页面,具体取决于是否存在querystring参数.
I have a page create-quote.aspx. I want to open this page in different modes, depending on whether a querystring parameter is present or not.
我的问题是,如果我有querystring参数,应该检查哪个事件.我想应该是preinit,你说什么.
My question is at which event should I check, If I have a querystring parameter or not. I think, it should be preinit, what do you say.
推荐答案
可能最好的选择是在Page_Load事件中处理它们:
Probably the best choice is to handle them on Page_Load event:
http://msdn.microsoft.com/en-us/library/ms178472.aspx#lifecycle_events
这篇关于需要有关asp.net中查询字符串的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文