« first day (14 days earlier)    last day (14 days later) » 

6:48 AM
hii
are you their
?
 
7:16 AM
morning
this morning chat was unreachable to me
 
Good Morning :)
why
 
I believe its related to its servers
 
OK
no problem
 
SO what was the problem?
 
Today my breakfast was awesome :)
Yes
See
 
7:18 AM
:)
 
on my local and UAT server
the .net framework was 4.0
 
glad to hear that
 
so your code
 
4.5?
 
no
'IsNullOrWhiteSpace'
was working fine
 
7:18 AM
yep
 
but on my production server
the framework ver is 2.0 :(
 
:|
 
that's why it was giving me error as
 
:=
 
as 'string' does not contain a definition for 'IsNullOrWhiteSpace'
so I created my own method
for IsNullOrWhiteSpace
but that was also not working
:(
So first I checked for
string.IsNullOrEmpty
like this
 
7:21 AM
you were using it already in other parts of your cade
 
if (!Page.IsPostBack)
{
if (string.IsNullOrEmpty(Request.QueryString["tx"]) == false)
{
if (Regex.IsMatch(HttpUtility.UrlDecode(Request.QueryString["tx"]), "[^a-zA-Z0-9 % +]"))
{
Response.Redirect("Error.aspx");
}
else
{
SearchResult();
}
}
}
 
I suggested IsNullOrWhiteSpace in my code
 
yes
 
so you got back to IsNullOrEmpty
 
and that worked finally for me :)
yes
wait
 
7:23 AM
but it is not very wise to develop with .net 4 to a .net 2 server right?
 
my manager is here
 
ok
 
txt u in some time
u their
?
 
7:48 AM
yep
 
 
2 hours later…
9:51 AM
yes
it is not wise
:)
 

« first day (14 days earlier)    last day (14 days later) »