Here is my situation: I will have a web page with TreeView control, which is supposed to be expadable/collapsable/editable. All good so far. I know that postback is used heavily in this control which brings me to another problem that's specific to our production set-up.
We have 2 web servers here and a load balancer, the load balancer doesn't work properly and unfortunately can't guarantee that the page is going to get submitted to the same web server. In other words, a situation may happen when session will not remember who you are or any variables (such as treeview viewstate) saved in session will get lost.
I need to make sure that my treeview always posts back to the same server. My solution was when the page first loaded get the web server's IP adress and rewrite all the links/buttons to point to that IP specifically to bypass the load balancer. The problem arises with the treeview. How do I make sure that it posts back always to the same IP address?
Thanks