Tuesday, March 29, 2005
Next Talk on June 2005
Thursday, November 18, 2004
QueryString - A Cool tip
Today I learnt some exciting (weird, may I call it) thing about using QueryStrings in ASPX pages.
When you pass a querystring in an ASP page, and you need to check the same, you go ahead and do:
If Request.QueryString("whatever") = "whatever" Then
'Do Whatever
End If
If the page do not get the querystring "whatever", it wouldn't mind.
BUT, in ASP.NET, the page would throw an expception (Object reference not set to an instance of an object)!!!
So, if you have a scenario in your application where you might not pass the querystring, you might want to do something on this line:
If Not (Request.QueryString("whatever") Is Nothing) AndAlso Request.QueryString("whatever") = "whatever" Then
'Do Whatever
End If
(MAY BE THIS WAS TO REMIND ME: .NET IS ALL ABOUT OBJECTS. IF THERE IS NO OBJECT, YOU AIN'T GONNA DO A DAMN!)
Have you ever encountered such cases? What measures did you take to tackle them? Please add your two cents.
Thursday, October 21, 2004
My First Talk
Also thanks to Giphi for lending me his cool laptop for the presentation.
Friday, September 17, 2004
To Code-Behind Or Not To Code-Behind
A really informative and healthy discussion are in Scott Mitchell's
blog entry. Please have a look at it. http://www.scottonwriting.net/sowBlog/posts/1005.aspx
support to Code-Behind. I consider this as a revolution which happened to
me as a
developer. Whatever the Gurus preach, this has changed my life!
I had this one page developed and running in production for months. And
there was a link on this page, which navigtes the user to another page
(Page2.aspx),
which displays some business related information highly useful for the
end-users. For some reason, this page (Page2.aspx) was very slow and
was tming out.
Our helpdesk was being pestered by the angry users. The DBAs found that
the SQL in the concerned stored procedure was the real culprit and they
wanted some time to
fix the same. The management did not want the users to access the
particular page. The problem came to me and I removed the Link and replaced
with a label which went along "This functionality is not available for
now, for technical reasons...". My bosses were worried about doing
another build, but I convinced them that this is different and they just
needed to copy/paste the aspx file to the production machine.
They did as I told, and they were happy that they did.
See the beauty of the Code-Behind? I had done so many changes to the
code-behind file, and if it was an inline code, I would not what I would
do :-)
Wednesday, September 01, 2004
Sunday, August 29, 2004
Regulator
I tried Regulator tool for Regular Expression testing by Roy Osherove. This ones a great tool which could save us all time and frustration :-) Believe me, testing Regular Expressions is no kid's game. Its takes everything in you, and it tests your patience. Regulator makes everything easy for you. Try this yourselves.
Friday, August 27, 2004
Testing BlogJet
I have installed an interesting application - BlogJet. It's a cool Windows client for my blog tool (as well as for other tools). Get your copy here: http://blogjet.com
"Computers are useless. They can only give you answers." -- Pablo Picasso
Cookies, anyone?
Our application started having integration issues early March this year. Did I say that was intermittent? To add to our confusion, we coul...
-
Disclaimer: This post has nothing to do with washing or repairing cars. Well, I have been pondering over Managers and Management for lo...
-
Yesterday I had this popup on my new Nokia Lumia 800 for a phone update. I connected it my laptop and up came the Zune. I went through the ...
-
Our application started having integration issues early March this year. Did I say that was intermittent? To add to our confusion, we coul...