Originally Posted by
Vladimir
There is no universal solution, it is always required to investigate code before any advising.
I can get only few suggestions:
- render controls on demand instead on initial page load
- bind data on demand instead on initial page load
- if data contains many record then use remote paging
- use static direct methods instead instance direct methods
- move logic (direct events) out the page to http handlers or web service
- reduce ajax requests as much as possible (try to do on the client side (via javascript) as much as possible)
Just some clarifications:
1) render controls : this means to add contrls instead to use the ascx?
2)bind data : ok, we do it now
3) we get no many records
4) static direct methods : what does it mean?
For example we have this Direct Method
[DirectMethod()]
public bool AfterEdit(string field, string oldValue, string newValue, object timbratura)
It must become
[DirectMethod()]
static public bool AfterEdit(string field, string oldValue, string newValue, object timbratura)
It's correct?
5) move logic to http handlers/web service : the solution is not viable because it's a great impact
6) reduce ajax : please should you clarify this point?Aren't direct methods ajax requests?
Thanks in advance