From the course: Database Foundations: Application Development
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
URL segments
From the course: Database Foundations: Application Development
URL segments
- [Instructor] One of the neat things about an asp.net web application is that the controller classes encode useful information right into the URL segments of the page. From the Two Trees Customer Data page, click on any of the edit links. The URL in the browser will show Customers/Edit/ and then an ID number of the row that you chose. You can easily navigate to the edit page for other rows in the table simply by changing this ID number here in the address bar. Let me change it to Customers/Edit/6. I'll press enter and that takes me to the edit page for Delish Food. You can also use this method to get to other views. For instance, I'll change it to Customers/Details/3. This takes me to the Customer Detail page for Bread Express. This is great because end users can bookmark and navigate directly to a specific action for any record in the table. This also works for our filter back on the index page. Let's click the back to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.