Events not fiering on postback

Vote:
 
We're experiencing problems with postback events not firing when using friendly urls. If we cange the config to using regular urls like “default.aspx?id=1“ the events starts firing again. Is this a feature or a “bug” in the product??? If it’s a bug is there a fix for it? We’re using Epi Server 4.60 Cheers
#12690
Jun 28, 2006 10:45
Vote:
 
Hello. Is this an upgrade or a new installation ? If this is an upgrade, have you added this code in the header.ascx as said in the release notes ? /Øyvind
#14748
Jun 28, 2006 16:18
Vote:
 
Its a new install, and has been added to the header.ascx. we're btw running on .Net 2.0
#14749
Jun 29, 2006 10:59
Vote:
 
Thank you Øyvind, it solved our problem!
#14750
Aug 15, 2007 13:49
Vote:
 

I have the same problem. We have several search-pages where the user inputs what to search for and then presses a button. It works find without friendly urls, but when I turn friendly urls on the buttons doesn't perform postbacks. That is, the pages does relaod, but in the pageload the IsPostback is false and the click-event never fires.

 I have <episerver:FriendlyUrlRegistration runat="server"/> in the header.ascx.

 Any suggestions?

#20440
May 29, 2008 15:50
Vote:
 
Did you solve this problem? We're having the same problem on 4.61 with .NET 1.1.
#25013
Oct 09, 2008 14:18
Vote:
 
Markus, if you search your generated HTML-source, can you find "post.aspx"? It should be in a small script and is the output of the FURL tag.
#25040
Oct 10, 2008 9:52
Vote:
 

Is this what your refering to?

<script type='text/javascript'>document.forms[0].action='/Sok/Post.aspx';</script>

Our search page is pretty much unchanged from your templates.

 

 

#25053
Oct 10, 2008 13:31
Vote:
 

Hi

I'm having the same problem as the events are not firing up. Every single button has became virtually dead...  I'm currently using .net 2.0 and Episerver 4.61.

Has anyone found a solution for this?? 

 

#26270
Nov 28, 2008 17:06
Vote:
 
Hugo, does the postback occur at all? Make sure that you have the friendlyurlregistration control registered
#26274
Nov 29, 2008 19:02
Vote:
 

Hi Lars.

The postback is posting back to the episerver "unfriendly" url, this recieves a 301 redirect, and is then sent to the friendly url.  the post data is lost as the 301 forces a HTTP GET.

I managed to get it working without the friendly urls, which itself is also a problem.

What do you mean by having the control registered? The friendlyurl assembly is being called from a http handler declared in web.config file.

Regards

#26325
Dec 02, 2008 12:48
Vote:
 

I just experienced this event not triggering problem after turning on friendlyURLs on an old and unfamiliar 4.61.2 website.

I added  "<episerver:FriendlyUrlRegistration ID="FriendlyUrlRegistration1" runat="server"/>" between the <head> tag and it worked again :) Thanks for the old tip ;)

There was a problem with some other piece of code and the following line helped me out of a pickle. Maybe its redundent after adding the <friendlyurlregistration> but either way, if it helps someone solve a friendly url problem here it is:

HttpContext.Current.Request.Url.Query

 /John

#32761
Sep 16, 2009 16:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.