Streaming content from (sharepoint) web part
        Posted  
        
            by Mikko Rantanen
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mikko Rantanen
        
        
        
        Published on 2010-03-22T10:58:12Z
        Indexed on 
            2010/03/22
            11:01 UTC
        
        
        Read the original article
        Hit count: 329
        
How does one stream files, html or custom AJAX responses from web parts?
Our current quick-and-very-dirty solution is to make the web part call the current page with certain query parameters, which the web part checks and instead of performing normal load it writes the required things to output and calls response end.
This sounds bad since SharePoint might load other web parts and execute their code before reaching our web part.
The web part is configured with data source settings which means the streaming context must be specific to the web part so it can acquire the correct data source settings.
© Stack Overflow or respective owner