I was sick more and more from all the quirks about control identifiers, trying to get your data on servers (based on events on the client side). I seem to spend more time struggling with controls in asp.net, which, in my opinion, I need more time than I get using it.
I was thinking about using simple html / javascript with jQuery and a web service that returns json for data.
The only thing I think I would skip from webforms is MasterPages, session management, Windows login authentication, and possibly validators (although they also have some quirks). (Actually, maybe not for sessions and auth, but I never developed web services)
- Something is wrong with this. I think about it or what I did not think about?
- Are there any things in asp.net that you think I will skip?
- Has anyone done this before and wants to share the experience?
Please also note that I only have Framework 2.0 for development.
Edit: Something like the problems causing the problems in asp.net makes me wonder about the switch:
Here is an example of a page giving me problems.
There is a table of trees (master / details)
You can edit the fields in each child row.
When you click the save button, the data from the group row should be updated (just the data from the selection, no changes to the database), since the data is from the child row.
I do not want to refresh the entire page because the records displayed are based on search criteria.
Master / parts are created using repeaters
Trying to update a record from the code behind is really fancy and still has no idea about updating the display.
Using jQuery and a web service, I assume that I can directly update the database, query what I want to display, and simply update this record. This is what makes me wonder how asp.net is just bothering me.
________________________________________________________________________
| - Some Details About Group |
| ________________________________________________________________________ |
| ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯ |
| ChildRecord Some Editable Fields SaveButton |
| ChildRecord Some Editable Fields SaveButton |
| ChildRecord Some Editable Fields SaveButton |
| ChildRecord Some Editable Fields SaveButton |
| _______________________________________________________ |
________________________________________________________________________
| + Some Details About Group |
| ________________________________________________________________________ |
________________________________________________________________________
| + Some Details About Group |
| ________________________________________________________________________ |
Edit2: ASP.NET related issue is not ajax related. Yes, I use jQuery to make the interfaces more dynamic, for example, show / hide the search section when it is not needed, and reset the details from the tree, but that’s all I do with it.
My concern is that if I want to check which button was pressed in this example, I have to use some tricks that are a little annoying.
If you want to use the data binding drop-down lists in the repeater, you need to use codebehind to set the selected value, it will be a pain to restore the selected data.
Next, if you want to check what data has been changed, you need to save the data in the view, view the data from all the controls in the repeater, and then compare it with the data to create the update. These are the things that bother me with asp.net.