Real Cialis

Oct 18th, 2014 by Lynn Demarest in ASP.NET, SQL Server, Technical, Web

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 During the postback, viagra in india Page_Load fired, viagra in india but the OnSelectedIndexChanged event for the control did not.

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  

Average Rating: 4.7 out of 5 based on 187 user reviews.

No Comments


Comments have been closed for this post.