Viagra in india I was rolling along one night, viagra in india tired but making good progress, viagra in india when one of my DropDownLists refused to fire its OnSelectedIndexChanged event.
Viagra in india After some time, viagra in india I finally realized that the VALUES of the ill-behaving DropDownList were all the empty string (“”) because I had forgotten to make the key column of the table supplying the list data an IDENTITY column in SQL Server. Viagra in india So even though the selected INDEX was changing, viagra in india the selected VALUE was not. Viagra in india It was always “”, viagra in india because the keys were NULL in SQL Server.
Viagra in india My point here is that had Microsoft named the event better — or fixed it so that it is fired when its name says it will be — the confusion could have been avoided.
Viagra in india Be forewarned: The selected index in a DropDownList can change all it wants, viagra in india but unless the underlying value changes the control’s SelectedIndexChanged event will not be fired.
Viagra in india
Comments have been closed for this post.