Friday, August 22, 2008

Is't true that Asp.net gets no respect ?

Rick Strahl had a good article named ASP.NET gets no Respect regarding asp.net.The article discusses many points including :

- why many developers don't choose asp.net as their web technology?
- what makes asp.net a different web technology?
- Is asp.net is just being hated because it's a microsoft product?

The article is a great one to give you an insight on what is going on out there. Regardless of my loyalty to microsoft technologies I can't stop thinking of a question that every web developer maybe asking :

Do I need to learn a backup web technology?

Friday, August 15, 2008

I HAD A WAR WITH A checkbox

Have you created a gridview with a checkbox template field. sure you have if not just jumb to that nice article on how to do and that article to know how to implement Check All and Uncheck All functionality but don't forget to come back, am waiting.As you all know the main idea is to save round trips to the server by selecting multiple checkboxes and take an action on the selected rows.So why I had that war since everything seems just cool and under control.The problem was that each time I check the checkbox it returns false on the server side which drive me crazy "Why, why, why ....".However after many trials reviewing the javascript for attaching the event to the checkbox I found myself searching in the wrong part of the city so I got back to the server side where I found my terrible mistake "in that case off course". I was binding the Grodview control each time the page was loading "what was I thinking of, Nothing I guess and That was the problem :D". Anyway It seemed so natural why the checkbox always returned false since it had just been created.To Summary the long story The !IsPostBack check was the solution.