Getting Started with Adobe After Effects - Part 6: Motion Blur
A collection of quick technology learning tips from what people around you learn every day

ASP.Net Collection is read only?! I strongly disagree!

Oct 4 2011 10:48PM by Sergejack   

That some important collection are readonly may be a real issue on some cases.

This morning I found a way to preserver Request.QueryString from one Page transfered to another and the last thing that was bothering me is I couldn't alter the target page's QueryString. In the end, I found a helpful blog page that tells you how to override that using reflection.

var QS = x.Request.QueryString;
// QueryString is readonly?! Well, screw that!
QS.GetType().GetProperty("IsReadOnly", BindingFlags.NonPublic | BindingFlags.Instance).SetValue(QS, false, null);
Read More..   [11 clicks]

Published under: Microsoft .NET Tips ·  ·  ·  · 


Sergejack
41 · 4% · 1395
5
 
0
Knew
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten



Submit

1  Comments  

  • Great trick...:)

    commented on Oct 10 2011 1:22PM
    Robert Dennyson
    11 · 14% · 4430

Your Comment


Sign Up or Login to post a comment.

"ASP.Net Collection is read only?! I strongly disagree!" rated 5 out of 5 by 5 readers
ASP.Net Collection is read only?! I strongly disagree! , 5.0 out of 5 based on 5 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]