S
sam
I am trying to emit script to the response stream within the
Application_Error handler in global.asax. I want to emit using
Page.RegisterClientScriptBlock. This doesn't work, and I have been reading
that you can not get access to the Page class from within global.asax. But I
am able to get a hold of the response object through context.current and
submit using response.write, though I want more control. If it is possible
to do a response.write why can we not do a RegisterClientScriptBlock, it is
all part of the response stream?
Is the RegisterClientScriptBlock accessible another way in the global.asax?
Application_Error handler in global.asax. I want to emit using
Page.RegisterClientScriptBlock. This doesn't work, and I have been reading
that you can not get access to the Page class from within global.asax. But I
am able to get a hold of the response object through context.current and
submit using response.write, though I want more control. If it is possible
to do a response.write why can we not do a RegisterClientScriptBlock, it is
all part of the response stream?
Is the RegisterClientScriptBlock accessible another way in the global.asax?