Feed Icon  


  • Bryant Likes
  • Send mail to the author(s) E-mail
  • twitter
  • View Bryant Likes's profile on LinkedIn
  • del.icio.us
Get Microsoft Silverlight
by clicking "Install Microsoft Silverlight" you accept the
Silverlight license agreement

Hosting By

Hot Topics


Open Source Projects



Some Random ASP.Net Notes

Posted in ASP.Net/Web Services at Monday, January 24, 2005 2:37 AM Pacific Standard Time

Last week I was doing a lot of ASP.Net development and ran into some real time wasters. Things that make you want to beat your head on the desk. Especially this first one.

1) I would rebuild my project and would then try to access the page on my local web server (I'm running IIS on Windows XP). I would randomly get the error that Access was denied to “some.framework.of.mine.dll”. It would then seem to go away for no reason. After a little googling I found the answer here. The problem is that the Indexing service in Windows XP locks the temporary ASP.Net files so you get the error for about five minutes and then it goes away. Talk about frustrating. Disabling the indexing service solves the problem.

2) Another thing I ran into was trying to disable a button after the user clicked it so that they couldn't click it twice. After several tries I was able to get the client side onclick event to work but if I disabled the button then it didn't submit the page for postback. Hmmm.. After soom googling I found a great solution here. It is called the ASP.Net Ghost Button Hack and it works very well.

3) I wanted to add checkboxes to my datagrid and also a checkbox in the header to select/unselect all the checkboxes. I found a nice example here, however the example didn't work. I'm not sure what version of ASP.Net the example is based on but there are some things you have to change to make it work. If you're interested let me know and I'll post them. Other than that the example worked great and I have it working (and the users love it).

4) Url Rewriting was the final thing that I ran into trouble with. I was able to get the Url Rewriting working just fine (I already had my own library set up to do this) but for some reason the postbacks were giving me problems. I read about this issues with url rewrites and postbacks here in an article by Scott Mitchell. The article describes how to create your own form control that doesn't output an action tag which solves the problem. This is the most elegant solution that I've seen for this problem and it works great.

So this is kind of a note to myself so that I'll remember them and hopefully they might save someone else some time as well.

Friday, February 25, 2005 8:07:00 PM (Pacific Standard Time, UTC-08:00)
very nice
Wednesday, December 6, 2006 2:47:58 PM (Pacific Standard Time, UTC-08:00)
I want to lern Asp.net And web Desining
Comments are closed.