Ever growing hate for ASP.NET
Jumping all in with no lessons
The company I work for has let go all of their programmers a while ago, they hired me as a server administrator. Since my skills are very broad I got assigned a lot of custom programming which I don’t mind as it’s something I really like doing. Well I am primary a PHP developer and very little to no experience with ASP.NET before.
Now that they’re almost done with developing the new mobile app, they pulled me into the project to make the web views pages look nice on the pages. They started doing it themselves with jQuery Mobile and it worked on a few pages. I started making jQuery Mobile work on all the pages and it was going good no issues only small code modifications. Until I started working on a page that they wanted select boxes to look like flip switches and have it do “AutoPostBack” well I learned quickly it wasn't easy.
When ASP.NET enables “AutoPostBack” on elements it does it with JavaScript but with onchange attributes. Now, when you cause the event to execute ASP.NET injects JavaScript which grabs the data and does simple request to the same page, when the server returns the page it appends it to the current page you are viewing.
In theory it sounds fine but when working with jQuery Mobile with ASP.NET you run into a problem, jQuery Mobile automatically on page load it injects and modifies the HTML to make it work with their CSS. Now since ASP.NET “AutoPostBack” appends the content back to same page jQuery Mobile doesn't modify the content added with “AutoPostBack”.
Right now our other developer and myself don’t know where to go with this one page for our mobile app. Personally if it was up to me I would make our whole app in-house and make it faster then they took to make it work up to this point. That is that, I hate ASP.NET and really don’t want to work with it anymore in my life.