Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

get host address of the page

Posted on 2004-11-26
3
Medium Priority
?
210 Views
Last Modified: 2008-02-01
0
Comment
Question by:duclee
  • 3
3 Comments
 
LVL 13

Expert Comment

by:davidlars99
ID: 12687835

Dim strURL As String= _
                "http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/askQuestion.jsp"
Dim strURL2 As String=Left(str, (Len(str)-15))

lblstr.Text=strURL2
0
 
LVL 13

Expert Comment

by:davidlars99
ID: 12687863
or to do it dynamicaly use "LastIndexOf()" function which is available in both C# and VB.NET


Dim strURL As String= _
                "http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/askQuestion.jsp"
Dim int As Integer=str.LastIndexOf("/")
Dim strURL2 As String=Left(str, (int+1))

lblstr.Text=strURL2
0
 
LVL 13

Accepted Solution

by:
davidlars99 earned 200 total points
ID: 12687870
sorry little typo

Dim strURL2 As String=Left(strURL, (int+1))
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question