another approach to returning some thing to browser in mvc with ajax call instead of using response.
Posted
by Sadegh
on Stack Overflow
See other posts from Stack Overflow
or by Sadegh
Published on 2010-05-16T20:02:17Z
Indexed on
2010/05/16
20:10 UTC
Read the original article
Hit count: 228
asp.net-mvc-2
|jquery-ajax
hi, 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();
}
}
© Stack Overflow or respective owner