[jQuery] Response not working after page has been loaded by jQuery Load
Hello all,
I am trying use the Load function and it looks partly succesful:
the script code is:
function doCallBack(action, value)
{
if (action == 'projlokatiemutaties')
{
var test = $("#ct100_Inhoud__pnlLokaties");
var params = "project.aspx?ch=1&ph=1&cb=center&content=" +
value;
test.load(params);
}
}
when this code is executed 'project.aspx' is loaded and I am able to
query the params. This happens in the code behind:
protected void Page_Load(object sender, EventArgs e)
{
HandleCallBacks();
}
and:
private void HandleCallBacks()
{
string direction = Request.Params["cb"];
if (string.IsNullOrEmpty(direction))
return;
if (direction == "center")
{
string content = Request.Params["content"];
if (! string.IsNullOrEmpty(content))
{
ProjectLokaties1.Refresh("", Convert.ToInt32
(content));
string html = General.Utilities.RenderControl
(ProjectLokaties1);
Response.Write(html);
Response.End();
}
}
}
Projectlokaties1 contains an XML control and the content is being
transformed using Xslt. As far as I can see the html variable contains
the correct value.
However the Response.Write() operations fails completely. As a matter
of fact at this point any Response operation fails.
Does anybody know what is going on here, or better have a solution?
Thanks in advance,
Jan