This is your description.
routes.MapRoute( "StoreFind", "Store/Find/{zipCode}", new { controller = "Store", action = "Find" }, new { zipCode = (int > 10000 && int < 100000) });
routes.MapRoute( "StoreFind", "Store/Find/{zipCode}", new { controller = "Store", action = "Find" }, new { zipCode = @"^\d{5}$" } );
routes.MapRoute( "StoreFind", "Store/Find/{zipCode}", new { controller = "Store", action = "Find" }, where ( zipCode = (int > 10000 && int < 100000) ) } );
routes.MapRoute( "StoreFind", "Store/Find/{zipCode}", new { controller = "Store", action = "Find" }, where ( zipCode == @"^\d{5}$" ) } );
Routes.Remove("{resource}.axd/{*pathInfo}");
Routes.IgnoreRoute("{resource}.js/{*pathInfo}");
Routes.IgnoreRoute(routes.GetVirtualPath("*.js"));
Routes.Remove(routes.GetVirtualPath("*.js");
Create a Boolean static method that returns True when a provided value is contained within the database, and create a constraint by using the static method.
Create a regular expression constraint that uses LINQ syntax to query the database for the requested value.
Create a custom class that derives from the IRouteConstraint interface, implement the Match() method, and create a constraint by using the custom class.
Load all possible values from the database into a collection. Create a regular expression constraint that searches the collection for the value.
Web.config
DefaultController.cs
FallbackController.cs
Global.asax.cs
HelloController.World(15)
WorldController.Hello(15)
HelloWorld(15)
HelloController.WorldAction(15)
ActionFilterAttribute.OnResultExecuted()
ActionFilterAttribute.OnResultExecuting()
ActionFilterAttribute.OnActionExecuting()
ActionFilterAttribute.OnActionExecuted()
Return an "HTTP Error 501 - Not Implemented" error message.
Call the HomeController.Home() method.
Return an "HTTP Error 404 - File Not Found" error message.
Call the HomeController.Index() method.
ASP.NET automatically generates a Web form that prompts the user for an ID.
ASP.NET returns an "HTTP Error 404 - File Not Found" error message.
ASP.NET throws an exception.
ASP.NET successfully processes the Index action of the Home controller.
Return Content(DateTime.Now.ToString())
Return DateTime.Now
Return View(DateTime.Now.ToString())
Return JavaScriptResult(DateTime.Now.ToString())
Decorate both action methods with the AcceptVerbs attribute. Set the AcceptVerbs values to HttpVerbs.Get and HttpVerbs.Post.
When processing the route, examine the HttpRequest object. Route the request based on whether the request is a GET request or a POST request.
Create separate route maps, and use the HttpMethodConstraints route constraint to limit requests to different actions for GET and POST requests.
Decorate both action methods with the Authorize attribute. Set the RequestType property for the Authorize attribute to Get or Post.
model.Street) %>
Add the following method to the CompanyController class. public ActionResult Info () { return View(); }
Add the following method to the CompanyController class. public ActionResult Company_Info() { return View(); }
Right-click the Views folder, and select View from the Add submenu to create the view for the action.
Right-click inside the action method in the CompanyController class, and select Add View to create a view for the action.
ListDictionary
Stack
Hashtable
ArrayList
StringCollection
Yes
No
Yes
No
Factory
Abstract Factory
Singleton
Builder
Yes
No
Every process runs in a thread
Every thread runs in a process
A process can have multiple threads
A thread can have multiple processes
All threads run in the same process
Set viewStateEncryptionMode to Auto in web.config on both servers.
Set the machineKey in machine.config to the same value on both servers.
Change the session state mode to SQLServer on both servers and ensure both servers use the same connection string.
Override the SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium methods in the page base class to serialize the view state to a local web server file.
Quiz Review Timeline +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.