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
     
    t7584, May 7, 2006 IP
  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