Search
 Search
GET THE HOTEST NEWS ABOUT VISUAL WEBGUI.
CREATE LINE OF BUSINESS SILVERLIGHT APPLICATIONS IN NO TIME.
EVERY THING YOU NEED TO START DEVELOPING WITH VISUAL WEBGUI.
SEE VISUAL WEBGUI SHOW CASES FROM AROUND THE WORLD.
ALL THE RESOURCES YOU NEED TO START BUILDING VISUAL WEBGUI APPLICATIONS TODAY.
SHARE AND FIND VISUAL WEBGUI RESOURCES.
TALK WITH OTHER VISUAL WEBGUI DEVELOPERS.
 

 

SAP has chosen Visual WebGui for strategic web application, Mr. Saar of SAP explains why in an interview with with Jeremy Geelan at AJAX World.

Click on the video image to watch

SAP chosen VWG for strategic web application

SearchForum Home
  Core :: SDK (Visual WebGui Silverlight)   How do I...?  How do I get pa...
 How do I get parameters from browser URL ?
 
 8/6/2008 12:41:28 PM
p.nowak2
10 posts


How do I get parameters from browser URL ?
How do I get parameters from browser URL ?

i.e. My app is available at http://mydomain.com and i want to pass some parameters with get method like below:

http://mydomain.com?myparam1=value&myparam2=otherval

What i want to achieve is to get those two params (myparam1 and myparam2) on serverside.

I tried these:

string param = this.Context.HttpContext.Request["myparam1"];
but it doesn't work, what is interesting:

this.Context.HttpContext.Request.Path returns /Route/1.76 instead of real path...

any suggestion ?
 8/6/2008 12:49:57 PM
palli
628 posts
1st


Re: How do I get parameters from browser URL ?
Straight from the VWG documentation: Text Box: string userID = (string)VWGContext.Current.Arguments["UserID"];

Does that work ?

Palli
 8/6/2008 1:04:07 PM
p.nowak2
10 posts


Re: How do I get parameters from browser URL ?
 palli wrote
Straight from the VWG documentation: Text Box: string userID = (string)VWGContext.Current.Arguments[

Does that work ?

Palli


Well,

My code is:
Label.Text = VWGContext.Current.Arguments["test"] as string;

My url is:
http://localhost:2026/MainForm.wgx?test=alamakota

and it does not work, Label.Text still empty..

One thing to know is that im doing this onto logonform, but in url there is destinationform url.
 8/6/2008 1:37:03 PM
palli
628 posts
1st


Re: How do I get parameters from browser URL ?
Yes, it could be different when accessed from a logonform.

The Gizmox guys will probably step in and explain the difference. It would be interesting to know if there is a difference.

Palli
 8/6/2008 2:14:14 PM
p.nowak2
10 posts


Re: How do I get parameters from browser URL ?
well in regular forms id does not work either, did you try it on your own if it works ?
  Core :: SDK (Visual WebGui Silverlight)   How do I...?  How do I get pa...

Visual Studop Partners

Copyright © 2005-2008 Visual WebGui®   Terms Of Use  Privacy Statement
Visual WebGui is copyright 2005-2008 by Gizmox