Extracting parts of the header

Last post 12-16-2003 4:07 PM by para7. 1 replies.

Sort Posts:

  • Extracting parts of the header

    12-09-2003, 12:15 PM
    • Participant
      1,925 point Participant
    • para7
    • Member since 06-05-2003, 1:55 AM
    • Denmark
    • Posts 385
    I am currently trying to modify my Books Section a bit, so that it is functioning as an overall Products Section, since I find that it is the section that is most suitable for presenting Products (and books).

    I know it is not the right way doing it, but I need a Section type to present Products, and a posibility to click a link to order.
    I have found that I can extract the ID part of the header with VBscript and just open a mail window containing the ID for the things to order.

    Dim orderNo as string
    orderNo = Replace(Right(Request.ServerVariables("PATH_INFO"),Instr(StrReverse(Request.ServerVariables("PATH_INFO")),"/")-1),".aspx","")

    (orderNo returns the number 377 from e.g. Products/377.aspx)

    But maybe someone knows a better way to make the Books Section more friendly for ordering.
    Jørgen A.J.

  • Re: Extracting parts of the header

    12-16-2003, 4:07 PM
    • Participant
      1,925 point Participant
    • para7
    • Member since 06-05-2003, 1:55 AM
    • Denmark
    • Posts 385
    I found a temporary solution for making my Books Section a Products Section:
    http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=418518
    Jørgen A.J.

Page 1 of 1 (2 items)