You can serialize data via XML or JSON and save the serialized string in the database. This would simplify your database and web services infrastructure than having to keep each control separate, but for more parsing on the JS side, more parsing will be needed, but since your application sounds like JS-heavy, I guess it should not be problem for you.
var state = { textbox1:{ x:100, y:200, width:20, height:10, defaultValue:'Hello world!' }, button1:{ x:150, y:200, width:20, height:10, text:'Push me!' } } var serialized = JSON.stringify(state); yourService.SaveSate(serialized)
JSON.stringify only works in modern browsers, but there are many alternatives if you focus on old things.
Jeff
source share