protected void CreateAuctionButton_Click(object sender, EventArgs e) { if (Page.IsValid) { string auctionTitle = AuctionTitleTextBox.Text.Trim(); Auction auction = Auctions.CreateAuction(auctionTitle); var routeParameters = new RouteValueDictionary { { "auction_id", auction.AuctionID.ToString() } }; Response.Redirect(GetRouteUrl("EditAuctionRoute", routeParameters)); } }