Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Redirect
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Redirect

 Post Reply Post Reply Page  <12
Author
Str8Dog View Drop Down
Senior Member
Senior Member


Joined: 18 December 2001
Location: United States
Status: Offline
Points: 2118
Post Options Post Options   Thanks (0) Thanks(0)   Quote Str8Dog Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 7:32pm
Using C# you would use a + dunno about VB.NET
[IMG"> http://www.str8dog.com/images/str8dog.gif">
I wasn't born with enough middle fingers.
Back to Top
twooly View Drop Down
Groupie
Groupie


Joined: 24 September 2003
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote twooly Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 7:47pm
The & works fine for me on my page
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 9:56pm
Originally posted by Diep-Vriezer Diep-Vriezer wrote:

Or create a custom parsing thing which looks a bit better (my opinion)

Response.Redirect("Test.aspx?" & strOne & "/" & strTwo)

/me likes doing some stuff different. Now you'll have to Split() the Request.ServerVariables("QUERY_STRING") and assing the variables back. A bit more work, but it 'looks' better.

lol - you gotta get out more

I like mart's solution, but you get my vote for geek-of-the-week



Edited by dpyers

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2004 at 2:03am

..

BTW, + and & do the same thing. I use &, but I used +. Dunno why I changed.

Gone..
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2004 at 4:31am
It depends what your doing weather to use & or plus....

Dim strSomething As Integer = 1 & 1

Will produce 11

Dim strSomething As Integer = 1 + 1

Will produce 2
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2004 at 6:45am
In some more strongly typed languages, variable1 + variable2 will also attempt to do the math. A habit of using math operands for math, and the & (AKA "and sign") for concatenation is just a way of avoiding trouble when you cross languages.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.