1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how do I remove ssi, htm from a string variable

Discussion in 'C#' started by t7584, May 7, 2006.

  1. #1
    how do I remove ssi, htm from a string variable
    SEMrush
     
    t7584, May 7, 2006 IP
    SEMrush
  2. vectorgraphx

    vectorgraphx Guest

    Messages:
    545
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    more info please?
     
    vectorgraphx, May 8, 2006 IP
  3. doronty37

    doronty37 Active Member

    Messages:
    130
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    <%

    strUrl = "https://www.mydomain.com/mypage.htm"

    strUrl = Replace(strUrl, "https://", "")
    strUrl = Replace(strUrl, ".htm","")
    strUrl = Replace(strUrl, ".html","")

    Response.Write strUrl
    %>

    Output: www.mydomain.com/mypage

    What you want is that?
     
    doronty37, May 8, 2006 IP