Posts Tagged ‘json’
I received the following question recently about my article “ASP.NET AJAX using JSON – Here’s how.”
If we update the value of a textbox or label via a JSON web service call – will the value of that textbox/label be written to the viewstate or whatever so that the server side code can see the new values that came from the JSON request?
The short answer is, “no, it will not update viewstate.” But I think it would be helpful to understand when this is important rather than just giving you a blanket answer.
Republished by Blog Post Promoter
I received the following question last week:
I am building a web application… I have a form with asp.net server control textbox and dropdownlist…
how can I send this to the server without postback and send me back message if the process of updating the database is successful
Fortunately, there is.
Last week I wrote a post about how simple JSON is. In it I explained the main differences between using JSON and using the update panel. I really started out thinking I’d get to how to write JSON code, but I ran out of space. Well, today, we get to the HOW.
If you’ve been avoiding using JSON in your ASP.NET application because you think it’s hard, you’re an idiot. I can say that, because I’ve been avoiding it for exactly that reason. I’ve been an idiot too. But no more! Using an UpdatePanel is still easier than JSON. But JSON is easy enough that you may decide to use it over the UpdatePanel under certain circumstances.