tag:blogger.com,1999:blog-307942242024-02-28T16:29:08.798+02:00Musa's .NET SpotAnything relating to .NET(ting), SQL(ing), Open Source and more codingMusahttp://www.blogger.com/profile/04969831330646197749noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-30794224.post-11670018988607595922009-05-13T15:39:00.000+02:002009-05-13T16:05:07.250+02:00Clear the initial Selection on the DataGridView in Windows AppI have been battling with disabling the selection of the first row in a Windows App datagridview and I tried so many solutions including having code in event handlers to solve the problem.For example, I had <DataGridViewName>_Selection changed where I had something likeif (SelectionAllowed){ if (<DataGridViewName>.CurrentRow != null) { }}Musahttp://www.blogger.com/profile/04969831330646197749noreply@blogger.com0tag:blogger.com,1999:blog-30794224.post-26225704437482471652009-02-24T16:11:00.004+02:002009-02-24T16:21:25.846+02:00Validating using asp.net validation in custom javascriptWow,I just found how easy it is to have custom javascript at the same time using ASP.Net validators to validate user input (Client Side).In my situation, the ASP.Net validators were not firing because I had hooked custom javascript to a button click.e.g.function ValidateAddressAddition(){ if (confirm('Are you sure you wish to add a previous address?')) { return true; }Musahttp://www.blogger.com/profile/04969831330646197749noreply@blogger.com2tag:blogger.com,1999:blog-30794224.post-85559705427005915582007-07-30T04:33:00.000+02:002007-07-30T16:51:53.142+02:00AJAX Update Panel and RenderMode="Inline"AJAX has an attribute rendermode AJAX has be set to "Inline" amongst other values. I have encounterred a problem where got an error 'unknown runtime javascript error'. To solve this problem (after hours of debugging), I removed the attribute and everything seemed to work .Musahttp://www.blogger.com/profile/04969831330646197749noreply@blogger.com0tag:blogger.com,1999:blog-30794224.post-1165920671108256042006-12-12T12:42:00.002+02:002006-12-12T13:24:50.413+02:00AJAX and .NetRecently I've been having trouble 'enabling' AJAX on an existing website. It took me days to figure out the actual cause of the problem. The website was recently upgraded to Framework 2.0...I added an UpdatePanel to the user-control and it wasn't working... gave an error The UpdatePanel '<controlid>' was not present when the page's InitComplete event was raised. Googled and told I was usingMusahttp://www.blogger.com/profile/04969831330646197749noreply@blogger.com0tag:blogger.com,1999:blog-30794224.post-1152288650541205532006-07-07T06:07:00.000+02:002007-07-30T16:53:57.357+02:00Welcome to Musa's .Net SpotThis is a blog for anything includig Free software reviews, Open Source, C#, VB, SQL, PerlScript, Code snippets, etcMusahttp://www.blogger.com/profile/04969831330646197749noreply@blogger.com0