Error with BaseHttpHandler.cs

2009-02-09 Thread eyal
]], template items \\list.vm Line 81 Column 41 threw an exception} Any idea why this is happening? Thank you Eyal The error occurs exactly here Code: BaseHttpHandler.cs public virtual void Process(HttpContext context) { ... catch(Exception ex) { ... {throw new

About URL Routing

2009-02-10 Thread eyal
here? Code: $Url.Link('Product Name', %{controller='product', action='view', params={id=15, name='ProductName'}}) Thanks Eyal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post

Re: About URL Routing

2009-02-10 Thread eyal
. Process(HttpContext context): ex = {Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.} Any idea why? thanks Eyal On Feb 10, 3:06 pm, Jimmy Shimizu jimmy.shim...@gmail.com wrote: the UrlHelper will be able to generate urls if you have

Re: About URL Routing

2009-02-10 Thread eyal
in $Products) a href=/products/searchresult.ashx?productId=$Product.Id $Html.HtmlEncode($Product.Name)/a #end On Feb 10, 4:43 pm, eyal ebarda...@gmail.com wrote: I looked into your suggestions and that is what I decided to do: #foreach($Product in $Products)    li$Url.Link($Product.Name

Re: About URL Routing

2009-02-10 Thread eyal
/myproduct/11/searchresult.ashx?productId=11 However I want the url to appear as such .../specials/myproduct/11/ How can I do this? thanks eyal On Feb 10, 4:43 pm, eyal ebarda...@gmail.com wrote: I looked into your suggestions and that is what I decided to do: #foreach($Product in $Products

Convert String to Url Format

2009-02-11 Thread eyal
to accommodate a proper url. Is there a function that is already written that I can use? thanks eyal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle

hyperlink Wrap around

2009-02-11 Thread eyal
Hi All, I am using $Url.For( )and $Url.Link(). How can I use them to wrap around images and divs. In pure html I can do this very easily using the closing /a tag: a href=... img name=... src=... / /a thanks eyal --~--~-~--~~~---~--~~ You received this message

Re: Convert String to Url Format

2009-02-11 Thread eyal
(-+).Replace(cleanedUrl, -) to avoid double '-' characters On Wed, Feb 11, 2009 at 6:38 PM, eyal ebarda...@gmail.com wrote: Hi All, I need to convert a string into url compatible format. For example, Product cost $24.00 higher/lower.    - original string product-cost-24-00-higher-lower

WizardStepPage Issue with Reset and IsPreConditionSatisfied funcs

2009-02-11 Thread eyal
not set to an instance of an object. Does anyone know what can I use to replace them? I tried the following but it didnt work: changed protected override void Reset() {} into public override void Reset() {} thanks eyal --~--~-~--~~~---~--~~ You received

Re: Convert String to Url Format

2009-02-11 Thread eyal
Hi Alex, RegexReplace is not recognized to be a valid method. Am I missing a lib ref? (Regex is recognized) thanks eyal On Feb 11, 10:55 am, Alex Henderson bitterco...@gmail.com wrote: I have an extension method I use for this, basically the same as Kens...     public static string Slugify

Re: Convert String to Url Format

2009-02-11 Thread eyal
text.ToLowerInvariant().RegexReplace([^a-z0-9]+, -).RegexReplace(-+$, ).RegexReplace(^-+$, );     } On Thu, Feb 12, 2009 at 5:38 AM, eyal ebarda...@gmail.com wrote: Hi All, I need to convert a string into url compatible format. For example, Product cost $24.00 higher/lower.    - original string product

Lost images after Routing

2009-02-11 Thread eyal
=../container/images/product_images/thumb$image.FileId border=0/ Thanks Eyal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle-project-users

Re: hyperlink Wrap around

2009-02-11 Thread eyal
Hi Victor, this example is not working. the html generated is: a href=$Url.For(%{controller='product', action='pageName', params= {prodId=199 On Feb 11, 10:23 am, Victor Kornov wee...@gmail.com wrote: a href=Url.For( )  img name=... src=... / /a

Re: hyperlink Wrap around

2009-02-11 Thread eyal
hi victor, thanks for the reply: this is what i came up with... and this works #set ($myUrl = $Url.For(%{controller='...})) a href='$myUrl' eyal On Feb 11, 12:42 pm, Victor Kornov wee...@gmail.com wrote: You are using NVelocity viewengine, right? I've not used it can't

Re: Is this possible with Routing

2009-02-11 Thread eyal
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

Routing Pattern Rules Issue

2009-02-11 Thread eyal
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

Handle Errors with Url Routing

2009-02-11 Thread eyal
mysite.com/productName/d- erroneous url mysite.com/productName/ - erroneous url Normally, I trap and handle such errors in a Controller. But now that I'm using routing, such errors for some reason dont even reach the controller. thanks eyal

Re: Handle Errors with Url Routing

2009-02-12 Thread eyal
are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable Here is my class declaration: public static class RoutingRules { public static void Register(IRoutingRuleContainer rules) { } } thanks eyal

Re: Routing Pattern Rules Issue

2009-02-12 Thread eyal
Perfect. Works like a charm Thanks Eyal On Feb 11, 11:06 pm, Ken Egozi egoz...@gmail.com wrote: both rules are using the same pattern: SOME-STRING / SOME- STRING / SOME- INTEGER so the engine will match the first rule. you need to differentiate the two. say: /search/productName

Re: Lost images after Routing

2009-02-12 Thread eyal
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

Combine pagination with url routing

2009-02-12 Thread eyal
= $CategoryName})) button type=button onclick=location.href='$pagedUrl'; $text/button #end #end Thanks eyal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post

Re: Lost images after Routing

2009-02-16 Thread eyal
You are right it does work. I also tried it with $siteRoot which works too. Thank you eyal On Feb 15, 9:17 pm, jsimons johnsimons...@yahoo.com.au wrote: This should also work: src=/container/images/product_images/thumb $image.FileId On Feb 15, 11:20 am, eyal ebarda...@gmail.com wrote

Re: Rewrite url with Paginated pages

2009-02-16 Thread eyal
().Is(searchresult)); On Feb 14, 10:19 pm, eyal ebarda...@gmail.com wrote: Hi All, I am trying to rewrite urls using  diggystylepagination but without any success. Any suggestions? The following code results with this url: .../products/searchresult.ashx?page=2 However Im trying to get

Re: Handle Errors with Url Routing

2009-02-16 Thread eyal
? thanks eyal On Feb 12, 8:33 am, eyal ebarda...@gmail.com wrote: That is exactly what I'm trying to get the RoutingRule class to do but without any success. I tried to use RedirectToAction(404)  or RedirectToAction (generalerror)  using Try Catch. I am getting the following error: The resource

Re: RenderMailMessage obsolete method replacement on trunk

2009-02-23 Thread eyal
? Thanks Eyal On Feb 6, 5:05 am, Patrick Steele patrick.ste...@gmail.com wrote: I just looked at some of my code using an early Dec/2008 version of MonoRail and my mail code is: System.Collections.Hashtable data = new System.Collections.Hashtable(); data.Add(data1, data1); data.Add(data2

Re: RenderMailMessage obsolete method replacement on trunk

2009-02-24 Thread eyal
Thanks for the reply Ricardo The example you have still does not work for me. It crushes on DeliverMail() thanks eyal here is the stacktrace: at Castle.MonoRail.Framework.Controller.DeliverEmail(Message message) in c:\svn20\MonoRail\Castle.MonoRail.Framework \Controller.cs:line 1466

Re: RenderMailMessage obsolete method replacement on trunk

2009-02-25 Thread eyal
name) at SN.Controllers.ContactController.SendContact (Contact contactFromPage) On Feb 25, 1:27 am, Ricardo Lopes rjlo...@gmail.com wrote: If the problem is on DeliverMail then is not the same problem. Did you configure the EmailSender correctly ? 2009/2/25 eyal ebarda...@gmail.com Thanks

Re: RenderMailMessage obsolete method replacement on trunk

2009-02-25 Thread eyal
Ok resolved problem all i had to do was replace smtp.hostname with mail.hostname in my config file thanks for the direction Ricardo Eyal On Feb 25, 1:27 am, Ricardo Lopes rjlo...@gmail.com wrote: If the problem is on DeliverMail then is not the same problem. Did you configure the EmailSender

Navigation links for Pagination not working

2009-02-26 Thread eyal
thanks Eyal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this group, send email to castle

Re: Navigation links for Pagination not working

2009-02-27 Thread eyal
Hi Loic, Thanks for the reply. Your solution works perfectly. Eyal On Feb 27, 12:58 am, Loic Nageleisen loic.nagelei...@gmail.com wrote: On 27 Feb 2009, at 06:18, eyal wrote: Hi All, The updated trunk for framework 2.0 has some changes regarding pagination. Appearantly

Re: Navigation links for Pagination not working

2009-02-27 Thread eyal
I found an issue with HasLast apparently HasNextPage does not replace it. All it does is go to next page if you click on Last nav. link. Also TotalPages remains TotalItems Thanks eyal On Feb 27, 1:56 pm, eyal ebarda...@gmail.com wrote: Hi Loic, Thanks for the reply. Your solution works

echo a javascript variable in the Title tag via Nvelocity variable

2009-02-28 Thread eyal
ItemName into a nvelocity var $ItemName so I can use it in the title tag as such title $ItemName /title Thanks Eyal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group

Re: Mailing problem

2009-03-13 Thread eyal
However, I am able to use my emailing system. For example the Contact Us works on my site. So if mailbox is unavailable why can I use it otherwise? Thanks Eyal On Mar 13, 2:25 am, Ricardo Lopes rjlo...@gmail.com wrote: The problem is from your mail server: Mailbox unavailable. The server

Re: Auto Scheduling

2009-04-16 Thread eyal
, man 1 mono-service 2009/4/16 eyal ebarda...@gmail.com: Hi All, I am interested in building a controller that takes care of automated jobs on a daily bases. For example I want to send an email to an account holder based on a certain criteria. The scheduler will test for this criteria

Re: Auto Scheduling

2009-04-16 Thread eyal
Hi Colin, It seems that the Scheduled Task wizard performs its operation on windows applications. However I want the task to be performed on a remote app on my web site. Can I still use this wizard? Not sure how Thanks Eyal On Apr 16, 11:12 am, Colin Ramsay colinram...@gmail.com wrote: If you

Re: Auto Scheduling

2009-04-19 Thread eyal
, most likely. Use a windows service. On unix, man 1 mono-service 2009/4/16 eyal ebarda...@gmail.com: Hi All, I am interested in building a controller that takes care of automated jobs on a daily bases. For example I want to send an email to an account holder based on a certain

Re: Routing with multiple domain names

2009-04-20 Thread eyal
Hi Jimmy, the domains point to the same IP and bound to the same folder dir of the site. they all work except when I use the category links mentioned previously. Also I tried using a non routed url which worked fine for all domains. Any idea what else could be the problem Thanks Eyal On Apr

Re: Routing with multiple domain names

2009-04-21 Thread eyal
. 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

Re: Routing with multiple domain names

2009-04-21 Thread eyal
Problem solved. My provider had to include a wild card settings to allow multi domains for the same dir. On Apr 21, 8:40 am, eyal ebarda...@gmail.com wrote: They are all bound to the same path as well as the same IP address. So you can say that they are bound to the same web site. On Apr 21