I have written an application in C#.Net. I am creating a pop
up window
using Javascript. This program is run locally so the pop up
will not be
a problem. I am trying to pass a varaible from C# into the
javascript.
I have entered the code below. Any help would be
appreciated.
string sResponse;
string sRedirect = "http:/
/localhost/LeaseTest/Navistar.aspx?name=' +
Form1.txtDriver.Value + '"; // + '&effdate=' +
this.txteffDate.Text +
'&tractor=' +
this.ddltracNum.SelectedValue.ToString()";
sResponse = "<script
language=JavaScript>window.open('" + sRedirect +
"', 'Agreement',
'width=600,height=600,top=200,lleft=200,toolbars=Yes,scrollb
ars=yes,status=yes,resizable=yes');</script>";
Response.Write(sResponse);
|