I've started learning (and using) Monorail a little while ago, and
recently, I've dabbled into routing. Unfortunately, the documentation
around it is kinda sparse, but I've managed to get some info from various
blog posts, most of them 2 years + old. I managed to setup the routing
pretty
Leonardo
-- Forwarded message --
From: Leonardo Lima cont...@leonardolima.com.br
Date: 2012/4/20
Subject: Castle Monorail 1.0 - IIS 7 - Routing problems
To: castle-project-users@googlegroups.com
Hi all,
I have a old application using Castle Framework 1.0, and now is needed
Did I not phrase this question correctly, or leave some necessary piece of
information out?
Anyone?
On Fri, Jun 11, 2010 at 12:01 PM, Marc marcpick...@gmail.com wrote:
I may be missing something basic here but I can not get the ARDataBind
to work with my routes.
Here is my setup.
I have a
Have you checked the FORM data to make sure the study.id is coming
through properly?
---
Patrick Steele
http://weblogs.asp.net/psteele
On Sun, Jun 13, 2010 at 7:32 AM, Marc Pickett marcpick...@gmail.com wrote:
Did I not phrase this question correctly, or leave some necessary piece of
=3myParam=xyz
I see that routing should be able to handle this. But what if the part
after the xyz can be anything? As in, I don't want to match anything
afterwards. Whatever is after xyz is what the new URL will be.
So http://www.abc.com/xyz/area/subarea/display.rails?id=1argJ=4 would be
come
Hi Brian,
Not really.
The routing engine needs as a minimum a Controller + Action specified.
Eg.
RoutingModuleEx.Engine.Add(
new PatternRoute(/myparam/controller/action)
);
Have a look at http://using.castleproject.org/display/MR/Routing+Overview
However if you are using IIS7 you may
presume to mean, IIS7.0 (I can't get ANY help/info
from them). It immediately broke our Monorail site, which had been
running fine on the old system. It seems that the routing is now
broken. I have scoured the www looking for how to get this going, and
I seem to have it working locally
So, my web host (webhost4life) recently migrated our site to a new
system, which I presume to mean, IIS7.0 (I can't get ANY help/info
from them). It immediately broke our Monorail site, which had been
running fine on the old system. It seems that the routing is now
broken. I have scoured
them). It immediately broke our Monorail site, which had been
running fine on the old system. It seems that the routing is now
broken. I have scoured the www looking for how to get this going, and
I seem to have it working locally (on my Windows 7 box) but I cannot
get it working on the WH4L
will be required, so you'll achieve exactly what your boss wants.
On Mon, Nov 9, 2009 at 2:50 PM, Jan Limpens jan.limp...@gmail.comwrote:
Hello!
for my FooController/BarAction(string val) I have this routing:
/foo/bard/val
Now my boss enters and tells me: For the val 'xyz', I want this other
routing
Hello!
for my FooController/BarAction(string val) I have this routing:
/foo/bard/val
Now my boss enters and tells me: For the val 'xyz', I want this other
routing '/my-wonderful-routing-for-xyz' and for 'abc', I want
'/this-is-a-nice-abc', the rest is nice the way it is.
And I have no good
to same method like,
photos/list map to - list() method in PhotosController
admin/photos/list map to - list() method in
PhotosController
Is there any way to map the second url to admin_list() method
using
the common routing
You could add a regular ASP.NET handler-mapping for default.aspx and in
that file make a Server.Transfer if you don't want to use the
routing-module. Just define the handler before the MonoRailHttpHandler
in your web.config.
On 2009-10-15 15:06, Daniel Hölbling wrote:
This is probably
admin/photos/list map to - list() method in
PhotosController
Is there any way to map the second url to admin_list() method
using
the common routing.
On Oct 16, 2:15 pm, Ken Egozi egoz...@gmail.com wrote:
why then did you go
admin/photos/list map to - list() method in
PhotosController
Is there any way to map the second url to admin_list() method
using
the common routing.
On Oct 16, 2:15 pm, Ken Egozi egoz...@gmail.com wrote:
why then did you go
Thanks for your reply Ken Egozi,
Here is my code look like,
public class PhotosController : SmartDispatcherController
{
[Layout(user)]
public void List()
{
-
code to list in user side
why then did you go with RoutingModuleEx.Engine.Add(adminhome,
new PatternRoute(/admin/home/index.aspx)
.DefaultForAction().Is(view)
);
??
you do not have an action named view, and you want the URLs to end with
.rails, not .aspx
try
RoutingModuleEx.Engine.Add(adminhome,
new
For admin/admin I usually embed SecurityComponent into my view
template to make it adjust itself base on the roles.
On Oct 16, 4:15 pm, Ken Egozi egoz...@gmail.com wrote:
why then did you go with RoutingModuleEx.Engine.Add(adminhome,
new PatternRoute(/admin/home/index.aspx)
Thanks c.sokun for post your suggestion,
yes it is nice.but i need seperate view template for admin and
user,
in admin case the url become admin/controller/action.i need
seperate method for admin and user in same controller.
On Oct 16, 2:38 pm, c.sokun chornso...@gmail.com wrote:
For
in PhotosController
admin/photos/list map to - list() method in
PhotosController
Is there any way to map the second url to admin_list() method
using
the common routing.
On Oct 16, 2:15 pm, Ken Egozi egoz...@gmail.com wrote:
why then did you go
can anyone help me?.please post reply
On Sep 25, 2:33 pm, suneesh t.sune...@gmail.com wrote:
Hi,
I found an issues with urlrouting.
i have used the following for adminrouting
url 1 - admin/controller/index
url 2 - controller/index
I have added 2 methods index and admin_index in the
I'm sorry, but I cannot understand you problem.
how many controllers do you have?
what are the names of the actions on the controller(s)?
Which url (in the browser) you want to map into which action?
attaching your controller's code (structure + method signatures would be
enough, you can skip
Hi,I'm facing a bit of a problem and maybe you can help me out.
I'm running a MonoRail application that has no routing configured. So I'm
using MRs standard Area/Controller/Action.aspx scheme.
(I changed the MonoRail handler to listen for .aspx requests).
Now, the problem here is that /Home
http://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspxhttp://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspx
On Thu, Oct 15, 2009 at 2:18 PM, Daniel Hölbling hoelblin...@gmail.comwrote:
Hi,I'm facing a bit of a problem
Thanks ken!
On Thu, Oct 15, 2009 at 2:58 PM, Ken Egozi egoz...@gmail.com wrote:
http://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspx
http://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspx
On Thu, Oct 15, 2009 at 2
This is probably not possible without the routing module is it?
Since I'm not using it I hoped I could get around that..
greetings Daniel
On Thu, Oct 15, 2009 at 3:03 PM, Daniel Hölbling hoelblin...@gmail.comwrote:
Thanks ken!
On Thu, Oct 15, 2009 at 2:58 PM, Ken Egozi egoz...@gmail.com
:
This is probably not possible without the routing module is it?
Since I'm not using it I hoped I could get around that..
greetings Daniel
On Thu, Oct 15, 2009 at 3:03 PM, Daniel Hölbling hoelblin...@gmail.comwrote:
Thanks ken!
On Thu, Oct 15, 2009 at 2:58 PM, Ken Egozi egoz...@gmail.com wrote
Rottem
http://blog.symbiotic-development.com
On Thu, Oct 15, 2009 at 3:06 PM, Daniel Hölbling hoelblin...@gmail.comwrote:
This is probably not possible without the routing module is it?
Since I'm not using it I hoped I could get around that..
greetings Daniel
On Thu, Oct 15, 2009 at 3:03 PM
hoelblin...@gmail.com mailto:hoelblin...@gmail.com wrote:
This is probably not possible without the routing module is it?
Since I'm not using it I hoped I could get around that..
greetings Daniel
On Thu, Oct 15, 2009 at 3:03 PM, Daniel Hölbling
Rottem
http://blog.symbiotic-development.com
On Thu, Oct 15, 2009 at 3:06 PM, Daniel Hölbling
hoelblin...@gmail.comwrote:
This is probably not possible without the routing module is it?
Since I'm not using it I hoped I could get around that..
greetings Daniel
On Thu, Oct 15, 2009 at 3:03
I, personally, don't like it at all.I like that the url (visible in the
address bar) of the site's homepage is what it is.
I also suspect that redirecting would yield SEO penalty
Rewriting (or routing) to the correct location is pretty simple in Monorail,
and even in bad old WebForms (using
Go ahead, Server.Transfer should work in place of Response.Redirect.
Ken Egozi wrote:
I, personally, don't like it at all.
I like that the url (visible in the address bar) of the site's
homepage is what it is.
I also suspect that redirecting would yield SEO penalty
Rewriting (or routing
with that since it uses a 302 redirect to the
homepage. I'd rather like to have the homepage be at /.
So I guess I'll retrofit the routing module like Ken suggested.
Thanks anyway.
greetings Daniel
On Thu, Oct 15, 2009 at 4:51 PM, Bill Barry after.fall...@gmail.com wrote:
Go ahead
to
/Home/index.aspx
Yet, I'm not totally happy with that since it uses a 302 redirect to the
homepage. I'd rather like to have the homepage be at /.
So I guess I'll retrofit the routing module like Ken suggested.
Thanks anyway.
greetings Daniel
On Thu, Oct 15, 2009 at 4:51 PM, Bill Barry
, I'm not totally happy with that since it uses a 302 redirect to the
homepage. I'd rather like to have the homepage be at /.
So I guess I'll retrofit the routing module like Ken suggested.
Thanks anyway.
greetings Daniel
On Thu, Oct 15, 2009 at 4:51 PM, Bill Barry after.fall
Recently I notice there is no improvement over the MonoRail built-in
routing engine.
Is it possible to use ASP.NET MVC routing engine with MonoRail ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Castle Project
want to run. Hence we would need to make an adapter which would
wrap a Controller/Action into an IHttpHandler.
On Tue, Oct 13, 2009 at 6:22 AM, c.sokun chornso...@gmail.com wrote:
Recently I notice there is no improvement over the MonoRail built-in
routing engine.
Is it possible to use
:
Recently I notice there is no improvement over the MonoRail built-in
routing engine.
Is it possible to use ASP.NET MVC routing engine with MonoRail ?
--
Truth,
James
--
Truth,
James
--
Ken Egozi.
http://www.kenegozi.com/blog
http://www.delver.com
http
Thanks Ken for your comments I my self opt not to use routing just yet
(with the project in hand) but as the feature become more and more
wide spread I just need to be aware and be ready :)
Cheer
On Oct 14, 3:52 am, Ken Egozi egoz...@gmail.com wrote:
ProcessRequest is not only about
Hi,
I found an issues with url routing.
i have used the following for admin routing
url 1 - admin/controller/index
url 2 - controller/index
I have added 2 methods index and admin_index in the controller
What i expected is the first url should go to controller/admin_index
and later should go
hello!
Some of my controllers have a SecureChannelFilter that 301s their actions to
their https version.
Is there a possibility to let my routing be aware of this and create
absolute links with a https:// scheme for these?
There are also actions with skipfilter...
--
Jan
Sorry Jan, not possible.
The routing uses HttpContext.RewritePath to do the http redirections
and this method doesn't allow to change the url protocol.
On Sep 11, 9:57 am, Jan Limpens jan.limp...@gmail.com wrote:
hello!
Some of my controllers have a SecureChannelFilter that 301s their actions
I'm glad you were able to work it out and that the routing wasn't completely
broken.
On Tue, Jul 21, 2009 at 6:54 AM, JakeS jakesteven...@gmail.com wrote:
And I finally got it. There was a sneaky filter applied to all
controllers (through some inheritance, not directly) that would
redirect
I just checked and RoutingModuleEx wasn't available in RC3, can you get the
subversion revision number from the file version of MR framework dll.
You could try checking out the source at that revision and debugging the
routing module.
Do you have any other castle binaries in the GAC on either
the file version of MR framework dll.
You could try checking out the source at that revision and debugging the
routing module.
Do you have any other castle binaries in the GAC on either machine?
On Mon, Jul 20, 2009 at 8:15 AM, JakeS jakesteven...@gmail.com wrote:
I've inherited a project
It looks like the pattern being used for the route is over-zealous.
Even if I call the Redeem action on the CouponController directly,
it gets munged up and will only receive Redeem as the parameter. If
I take out the routing, it works fine.
I'm confused by the interface on this. Does anyone
On Sun, Jul 19, 2009 at 6:15 PM, JakeSjakesteven...@gmail.com wrote:
The global.asax has the following defined:
RoutingModuleEx.Engine.Add(
new PatternRoute(/coupon/couponCode)
.DefaultForController().Is(coupon)
I'm not sure why it ever worked on my dev box, but I found the
problem. Of course, it was behaving exactly as it should :)
With that routing pattern, the following would occur:
# user requests http://mysite.com/coupon/1234
# reroute to http://mysite.com/coupon/Redeem.html?couponID=1234
as it should :)
With that routing pattern, the following would occur:
# user requestshttp://mysite.com/coupon/1234
# reroute tohttp://mysite.com/coupon/Redeem.html?couponID=1234
# then THAT would reroute tohttp://mysite.com/coupon/Redeem.
I fixed this up by renaming my controller to something
...@gmail.com wrote:
I'm not sure why it ever worked on my dev box, but I found the
problem. Of course, it was behaving exactly as it should :)
With that routing pattern, the following would occur:
# user requestshttp://mysite.com/coupon/1234
# reroute tohttp://mysite.com/coupon/Redeem.html
I've inherited a project using MonoRail and routing that works fine on
my dev box, but has a strange issue in production. The project
includes all the Castle binaries required, so the versions appear to
be the same on both machines -- 1.0.3.0 (old I know).
The global.asax has the following
i would use ProductController and derived from it
AdminProductController. This admin controller can override some
methods or act as a proxy. This admin contoller of course would in
admin area.
On Jun 10, 4:00 pm, James Curran james.cur...@gmail.com wrote:
On Wed, Jun 10, 2009 at 9:04 AM,
On Jun 10, 2:02 am, Ken Egozi egoz...@gmail.com wrote:
prefix routing? what's that?
snip
http://example.com/prefix/controller/action should resolve to:
Controller::prefix_action()
Thus, /admin/users/login will be resolved to Users::admin_login()
This is a quick workaround
Is there a reason you are not using controller areas for admin pages?
On Wed, Jun 10, 2009 at 6:45 PM, R. Rajesh Jeba Anbiah
ng4rrjanb...@rediffmail.com wrote:
On Jun 10, 2:02 am, Ken Egozi egoz...@gmail.com wrote:
prefix routing? what's that?
snip
http://example.com/prefix
On Wed, Jun 10, 2009 at 8:05 AM, Jonathon Rossij...@jonorossi.com wrote:
Is there a reason you are not using controller areas for admin pages?
I've yet to find a reasonable use for Areas, since areas are applied
at the controller level.
For example, Rejesh would like /admin/users/login to
Maybe there is a better example, but why would you want login under /admin
if it is not an administration area concern, rather than having 2 URLs to
the same login functionality?
On Wed, Jun 10, 2009 at 10:54 PM, James Curran james.cur...@gmail.comwrote:
On Wed, Jun 10, 2009 at 8:05 AM,
On Wed, Jun 10, 2009 at 9:04 AM, Jonathon Rossij...@jonorossi.com wrote:
Maybe there is a better example, but why would you want login under /admin
if it is not an administration area concern, rather than having 2 URLs to
the same login functionality?
Ok, better example:
Good point. Having the explicit /admin does make it more complex, I don't
usually do it like that but I understand why you may want it like that.
This could be done with routing, using a custom IRoutingRule would probably
be the easiest way, to strip the /admin and add the /admin back
, prefix routing
are quick workaround for admin pages--especially when different layout
is wanted for admin control panel.
Also, for example, this CakePHP article shows how subdomain based
admin CP can be implemented with such admin prefix
http://bakery.cakephp.org/articles/view/hosting-admin-urls
Just a quick question: is prefix routing possible in MonoRail? And,
how are you implementing admin pages?
TIA
--
?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
--~--~-~--~~~---~--~~
You received
map *.txt extensions to StaticFileHandler, they won't fire up MonoRail at
all.
On Wed, May 20, 2009 at 2:21 PM, Jimmy Shimizu jimmy.shim...@gmail.comwrote:
I'm using RoutingModuleEx, basic MonoRail routing that is mapped like this:
add name=MonoRail path=* verb=*
type
-mail about the
default views + routing + filters wasn’t responded to either and nor was the
transaction management + nhibernate integration which I mailed about…
Communication is the basis of software dev.
Regards,
Henrik
*From:* castle-project-users@googlegroups.com [mailto:
castle
Hello Jimmy,
What I did, was to modify the routing in the routing module and also add a
property IsStaticFile on the RouteMatch, so that the routing, which is
responsible for rewriting the url, checks for static files, rather than
letting MRHttpHandlerFactory do it. What MRHHF does is to check
.
Henrik Feldt wrote:
Hello Jimmy,
What I did, was to modify the routing in the routing module and also add a
property IsStaticFile on the RouteMatch, so that the routing, which is
responsible for rewriting the url, checks for static files, rather than
letting MRHttpHandlerFactory do it. What MRHHF
, Henrik Feldt hen...@haf.se wrote:
Yes, it's a part of it, but if monorail also has a hit on the url which has
a static file, you can override the static file with the routing. I moved a
lot of knowledge from the http handler to the routing module.
Currently, routingmoduleex
has a hit on the url
which has
a static file, you can override the static file with the routing. I
moved a
lot of knowledge from the http handler to the routing module.
Currently, routingmoduleex:
if (File.Exists(request.PhysicalPath
-script-mapping-and-iis-7-integrated-pipeline/
This is what I’m led to believe
For performance critical applications, Static files, public, no auth/author:
* No processing or custom MR routing needed, serve using add name=StaticFile
path=* verb=*
modules=StaticFileModule
what does the multiple domains has to do with Jimmy's problem?
On Tue, May 19, 2009 at 8:22 PM, Henrik Feldt hen...@haf.se wrote:
I rewrote the routing to work with multiple domains, but I can't put it up
because no one in charge answers my e-mails.
Regards,
Henrik
-Original Message
How do you guys solve the issue with files that are supposed to be found
directly under the siteroot when using advanced routing (meaning,
catching * with Monorail)?
I was planning on using a specific controller that servers robots.txt
and sitemaps dynamically, but when someone needs to verify
Hi all,
I'm sure this is an easy thing to do, however I am too stupid to
figure it out. Basically I have a MR application which has some
controllers that are within an area and some that are not. I have the
following routes specified:
rules.Add(new PatternRoute([controller]/[action])
().Is()
.DefaultForController().Is(Users)
.DefaultForAction().Is(Index));
This was just a wild guess from my side though :)
This is old routing-syntax, right? Since the new routing-engine uses
controller instead of [controller]
andypike wrote:
Hi all,
I'm sure
Oh, I didn't know that.
Well, do you add your area-specific rules before the non-area specific
rules?
andypike wrote:
From the spec (http://using.castleproject.org/display/MR/Routing+Spec)
I thought that [] where optional where as are required.
I've tried that but it still falls over ;o
?
andypike wrote:
From the spec (http://using.castleproject.org/display/MR/Routing+Spec)
I thought that [] where optional where as are required.
I've tried that but it still falls over ;o(
On May 11, 2:44 pm, Jimmy Shimizu jimmy.shim...@gmail.com wrote:
In which order do you add those
.
Context.UnderlyingContext.Response.Redirect(/login/index);
}
Are you doing no. 1 and not no. 2?
Also, what do you mean with subdomain? Do you mean I want the application
path to get prepended?
**
By the way; mailing list, I've been fiddling a bit with MonoRail, improving
the Routing to work with /, /default.aspx, among other things
I figured its about time I look at adding routing to my MR site, only I'm on
a shared hosting plan. Is this even possible? I'm fine with only routing
urls with .ashx at the end.
Thanks,
Josh
--~--~-~--~~~---~--~~
You received this message because you
On Wed, Apr 29, 2009 at 8:01 AM, Josh Coffman joshcoff...@gmail.com wrote:
I figured its about time I look at adding routing to my MR site, only I'm
on a shared hosting plan. Is this even possible? I'm fine with only routing
urls with .ashx at the end.
Thanks,
Josh
Should be fine. I've
On Wed, Apr 29, 2009 at 3:01 AM, Josh Coffman joshcoff...@gmail.com wrote:
I figured its about time I look at adding routing to my MR site, only I'm on
a shared hosting plan. Is this even possible? I'm fine with only routing
urls with .ashx at the end.
You will need to have the extension
Are they bound to different web-sites with the same path, or the same
web-site? Theres a difference.
Either way I'm out of ideas. I don't really know a scenario why a
routing-rule would be bypassed, maybe someone else can explain what
could be the cause of that.
eyal wrote:
Hi Jimmy
.
Either way I'm out of ideas. I don't really know a scenario why a
routing-rule would be bypassed, maybe someone else can explain what
could be the cause of that.
eyal wrote:
Hi Jimmy,
the domains point to the same IP and bound to the same folder dir of
the site. they all work except when
, 1:01 am, Jimmy Shimizu jimmy.shim...@gmail.com wrote:
Are they bound to different web-sites with the same path, or the same
web-site? Theres a difference.
Either way I'm out of ideas. I don't really know a scenario why a
routing-rule would be bypassed, maybe someone else can explain what
://secondarydomain.com/specials/searchresult.rails?categoryId=1
(if .rails is your extension)
eyal wrote:
Hi All,
I am using url routing in my web site. I also have multiple domain
names that link to the same root folder.
The main domain works fine with all the routed urls. However
to the same website?
Do a non-routed url work? eg:
http://secondarydomain.com/specials/searchresult.rails?categoryId=1
(if .rails is your extension)
eyal wrote:
Hi All,
I am using url routing in my web site. I also have multiple domain
names that link to the same root folder
Hi,
I am doing some tests on mono+linux and everything works fine for my
application (using MONO_IOMAP) except for the new routing module.
In the routing rules i define the area as empty but the monorail
handler seems to be ignoring it.
In my routes i have this:
rules.Add(new PatternRoute
:
Found the solution all I had to do is give the full path. I guess with
the routing its needed.
Old way
src=../container/images/product_images/thumb$image.FileId
New way
src=http://mysite.com/container/images/product_images/thumb
$image.FileId
On Feb 12, 12:19 pm, eyal ebarda
...@gmail.com wrote:
Hi there,
when defining routing pattern rules you can specify type of parameter
as such .Restrict(Id).ValidInteger
But what if someone tempers with the url and changes the parameter
value to a non integer. How can you handle this?
For example: mysite.com/productName/12
The default web.config customerrors should apply even if you use routing.
http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx
2009/2/16 eyal ebarda...@gmail.com
Also forgot to mention that I have a 404.vm file in the rescues
folder. If the url is tempered I understand that the message
We have the parenthisese now. With the old routing. Tried it without...no luck
On 2/12/09, Jimmy Shimizu jimmy.shim...@gmail.com wrote:
why the parentheses?
I assume your url is:
/someGroupName/images/Banner800x600.png
just skip the parentheses and it will work I believe.
On 12 feb 2009
Just no match.
I use /groupname/images/banner(100x100).png
On 2/12/09, Jimmy Shimizu jimmy.shim...@gmail.com wrote:
Well, try to explain what happens, no match? What url are you trying
etc... exceptions?
Daniel Pupek wrote:
We have the parenthisese now. With the old routing. Tried
I'm not sure if the routing is case sensitive... but you have banner
in your url and Banner in your route.
Daniel Pupek wrote:
Just no match.
I use /groupname/images/banner(100x100).png
On 2/12/09, Jimmy Shimizu jimmy.shim...@gmail.com wrote:
Well, try to explain what happens
On Feb 11, 11:07 pm, Ken Egozi egoz...@gmail.com wrote:
it won't reach the controller since the route won't match.
this should be dealt like any other 404 error
On Thu, Feb 12, 2009 at 6:52 AM, eyal ebarda...@gmail.com wrote:
Hi there,
when defining routing pattern rules you can specify
/categoryId/
and
/product/title/id/
this way, URLs with /search/STRING/INT will match the first, and
product/STRING/INT will match the latter
On Thu, Feb 12, 2009 at 4:57 AM, eyal ebarda...@gmail.com wrote:
hi all,
For some reason one routing rule replaces the other. Meaning whenever
I try
the extensions are available within fileId as such .../thumbb41cd7c4-
dfd5-470c-b524-6a48e2928e93.jpg
The image were working fine before I applied url routing
Thanks
Eyal
On Feb 12, 9:52 am, mausch mauricioschef...@gmail.com wrote:
Aren't you missing the extension?
i.e. thumb${image.FileId
Hi All,
Does anyone know how to combine url routing with pagination?
Regular Pagination:
#blockcomponent(DiggStylePagination with page=$products
renderifonlyonepage=false)
#link
button type=button
onclick=location.href='searchbypage.ashx?page=$pageIndex';$text/
button
this
bloghttp://using.castleproject.org/display/MR/Routing+Overview
My agenda is to convert the following:
.../controllerName/searchresult.ashx?categoryId=23
into
.../controllerName/categoryName
where each categoryId is associated with a Category Name
Hi All,
I recently applied url routing. However my view lost all its images.
All I see on page is the image placement with marked with red X. Any
idea of how to fix this?
this is how I pull the image to display on page:
img name=Image_$cnt alt=$Html.HtmlEncode($row.Title)
src
use this to extract image h and w
HttpPostedFile image
Bitmap sourceImage = new Bitmap(image.InputStream,
false);
int width = sourceImage.Width;
int height = sourceImage.Height;
On Feb 11, 6:20 pm, Daniel Pupek
hi all,
For some reason one routing rule replaces the other. Meaning whenever
I try to evoke MyView(id) func SearchResult(categoryId) is executed
instead. Any ideas of how to fix this?
thanks
eyal
I have the following routing rules:
rules.Add(new PatternRoute(/controller
Hi there,
when defining routing pattern rules you can specify type of parameter
as such .Restrict(Id).ValidInteger
But what if someone tempers with the url and changes the parameter
value to a non integer. How can you handle this?
For example: mysite.com/productName/12 - correct url
In order to get routing to work, you map * to Monorail, meaning all
static requests also tries to get served by monorail.
Personally I have all static material in a /static/ folder, which I
set to it's own application, with a static file handler (no monorail-
handler).
On 11 feb 2009
why the parentheses?
I assume your url is:
/someGroupName/images/Banner800x600.png
just skip the parentheses and it will work I believe.
On 12 feb 2009, at 03:20, Daniel Pupek wrote:
Ok, I have tested this and so far it doesn't seem to work but I
wanted to see if anyone had a suggestion:
1 - 100 of 136 matches
Mail list logo