Forum  Commercial Foru...  Commercial Foru...  Loginform Parameters
Previous Previous
 
Next Next
New Post 11/22/2011 12:03 PM
  jayhobbs
1674 posts
1st Level Poster




Loginform Parameters 
Modified By jayhobbs  on 11/22/2011 5:29:23 PM)

Hi Guys,

What is the best way to send parameters to a loginform?

The parameters will be sent from an email hyperlink

Cheers

Jay

 

 
New Post 11/22/2011 2:11 PM
  palli
14304 posts
1st Level Poster




Re: Loginform Parameters 

Hi Jay,

You actually don't address the loginform directly, but your request will be interecepted by the loginform, if you have the authentication set up correctly. Inside the login form, in the Load event, you can get to all the query parameters via the Arguments collection.

Remember that the link will have to be a post.mainform.wgx?par1=x&par2=y etc., where "mainform" is your mainform in this case.

This C# code in the Loginform's load event, will dump all the query parameters:

 

            for (int i = 0; i < Context.Arguments.Count; i++)
            {
                textBox1.Text += Context.Arguments.GetKey(i).ToString() 
                    + " = " 
                    + Context.Arguments.Get(i).ToString() + Environment.NewLine;
            }

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 11/22/2011 2:33 PM
  jayhobbs
1674 posts
1st Level Poster




Re: Loginform Parameters 

Hi Palli,

I managed to get the loginform to receive parameters OK

Link.Open("http://msi/test1/Post.MainForm.ashx", objLinkParameters) works OK from another PC

my problem now is the cyberlink format in the email

Cheers

Jay

 

 
New Post 11/22/2011 2:55 PM
  palli
14304 posts
1st Level Poster




Re: Loginform Parameters 

Hi Jay,

If you are talking about a generic Html email link, the format would be something like this:

 

<a href="http://msi/test1/Post.MainForm.ashx?Firstname=Pall&Lastname=Bjornsson">Invoke by click</a>

Is this what you are asking ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 11/22/2011 3:14 PM
  jayhobbs
1674 posts
1st Level Poster




Re: Loginform Parameters 

Hi Palli,

Yes thats what I was looking for

Thanks a lot

Jay

 

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Loginform Parameters
.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