c# - Populating a thickbox via javascript or jQuery -


I am trying to get string data from a web service and populate a thick box with this data. I think this should be the easiest part of the work, but till now it's the place where I got stuck.

Here is the code in question ...

  function AjaxRequestHandler (layerName) {PageMethods.AjaxRequestHandler (background name, rotation); } Protected on the function (result) {// need to display results in thickbox ... warning (results); }  

If I say the above, then I really want the result with the text that I want to display in the thickbox. The thick box also appears, but everything I tried to do is just empty, my initial gut instinct was to make a document. Write, but I can not do this because I get a denied denial error.

Any thoughts?

Edit: I should note that links from onclick events that are running on the thickbox are being made with the C # code, after which a GridView Injection I did something like Have tried that which is given below, but it only captures the data under the link, not in the thick box.

The thickbox displays only the content that it wraps, I have not tried it, But if you & lt; A href and id = "myupdatablecontent" & gt; And then do something like this:

  $ ("# myupdatablecontent"). Html ("foo");  

It should work as a magic


Comments