home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Need help here with vb net 2003

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1545
Discussions: 200,985, Posts: 2,379,852, Members: 246,348
Old June 29th, 2006, 12:18 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Jun 2006
Posts: 1
Need help here with vb net 2003

I suck at programming and i have a few problems here. Hope some kind soul can save me

Firrst, i have a textbox to allow users to input related hyperlinks. Therefore, users are to enter the links lik this in the textbox.
http://www.yahoo.com,http://www.asp.net

However, when some1 clicks on the link, it appears http://www.yahoo.com,http://www.asp.net in the address bar. Can some1 teach me how to seperate this 2 sites so that it appears http://www.yahoo.com or just http://www.asp.net in the address bar?? How to seperate them?? The text box is a single line text box.

Secondly, the websites have to input with this format http://www.yahoo.com. can anyone tell me how to detect whether the user has input the website with the http:// in front or else prompt an error message?

I really am not so good at coding. If some1 can help me here, I'll b really thankful!
87jerome is offline   Reply With Quote
Old June 29th, 2006, 01:07 AM     #2 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,334
You should be able to use the "split" function of the String class. In this case your delimeter is the comma character, I think VB.NET does characters like "a"c rather than 'a' (yes that "c" is supposed to be there -- its pretty retarded)

Something like
Code:
dim links() as String = TextBox1.text.split(","c)

for each s as String In links
         If s.subString(0,7) != "http://" Then
                  MessageBox.show("Link: "+s+" is not properly formatted.")
         End If
Next

Last edited by VHockey86 : June 29th, 2006 at 01:09 AM.
VHockey86 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
error in visual studio 2003 asp.net only1reddog Webmastering and Programming 0 January 31st, 2006 02:47 PM
Microsoft Visual Basic .NET 2003 $Free RobRich IMO Community 6 May 5th, 2004 02:34 PM
ASP.NET controls in Office 2003 style? gicio Webmastering and Programming 0 November 9th, 2003 05:16 PM
An error with Microsoft Visual BASIC .Net 2003 Argon88 Technical Support 2 October 31st, 2003 11:01 PM
VB .NET 2003 question FalcomPSX Webmastering and Programming 15 October 6th, 2003 03:55 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3063)
Charges against non-tippers dropped.. (20)
Health Care Rationing (11)
Delete an OS (16)
Nvidia GTX 260 problem (9)
Laptop with wireless problem. (12)
windows vista security holes (19)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (7)
windows 7 problem (7)
Internet Lost (5)
[F@H SPAM 11/16/09] ! 1/2 months to.. (39)
Recent Discussions
[F@H SPAM 11/16/09] ! 1/2 months to r.. (39)
Share an Easy Way to Convert DVD and .. (0)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
Desktop Calendar Application (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Nvidia GTX 260 problem (9)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
Point and Shoot Camera Suggestions. (7)
Delete an OS (16)
cell phone won't work (0)
Is the PSU I received dead? (15)
Can't open Word (12)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)


All times are GMT -4. The time now is 03:23 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28