Declare 2 public variables in your class, change your script to below and register this in the Page_Load:
public string strControlName;
public string strSelectedDate;
protected void Page_Load(object sender, EventArgs e)
{
strControlName = Request.QueryString["textbox"];
strSelectedDate = Calendar1.SelectedDate.ToString("MM/dd/yyyy");
string strScript = "