my url is working correctly as i can step into the controls correct method but..how am I to read the state name from the url into the view?
My url: http://localhost:10860/Listings/Arizona/page1
My view: <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/NestedSiteMaster.master" Inherits="System.Web.Mvc.ViewPage>" %>
<h2>Test BY STATE</h2>
<%
LOTW.Models.ListingRepository dr = new LOTW.Models.ListingRepository();
ListViewListings.DataSource = dr.GetByStateName(???? I can hard code "Arizona" and this works???????); // how do i grab the 'Arizona' from the url? Reqquest.Querystring doesn't work?
ListViewListings.DataBind();
%>
<%--Define the table headers to work with the tablesorter--%>
<asp:ListView runat="server" ID="ListViewListings">
<LayoutTemplate>
<table id="ListViewListings" class="tablesorter">
<thead>
<tr>.....