Saturday, March 31, 2012

Web Config and query string parameters

Hi there,
I have to pass a query string parameter in my Web Config for loading a URL.
We have two environments (production and devlopment) and MonitorURL needs to
be changed when the deployment is done. In production this variable will be
http://servername:8080/MONITOR?quer...sd&query2=adsas
In this we need to get two strings by parsing the variable. But when I try
to give this variable I get a run time error. Is there any work around to
accomplish this. In development I have only one variable (there is no need to
split the string)
and that also is failing.

Thanks
JohnAt what point in your process are you getting an error? Retrieving the
variable from config? Parsing the variable? What is your error?

"johnpremi" <johnpremi@.discussions.microsoft.com> wrote in message
news:E4641EB8-36E3-425D-A27E-D810F75590C8@.microsoft.com...
> Hi there,
> I have to pass a query string parameter in my Web Config for loading a
> URL.
> We have two environments (production and devlopment) and MonitorURL needs
> to
> be changed when the deployment is done. In production this variable will
> be
> http://servername:8080/MONITOR?quer...sd&query2=adsas
> In this we need to get two strings by parsing the variable. But when I try
> to give this variable I get a run time error. Is there any work around to
> accomplish this. In development I have only one variable (there is no need
> to
> split the string)
> and that also is failing.
> Thanks
> John

0 comments:

Post a Comment