Tuesday, May 15, 2007

OnSelectedIndex event does not fire

Today I had a weird problem after modifying the html portion an aspx file, problem was drop down control was not firing the SelectedIndexChanged event. I checked the initialization event from the hidden fields it was quite evident that postback was triggered from drop down box, but in load event drop down selected item was set to -1 !!!! after cracking head for two hours, I moved the form tag into the inner table which had the drop down control, page started to work fine!!!.

Looks like if the table structure is not properly nested then drop down box's SelectedIndexChanged event will not work.

Monday, March 12, 2007

sql server 2005 - Restore failed for Server

Today I was trying to restore a backup of sql 2005 production system on to my local system I came across this error.

The backup set holds a backup of a database other than the existing 'SCR_2p0' database.
RESTORE DATABASE is terminating abnormally. (Microsoft SQL Server, Error: 3154)

Strange, because the same backup file successfully got restored on desktop but failed on laptop, both the systems are running the same version of sql server 2005.

I came across a post on net http://weblogs.asp.net/plip/archive/2006/10/26/SQL-Server-2005-Backups.aspx, which suggested to use restore database scr_2p0 from disk = 'C:\Santhosh\DBBackup\SCR\Version2.0\SCR_2p0.BAK' with replace

it worked like a gem, but my question still remains unanswered why it failed when I tried it through management studio?

Labels:

Friday, February 03, 2006

Configuration Error c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 198

Today came across this strange error all of a sudden on my development system, the details message is below:
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Object reference not set to an instance of an object.Source Error:
Line 196:
Line 197:
Line 198:
Line 199:
Line 200: Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 198
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

after searching net I found out the solution at the below link from MS:
http://support.microsoft.com/default.aspx?scid=kb;en-us;329065