From this year I'm working on a ASP.NET Web Forms project. I'm currently tuning this project with some tweaks.
One of those tweaks is related to ViewState, IMHO the Achilles' heel of this framework.
Due to business decisions, budget etc... dev-team could not re-engineer the entire pages, so they decided to improve whatever possible.
Move ViewState out of the page... that means one thing: lighter pages!
ViewState, by default implementation, is actually stored in a HiddenField, but you can move it everywhere: Session, Cache, Database...
This devblog borns as a container for projects, ideas and anything I can think or do in my spare time ... Here you will not find my pictures or photos of my dog, but snippets of Java, C#, C++, T-SQL, HTML, javacript and who so forth ...
Showing posts with label net. Show all posts
Showing posts with label net. Show all posts
Monday, July 28, 2014
Tuesday, December 20, 2011
Interrogare un Web Service ASP.NET con Android
Abbiamo il nostro bel WS in ASMX o WCF e vogliamo renderlo raggiungibile dai nostri terminali Android senza troppe rogne?
Le librerie ksoap2 ci stravengo incontro!
Scarichiamo il jar relativo qui , importiamolo nel nostro progetto e aggiungiamo le referenze nella nostra classe:
Supponendo di avere un webservice con una pagina "Service1.asmx" la quale contiene questo metodo:
Scarichiamo il jar relativo qui , importiamolo nel nostro progetto e aggiungiamo le referenze nella nostra classe:
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;
Supponendo di avere un webservice con una pagina "Service1.asmx" la quale contiene questo metodo:
[WebMethod] public string HelloWorld(string valore) { return valore; }
Subscribe to:
Posts (Atom)