Forum  General Visual ...  How do I...?  link redirect
Previous Previous
 
Next Next
New Post 3/11/2009 3:42 AM
Resolved
  Visualizer
672 posts
1st Level Poster




link redirect 

I have an interesting case that i can't think of a solution for it, maybe someone can guide me the way to solve it.

 

A VWG application the URL keeps the same all the time, in my case http://........../BaseForm.wgx

I want to create the posibility to direct the user to a certain record in the application, for example by a link they get through a mail.

Somethink like http://.............../BaseForm.wgx&record=34

 

Is there a way to achieve this...?

 

 

 
New Post 3/11/2009 8:14 AM
  ori.cohen
4401 posts
1st Level Poster




Re: link redirect 

Hello,

To add parameters to a URL you need to add a question mark '?' after the path and then state the name of a parameter followed by an equals mark '=' followed by the parameter's value. To add additional parameters, add a '&' mark followed again by the name of the second parameter etc...
Exapmle:
http://www...   ...MainForm.wgx?Param1=Value1&Param2=Value2&Param3=Value3

To get the value of "Param1" in code, you can use:
VWGContext.Current.Arguments["Param1"].ToString()

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 3/11/2009 2:07 PM
Accepted Answer 
  palli
14313 posts
1st Level Poster




Re: link redirect 

Hi,

In addition to what Ori said, you need to add the "Post." prefix for the form name (see this thread here).

This means that if you had an address including parameters like this:

http://host.domain/app/Form1.wgx?Param1=xxx

Then you would use the following:

http://host.domain/app/Post.Form1.wgx?Param1=xxx

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 3/11/2009 11:44 PM
  Visualizer
672 posts
1st Level Poster




Re: link redirect 

 Thanks for the good explanation, i will go to try it.

 
New Post 3/12/2009 1:06 AM
  ori.cohen
4401 posts
1st Level Poster




Re: link redirect 

Hello,

Please reply to tell us if all went well for you and if you need further assistance on the subject.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  link redirect
.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