i have one section in my mvc 2.0 project which doing some processes and after each, return some messages (string) with response.write(). and this messages returned to browser with bad format. i want to return messages to one specific HTML div and add each to end of contents of div tag. now how do this?
this event after each procces raised and message returned to browser.
public void OnProgressEvent(System.Object source, CustomEventArgs customEventArgs)
{
if (customEventArgs.Level > 5)
{
Response.Write(customEventArgs.Message + "<br />");
Response.Flush();
}
}