Below is my Web Service code: [WebMethod(EnableSession = true)] public string GetStringValue(string sessionstring) { // return sessionstring+"1"; HttpContext.Current.Session["regid"] = sessionstring; return HttpContext.Current.Session["regid"].ToString(); } Below is my first application Code for on button click passing session value to web service protected void Button1_Click(object sender, EventArgs e) { localhost.WebService objserv1 = new localhost.WebService(); Session["RegId"] = "Mazar"; Label.Text =objserv1.GetStringValue(Session["RegId"].ToString()); } In second Application need to show on page load. protected void Page_Load(object sender, EventArgs e) { // localhost.WebService objserv1 = new localhost.WebService(); // lbl_Value.Text = objserv1.GetStringValue(HttpContext.Current.Session["regid"].ToString()); } In Second application trying to showing first application session value but not getting any Idea. <a href="https://i.stack.imgur.com/7gjzi.png">enter image description here
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)