Hi,
I have this code in my pageload but the problem is i want rm_id which i am gettin from session should be set in the javascript code in place of 261 hard code value at line#5( var rmid = 261;) i use concatination opr but it dose'nt work out.
I have this code in my pageload but the problem is i want rm_id which i am gettin from session should be set in the javascript code in place of 261 hard code value at line#5( var rmid = 261;) i use concatination opr but it dose'nt work out.
Code:
int rm_id = Convert.ToInt32(Session["rmid"]);
//var rmid = <%= Convert.ToInt32(Session['rmid']) %>
string updateParentScript = @"function updateParentWindow()
{
var rmid = 261;
window.opener.updateValues(rmid);
alert(rmid);
window.parent.location.reload();
window.close();
}";
this.ClientScript.RegisterStartupScript(this.GetType(), "UpdateParentWindow", updateParentScript, true);
btn_close.Attributes.Add("onclick", "updateParentWindow()");
Comment