Solved

Can we get QueryString in OnInit()

Posted on 2009-05-05
6
1,419 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

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 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.

730 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