I am fairly new to ASP.NET and am trying to understand some code I am responsible for.
There are many references to Request("id") and also Request("ID") in this project. I understand that Request is the current System.Web.HttpRequest, but I don't understand what Request("id") is although I can see that refers it holds the id of different controls on the corresponding html.
1. Are Request("id") and Request("ID") the same thing? What do the values mean?
2. Are they a piece of ASP.NET or are they something in my project somewhere?
3. What would it mean for Request("id") to be nothing?
Thanks!
If IsNothing(Request("ID") ) = false
If Request("ID") <> some value
Exit Sub
End If
..... some logic that never gets executed apparently.....
else
... the logic that always get executed
So my conclusions are that the original developer was contemplating a scheme where only some of the page would be rebound, in accordance with what was in Request.Form("ID").
However, neither the original developer or anyone else ever implemented the use of this scheme - thus Request("ID") is always nothing and I am left with a bunch of extra code.
Thank you for your insights.