HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 1.1ASP.Net 1.1FriendlyUrl and Form Action TagFriendlyUrl and Form Action Tag
Previous
 
Next
New Post
12/31/2005 10:39 PM
 

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
 
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
 

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
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 1.1ASP.Net 1.1FriendlyUrl and Form Action TagFriendlyUrl 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.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.