Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  FriendlyUrl and Form Action Tag
Previous Previous
 
Next Next
New Post 12/31/2005 10:39 PM
User is offline Nick S
2 posts
10th Ranked


FriendlyUrl and form Action Tag 

Hi,

I've got about how some FriendlyUrl stuff works.  I've spent hours trying to figure it out, but got nowhere.  How is it that the action attribute of the form does not have TabId querystring?  So, for example if I go to http://www.dotnetnuke.com/tabid/1/Default.aspx?test=2 it would get rewritten to www.dotnetnuke.com/Default.aspx?TabId=1&test=2 by the FriendlyUrlModule, before the request hits the actual Default.aspx page.  You would then think that in the action tag of the form you would get "Default.aspx?TabId=1&test=2", but in fact you get Default.aspx?test=2.  How is this achieved?  How is the TabId=1 stripped out.  I suspect it's somewhere in the friendlyUrl fixup for the outgoing page, but i couldn't find where?  Can anyone help?

Thanks

 
New Post 1/2/2006 6:02 AM
User is offline Vicenç Masanas
1396 posts
www.disgrafic.com
6th Ranked








Re: FriendlyUrl and form Action Tag 
You're correct in the fact that this is a work on the FriendlyURL engine, this has nothing to do with the form action tag.  When dnn processes the incoming request the url is rewritten to point to the correct page passing the right params.

Take a look at the FriendlyURL doc that comes with the distribution, this will give you a better understanding of how it works.

Disgrafic.com
 
New Post 1/13/2006 2:38 PM
User is offline Nick S
2 posts
10th Ranked


Re: FriendlyUrl and form Action Tag 

Hi,

Me again.  I've now worked out what the problem was.  In fact it had everything to do with the form Action Tag.  What is done in DNN is that an ActionLessform custom control is implemented.  This overrides the render method of the Httpform and fixes up the action.  This is not documented in the document on FriendlyUrls, but is documented on MSDN in an article called Url Rewriting that DNN basically uses as the base for how FriendlyUrls work.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  FriendlyUrl and Form Action Tag
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net
WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP