Thursday 2 February 2012

asp:Panel not showing, ignoring Visible=true

In trying to add a Panel around an asp:Login control today so that I could add a DefaultButton I lost my login form completely!


<asp:Panel ID="pan_login" runat="server" DefaultButton="btn_login">
 
<asp:Login ID="LoginMain" runat="server" VisibleWhenLoggedIn="true" OnLoginError="LoginMain_LoginError" onauthenticate="LoginMain_Authenticate">

Nothing displayed at all!

Baffled, I eventually compared it to another site we had it working on and the solution was annoying to say the least... I had missed the reference to the Login control in my DefaultButton . Should have been DefaultButton="LoginMain$btn_login".


<asp:Panel ID="pan_login" runat="server" DefaultButton="LoginMain$btn_login">
 
<asp:Login ID="LoginMain" runat="server" VisibleWhenLoggedIn="true" OnLoginError="LoginMain_LoginError" onauthenticate="LoginMain_Authenticate">

Aaaaargh! ;-)

Debugging Memory dump or Minidump files

I had the following error message after a blue screen of death:

The computer has rebooted from a bugcheck.  The bugcheck was: 0x000000be (0x9d316e13, 0x28500121, 0x8078ac64, 0x0000000a). A dump was saved in: C:\Windows\MEMORY.DMP. Report Id: 013112-80044-01.

I found a great article on how to debug this:

http://forums.majorgeeks.com/showthread.php?t=35246

Tuesday 31 January 2012

Convert Website to Web Application in VS2008

I had some major speed issues with building a VS2008 solution today. The solution was originally started as a website rather than an application and the main hang up was with the "Validating Web Site" part of the build, it was taking several minutes.

So I decided to try and convert the whole thing to an Application and found the following article, follow the workaround steps.

http://gurustop.net/blog/2008/08/03/converting-vs-2008-website-to-web-application/

One other thing I had to do was to rename the new project after I had deleted the old one. I managed to change the name of the folder it was in, the project, assembly name and default namespace without issue.

The problem I was expecting was that TortoiseSVN would get it's knickers in a twist over the changing of folder names etc but actually after I had renamed my new folder to the same name as the original Subversion just saw that as a change to the folder rather than a new one and everything from mine and two other developer's machines committed/updated fine.

Phew! Glad we don't have to that everyday but amazingly went off without a hitch!

Wednesday 25 January 2012

Get to the top of a Twitter feed trick


Just a quick trick on Twitter for you. 

"S40" was trending this morning because of Nokia selling 1.5 billion S40 phones but if you click on it to view all the tweets then, because of his retweets, you get this bloke talking about a guy and his Volvo S40 coming up top even though his tweet was 13 hours ago!