the more I think about it the more I believe it's possible to write a custom route that would consume these URL definitions:
{var1}/{var2}/{var3}
Const/{var1}/{var2}
Const1/{var1}/Const2/{var2}
{var1}/{var2}/Const
as well as having at most one greedy parameter on any position within any of the upper URLs like
{*var1}/{var2}/{var3}
{v...
I've been having problems with a third-party application that uses UDP broadcasts to configure some propitiatory networked hardware and I think I've worked out what's going on. It seems that all outgoing broadcast packets are being lost because of bunch of entries in my routing table that route broadcast packets to a non-existent link-lo...
Hello!
I'm using ASP.NET MVC to develop a website and I need to customize my URL to use a name that is not the name of my Controller.
I want to use this Class/Method names:
public class CompanyController:Controller {
public ActionResult About() {
return View();
}
}
But I want to use the URL http://www.mysite.com/the-c...
Hi folks,
this time it's about Ruby On Rails.
I have a form in the view "progress.html.erb" and an action called "progress". When the form is sent, the action "progress" is called again.
This must be like that, because I'm asking the user several questions by an automatic system.
Then, when the questioning is finished and the user is ...
Hi, I've been playing around with creating an e-commerce site with Codeigniter, and am trying to do the following:
Have category names as the first parameter, e.g.
/tshirts
/shoes
following each of these, is either a filter (on the category), or the product (with category in URL for SEO)
/tshirts/filter/price/0-20
/tshirts/pink-wi...
I am looking to generate some CSS files dynamically in my Content folder.
At the moment, this folder has an ignore route (routes.IgnoreRoute("Content/{*wildcard}");) and, I'd like that to remain, as I don't need/want most of my content folders to go into the MVC request lifecycle.
Example:
routes.MapRoute(
"DynamicCSS",
"Content/...
I have mp3 catalog portal and I want to customize my urls.
I used url for downloading songs - /download/song/:song_id
But now I want url to look like /download/song:song_id - symfony doesn't recognize this pattern, :song_id parameter substitutes in url as is, so I get /download/song:song_id instead of f.e. /download/song14
...
I have a route which I'm using constraints to check the host and then a route which is essentially the same but without the host restriction (these are really namespaces but to make things simple this example will do):
match "/(:page_key)" => "namespace_one/pages#show", :constraints => proc {|env| env['SERVER_NAME'] == 'test.mysite.loc...
I have List objects which are shown like this:
www.mysite.com/lists/123
Where 123 is the id of the list. What I would like to do is add the title of the list the url so it it more informative(for google or whatever). So I would like it to look like:
www.mysite.com/lists/123/title-of-list-number-123
How do you go about adding to a u...
I have a problem with the wildcard route that I wonder if anyone can help on, I have a route as below
routes.MapRoute(
"ReportRoute",
"Report/{*path}",
new { controller = "Home", action = "Index"})
.RouteHandler = new ReportPathRouteHandler();
where the routehandler splits the path int...
I am trying to cut over an existing WebForms app to use Routing, and want to do it in phases. However, I am running into some issues with a particular route:
//I want to catch existing calls to .aspx pages, but force them through
// a route, so I can eventually drop the .aspx extension
new Route("{page}.aspx", new MyCustomRoute());
...
I find the MvcSiteMapProvider very interesting. But will I somehow be able to generate, autoload (or something in that category) the route (declaration) for my website?
...
I have two models -- User and Entry -- that are related through a has_many relationship (a User has many Entries). I'm using RESTful routing, and have the following in my routes.rb file:
map.resource :user, :controller => "users" do |user|
user.resources :entries
end
This seems to work, but in my partial _form file, when I do this:...
I'm not really sure if there is a single problem here or I have approached this in the wrong way, but any suggestions would be greatly appreciated!
In the application when a user signs up they get privileges and their page gets set up, they can then invite colleagues by email.
The email has an activation code tagged on the end. An exam...
One of the features of ASP.NET 4.0 is Route Expression builder which allows you to set up hyperlinks like this:
<asp:HyperLink
runat="server"
NavigateUrl="<%$ RouteUrl:RouteName=productos,categoria=Cereales,id=2 %>" >Productos</asp:HyperLink>
Now I'm wondering if I can use this sort of syntax inside a ListView Control, I kn...
How can I make a url like "/united-states/cities/new-york" intead of "/countries/1/cities/1" (I dont't want the word "countries" in the url)
what do I have to write in route.rb to use:
site.com/united-states/cities/ (to see united states' cities list)
site.com/united-states/cities/new-york/ (to see new york details)
and how use these...
Is it possible to load routes from the database with ASP.NET ?
For each r as SomeRouteObject in RouteDataTable
routes.MapRoute( _
r.Name, _
r.RouteUri, _
r.RouteValues, _ //??
r.Constraints _ //??
)
Next
How should I store the routevalues / constraints? I understand that there are several 'defa...
There are several similar questions to this on stack overflow, but I couldn't find one that actually answered my question.
I am writing an asp.net mvc application which will need to have a front end sign up peice (home page, sign up page, account management, etc) and then allow each account to point their own domain to us and have it go...
Using ASP.NET MVC, I need to configure my URLs like this:
www.foo.com/company : render View Company
www.foo.com/company/about : render View Company
www.foo.com/company/about/mission : render View Mission
If "company" is my controller and "about" is my action, what should be "mission"?
For every "folder" (company, about and mission) ...
I'm trying to capture packets from two devices on my network.
I have tcpdump installed on my dd-wrt router and working correctly.
However, the only packets I capture are broadcast packets when using a tcpdump statement that states only those two devices
./tcpdump -w /tmp/capture.pcap dst 192.168.3.105 or src 192.168.3.105 or dst 192....