Solved

Can we get QueryString in OnInit()

Posted on 2009-05-05
6
1,390 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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:
Tiggerito 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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now