Forum  General Visual ...  Let's Chat Abou...  URL Re-writing
Previous Previous
 
Next Next
New Post 2/12/2009 5:30 AM
Informative
  dleland
628 posts
www.kadant.com
1st Level Poster


URL Re-writing 
I'm looking for anyone who would be willing to help share the cost of getting "URL Re-writing" put into VWG. Gizmox has indicated this would take 9 developer hours (@ $150/hour) and would be added to version 6.4, with an ETA of around the beginning of May. If you are, please contact me privately (david.leland at kadant dot com).

In case you are wondering what I mean by "URL re-writing", following are my requirements/definition:

"We have a VWG application that is accessed via a standard URL (without arguments). However, if the user passes in parameters (typically by clicking on a link in an e-mail), the application will determine what those arguments are (this is done in the Application.ThreadRefresh event) and will then direct the user to a different section of the application, based on those arguments. What I would like to be able to do is to strip off those arguments in the Application.ThreadRefresh event (after having captured them) so that the URL line in the users web browser simply has the standard URL without arguments. This "stripping off" is what I refer to as URL re-writing. Obviously, we would NOT want the Application.ThreadRefresh event to be fired either when we re-write the URL."

Dave
 
New Post 2/24/2009 1:19 PM
  palli
14304 posts
1st Level Poster




Re: URL Re-writing 

Hi Dave,

Just FYI, then have you taken a look at what IIS7 is now offering in URL rewriting. See here.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/27/2009 4:42 AM
  happyfirst
242 posts
4th Level Poster




Re: URL Re-writing 

I also needed this requirement and got a similar reponse to you.  In the end, like so many other things, I just found a work around. I mostly got url rewriting working in webgui with an HttpModule but then I still had one issue left that I finally gave up and just made that part of my app not using url rewriting.

It doesn't sound like you need true url rewriting like I needed. Instead you just want to remove the url parameters from a link in an email? Couldn't you just have that link point to an aspx page that strips the args, puts them into the session, and then redirects to the webgui page with no parameters?

 
New Post 2/27/2009 9:35 AM
  rdhatch
635 posts
1st Level Poster




Re: URL Re-writing 

Hi Happy -

Excellent to hear about your HttpModule!  Could you please post this as a code-snippet... or paste the Module into this page here?  To help advance the VWG knowledge-base, we need to start sharing all of our solutions with eachother .

I would certainly appreciate this, as I'd like to know how you accomplished this.  This is a requirement for myself, as well.  Much thanks!

Ryan


Ryan D. Hatch, VWG MVP
GeniusCode.net | VWG Community Frameworks | VWG Wiki
 
New Post 2/27/2009 10:20 AM
  happyfirst
242 posts
4th Level Poster




Re: URL Re-writing 

I never got it fully working. I did get it to the point that the form would load into the browser. But it still didn't completely work. I don't remember what the issues were since this was so long ago.  I had an HttpModule with a custom stream class just for VWG that I would set as the response filter that would look for the embedded urls and resources and fix them up. I can't easily post the HttpModule since it has so much other code for the aspx part of my app. The VWG stream code also contains custom code specific to my project regarding the virtual part of the path. So what I did get working wasn't generic enough to just apply to any project.

In the end, my workaround was what I said above. I now go through an intermediate aspx page that knows how to figure out the virtual part of the url and then I just set that as session parameters and then I launch my VWG form at it's physical url.

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Let's Chat Abou...  URL Re-writing
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS