2011年4月30日星期六
Siderite's Blog: Invalid postback or callback argument in ASP.Net 3.5
Also, you might get a Sys.WebForms.PageRequestManagerServerErrorException with code 500 when using Ajax. It usually happends when you click on a button in a GridView or another bound control. You expect it to work, but it doesn't, even if the code is relatively clear.
The answer is (probably) that you are binding the container bound control every time you load the page (instead of only on !IsPostBack). The thing is this used to work in ASP.Net 2.0.
Bottom line: check your binding, see if you are not doing any DataBind in between the button click and the eventual event catch.
2011年4月12日星期二
NO-FLY-ZONE, NO-VEIL, What’s next? Enjoy your time with hats!
France or should I say Sarkozy has really shown himself on the international stage. Being eager to set up the no-fly-zone, I don’t believe the French care the democracy in Libya that much. If Libya has no oil, it will be ignored as many other countries.
Now it’s really a doubt about the democracy in France itself. The ban of veil is completely under democratic process, which means this presents the respect of liberty. Yes, the premise is that all the women who wearing full veil are forced. The logic is, we are going to help the women who hate wearing veil but were forced to do so. So we ban wearing veil that you all can enjoy your liberty of not wearing it. See? we are so care of you that we establish a law to protect you. So what happen to those who want to wear veils? Do they have right to wear it? I’m sorry, wearing veils is against liberty so you have no liberty to wear them.
Don’t believe this logic? Think terrorist! Why they got arrested and sentenced is because they are dangerous! Why we thrown so many bombs(sorry, missiles) in Libya? It’s because Gaddafi is a dictator. What? Civilian casualties? I’m sorry, Gaddafi is a dictator.
If something/someone is bad, and I’m against it. Then I’m good. If something/someone is bad in my opinion, and I’m against it. I’m still good. If someday I think wearing hats is harmful to liberty as the hats ban the right of hair to see the sun, I will ban hats! So enjoy your time of wearing hats now.