below is my code which return name that is entered in textbox in the web method and displays the name current time and date as output now what i need is i only need to pass the name to another method how can i do this
protected void Page_Load(object sender, EventArgs e)
{
}
[System.Web.Services.WebMethod]
public static string GetCurrentTime(string name)
{
return "Hello " + name + Environment.NewLine + "The Current Time is: "
+ DateTime.Now.ToString();
}
now what I need is I need another method only with name that is obtained from WebMethod and on button click I need to display the name with
Ravi PatelPosted Jul 6, 2016, 9:51 AM