how can i send variables to url?

19 views
Skip to first unread message

gardo

unread,
May 21, 2012, 1:25:14 AM5/21/12
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hello everyone:

Im working with vb.net 2008 and i would like to know how can i send
variables to a URL using the library System.Net....
if there's someone that can help me please or show me a example.

Thanks for your time.


Manuel Lazo.

Stephen Russell

unread,
May 21, 2012, 11:30:05 AM5/21/12
to dotnetde...@googlegroups.com
On Mon, May 21, 2012 at 12:25 AM, gardo <gard...@gmail.com> wrote:
> Hello everyone:
>
> Im working with vb.net 2008 and i would like to know  how can i send
> variables to a URL using the library System.Net....
> if there's someone that can help me please or show me a example.
>
---------------------

Response.Redirect ("my.aspx?var1=HI&var2=HELLO");

Or you could generate the string for as many as you need and put that in.

String myNewURL = "my.aspx?var1=HI&var2=HELLO"

Response.Redirect (myNewURL);


--
Stephen Russell
Sr. Analyst
Ring Container Technology
Oakland TN

901.246-0159 cell

Goldie

unread,
May 22, 2012, 12:21:59 AM5/22/12
to dotnetde...@googlegroups.com
@Lazo,
  You really have 3 options, one is passing through QueryStrings (as supplied by srussell705), use the state of the webpage/site (more advanced topic, can get you into alot of trouble), or my personal favorite if the information is to be passed internally (within the same web-app) is to setup a library and use it at the Global side of the web-app.

Natheer Saeed

unread,
May 21, 2012, 10:19:16 PM5/21/12
to dotnetde...@googlegroups.com
This called Query String:
http://www.codeproject.com/Articles/5876/Passing-variables-between-pages-using-QueryString
http://msdn.microsoft.com/en-us/library/ms524784%28v=vs.90%29.aspx
> --
> You received this message because you are subscribed to the Google
> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
> Web Services,.NET Remoting" group.
> To post to this group, send email to dotnetde...@googlegroups.com
> To unsubscribe from this group, send email to
> dotnetdevelopm...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
> or visit the group website at http://megasolutions.net

Praneet Rastogi

unread,
May 23, 2012, 3:28:00 AM5/23/12
to dotnetde...@googlegroups.com
Simply use QueryString as its the best and easiest available option that suits your needs. Also incorporate the feature of encoding if you want to add security to the variable values. :)

--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetde...@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopm...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net



--
Regards,
Praneet Rastogi

Stephen Russell

unread,
May 25, 2012, 1:03:02 PM5/25/12
to dotnetde...@googlegroups.com
On Wed, May 23, 2012 at 2:28 AM, Praneet Rastogi
<praneet...@gmail.com> wrote:
> Simply use QueryString as its the best and easiest available option that
> suits your needs. Also incorporate the feature of encoding if you want to
> add security to the variable values. :)
----------------

I believe that he is on a WinForm and needs to call a browser up as well.

Stephen

Manuel Lazo

unread,
May 26, 2012, 4:28:23 PM5/26/12
to dotnetde...@googlegroups.com
hello to all, thanks for your help but Mr. Stephen Russell Has the reason.

I want to call a browser and send variables into URL of the page and if is posible return values.

I will try to use with your suggests and some question I will say u.


thanks 4 your time :)



2012/5/25 Stephen Russell <sruss...@gmail.com>



--
Manuel Lazo.
Reply all
Reply to author
Forward
0 new messages