There are a number of ways depending on how you want to do it.
Easiest way is to use the Request.Params collection like this:
string id = Request.Params["id"];
The Request.Params collection contains your QueryString, Form, Cookies and ServerVariables items and is the quick way to get both your Post and Get variables.
User Profile
Collapse
-
C# - RectangleF will not Offset when used as Property
When I run the following tests (In NUnit):
...Code:[Test] public void ShouldOffsetRectangle() { RectangleF standAloneRect = new RectangleF(0, 0, 10, 10); standAloneRect.Offset(1, 1); Assert.AreEqual(1, standAloneRect.X, "standAlone failed"); } [Test] public void ShouldOffsetRectangleAsProperty() { TestRect propertyRect
No activity results to display
Show More
Leave a comment: