User Profile

Collapse

Profile Sidebar

Collapse
MSwaffer
MSwaffer
Last Activity: Aug 27 '08, 10:31 PM
Joined: Aug 15 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • MSwaffer
    replied to get method
    in .NET
    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.
    See more | Go to post

    Leave a comment:


  • 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
    ...
    See more | Go to post
No activity results to display
Show More
Working...