protected void ShowAfterSerializationSoap_Click(object sender, EventArgs e) { //Call DeserializeSoap() method to serialize Student deserializedStud = UtilityFunctions.DeserializeSoap(Server.MapPath(Strings.SoapFilePath)); //check the status if (deserializedStud == null) { Response.Write(Strings.DeserializationFailed); } else { //show object state before serialization Response.Write("<h2>Student Object state after SOAP serialization</h2>"); Response.Write(string.Format("<br /> Roll No. : {0}", deserializedStud.RollNo)); Response.Write(string.Format("<br /> Name : {0}", deserializedStud.Name)); Response.Write(string.Format("<br /> Total Marks : {0}", deserializedStud.TotalMarks)); Response.Write(string.Format("<br /> Grade : {0}", deserializedStud.Grade)); } }