protected void Show(object sender, EventArgs e) { string typ; typ = TextBox1.Text; WriteXML wx = new WriteXML(); wx.votertype = typ; wx.WriteXMLVoterType(); Label1.Text = "name:" + wx.name + "dob:" + wx.dob; }