• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1539
  • Last Modified:

Can we get QueryString in OnInit()

Can we get get QueryString in OnInit()? If yes, could please a sample in C#
0
treehouse2008
Asked:
treehouse2008
1 Solution
 
mohan_sekarCommented:
Request.QueryString.Item("str1")
0
 
treehouse2008Author Commented:
What I concerned is if it can be done in event OnInit()?
0
 
tcullerCommented:
What exactly do you mean by "OnInit"? Which object does this method belong to?
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
treehouse2008Author Commented:
This is asp.net.
OnInit() is one of the events of aps.net page life cycle.
0
 
Tony McCreathTechnical SEO ConsultantCommented:
I'm sure you can. The Request object is created before the Page object.
0
 
treehouse2008Author Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now