?
Solved

Can we get QueryString in OnInit()

Posted on 2009-05-05
6
Medium Priority
?
1,484 Views
Last Modified: 2012-08-13
Can we get get QueryString in OnInit()? If yes, could please a sample in C#
0
Comment
Question by:treehouse2008
6 Comments
 
LVL 15

Expert Comment

by:mohan_sekar
ID: 24308192
Request.QueryString.Item("str1")
0
 

Author Comment

by:treehouse2008
ID: 24308206
What I concerned is if it can be done in event OnInit()?
0
 
LVL 9

Expert Comment

by:tculler
ID: 24308409
What exactly do you mean by "OnInit"? Which object does this method belong to?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:treehouse2008
ID: 24308668
This is asp.net.
OnInit() is one of the events of aps.net page life cycle.
0
 
LVL 23

Accepted Solution

by:
Tony McCreath earned 1500 total points
ID: 24312820
I'm sure you can. The Request object is created before the Page object.
0
 

Author Closing Comment

by:treehouse2008
ID: 31578180
Thanks
0

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question