Displaying Html code within a VBscript/VB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nesster13@yahoo.com

    Displaying Html code within a VBscript/VB

    Dear All,

    I am a new VB programmer and dont know very much about it so please
    bare with me. Here is the situation. My professor gave us an e-commerce
    website to work on but the problem is that he does all the Html and
    code within one file. For example normally we create an ASP.net
    application we will have the choice of doing the design in the design
    view and the code in the code view. This was not the case, he did both
    in the same file and save it as .aspx. The top part of the file will
    have something like
    <script language="vb" runat="server">
    ....His code
    </script>
    ----Then Html tags

    Now our group applicate is taking care of authenticate the use and if
    he is authenticated we will display a different price for his. For
    example: $5.50 is the normal price, and $4.00 is the discounted price
    if he is an authenticated user.

    So on his default.aspx he has the normal price display. Now I would
    like to have a short script within his page that will check the user
    credential and if he is in the "WholeSale" role then the discounted
    price will be shown. Our group application will do all the
    authentication in the background. What I need not is the syntax to
    display the discounted price. Does anybody know how to do this? Thanks
    in advance.

  • Mike Brind

    #2
    Re: Displaying Html code within a VBscript/VB


    nesster13@yahoo .com wrote:[color=blue]
    > Dear All,
    >
    > I am a new VB programmer and dont know very much about it so please
    > bare with me. Here is the situation. My professor gave us an e-commerce
    > website to work on but the problem is that he does all the Html and
    > code within one file. For example normally we create an ASP.net
    > application we will have the choice of doing the design in the design
    > view and the code in the code view. This was not the case, he did both
    > in the same file and save it as .aspx. The top part of the file will
    > have something like
    > <script language="vb" runat="server">
    > ...His code
    > </script>
    > ----Then Html tags
    >
    > Now our group applicate is taking care of authenticate the use and if
    > he is authenticated we will display a different price for his. For
    > example: $5.50 is the normal price, and $4.00 is the discounted price
    > if he is an authenticated user.
    >
    > So on his default.aspx he has the normal price display. Now I would
    > like to have a short script within his page that will check the user
    > credential and if he is in the "WholeSale" role then the discounted
    > price will be shown. Our group application will do all the
    > authentication in the background. What I need not is the syntax to
    > display the discounted price. Does anybody know how to do this? Thanks
    > in advance.[/color]

    This newsgroup covers classic asp. DotNet is a different technology.
    Try microsoft.publi c.dotnet.framew ork.aspnet.

    --
    Mike Brind

    Comment

    Working...