Blog Stats
  • Posts - 157
  • Articles - 0
  • Comments - 90
  • Trackbacks - 19

 

Spot the issue # 3

Take a look at the following code in the Page_Load event of an ASPX page. The Request object is a wrapper object of the type System.Web.HttpRequest that contains information about the current HTTP request:

 

private void Page_Load(object sender, EventArgs e) { Stream instream = Request.InputStream; ... instream.Close(); }

Can you spot the issue? One hint: LoD and a possible side-effect (unexpected behaviour)


Cross-posted from The .NET Aficionado
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

No comments posted yet.


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

 

 

Copyright © Gabriel Lozano-Morán