January 31, 2008
Signature of WebForm_DoPostBackWithOptions
WebForm_DoPostBackWithOptions(WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit))
..just in case you're wanting to pump in your own event arguments and the like
Posted by dottie at 9:46 AM | Comments (0) | TrackBack
January 1, 2008
Mono
No, I haven't gotten the kissing disease.
I'm getting my head around the capabilities of Mono.
I'm hoping that I'll be able to run C#.NET apps on my own Linux server - mainly as it is a lot cheaper that a windows box; and more stable.
I'm liking Mono, and its IDE monodevelop. I can now hack together C#.NET webforms on my Linux laptop, have them running in Apache (well, almost - XSP does the job for the moment...) and not lose touch with my mad .NET skillz - booyah!
There are a few gotchas with the IDE - no intellisense in ASPX pages, no proper support of partial classes - definitely not showstoppers. I could even look at adding those features (not likely, but..) as both mono and monodevelop are open source and I have not looked at the .NET source code.
I working on something to scratch a personal itch at the moment - intelligently filter the far too many RSS feeds I have subscribed to.
I'll post up any problems I find as I go along.
Posted by dottie at 10:30 PM | Comments (0) | TrackBack
March 17, 2007
Microsoft and ASP.NET gang up on radio-boxes
ASP.NET rips a new one for the humble old radio button.
The problem? You can glean absolutely no useful information from them apart form the fact that they are checked or not.
When you use them in static ASP.NET pages the situation is not too bad as you get to define each radio button individually as a control / container. You can then set up events for CheckedChanged or even check directly that the button is checked on a page postback and then undertake some actions based on that fact.
What if you wanted to create the radio buttons programatically from the database and then access something like a table row id from the VALUE of the checked radio button? Seems simple enough, seems reasonable.
It can't be done.
The only information you can access is the Text value of the radio button. In every other control that contains the 'value' of the input. The 'Text' property of a radio button is the text that appears BESIDE the control. wtf? WTF!! The old Visual Basic programming model rears its head with a vengance - you can have consistency as long as you don't expect everything to work the same way!
Note to Microsoft - writing a computer language is not like creating a spoken language - there don't HAVE to be irregular verbs you know!!
What Microsoft forces you to do is to set up something like a hidden input field in the same context / container as the radio button. When you see that the radio button in question is checked you can then grab the data you need from the hidden input field (using FindControl usually...)
Easy? Hmm...
Posted by dottie at 4:54 PM | Comments (0) | TrackBack
February 26, 2007
ASP.NET doesn't like multi-page forms and I don't like ASP.NET
The title says it al.
If you want to do hassle-free multi-page forms then dont bother with Session variables, Context and server.transfer - too much overhead.
Just go with the flow and bung all your separate pages into the one big page.
This of course will cause issues with accessibility and huge issues if Javascript is switched off or affected by Anti-virus programs.
When I get this application finished I will doing a review of the problems introduced by ASP.NET.
I'm not liking the experience one bit.
Posted by dottie at 11:27 AM | Comments (0) | TrackBack
January 8, 2007
ASP and ORM
I'm developing an application at the moment and rather than using ASP.NET I'm being somewhat perverse and developing a pseudo MVC 'framework' in the style of Ruby.
The one big thing that is missing is of course ORM (object Relational Mapping). It's a fairly straight forward application so I think I can get away with throwing around some SQL statements. Its a pity though.
I don't much like ASP.NET, even though C# is a nice enough language, the whole .NET framework just seems so bulky and Java-like.
The Ruby on Rails way of convention over configuration is a refreshing way to go about things. I am still writing C like Ruby but thanks to some great blogs like - The Rails way, Ruby Inside and Softies on Rails not to mention great book like the Pickaxe book and Agile Web Developement oon Rails both from the publishers The Pragmatic Programmer - I'm well on my way to making a good living from RoR development some time this year!
Yay!
And what pray tell does all this have to do with ASP and ORM? Well, I suppose it just goes to show that ASP has nothing to do with ORM :D
Posted by dottie at 11:57 PM | Comments (2) | TrackBack