Response.Clear in ASP.NET 3.5 -


i have upgraded of web applications asp.net 3.5 installing framework on server , setting web applications acrodingly , well, however.

on pages, want clear current contents of response buffer code this:

response.clear(); // output stuff response.end(); 

but isn't working in 3.5 when did in 2.0. have tried setting response buffer false didn't work either.

can let me know why isn't working or if there work around?

try setting buffer="true" in page directive of page , not in codebehind.

i tried in vs2008 on web site project:

  1. create new item
  2. choose "web page"
  3. leave html-tags in there, fun
  4. fill page_load this

    protected void page_load(object sender, eventargs e)   {     response.write("test1");     response.clear();     response.write("test2");     response.end();   } 

it output "test2" without html-tags.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -