Search code examples
asp.netasp.net-ajaxupdatepanelresponse.write

Response.Write like behavior when code is executed in an Update Panel


Is there a way to make Response.Write work in an UpdatePanel and not cause the app to error out for obvious reasons? Or, is there a way to get similar results without more than one line of code in C#?


Solution

  • You could just put a literal control inside your update panel and have the same effect using:

    myLiteral.Text += "Some more text!";