For Programmers: Free Programming Magazines  


Home > Archive > ASP > May 2006 > Displaying Html code within a VBscript/VB









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Displaying Html code within a VBscript/VB
nesster13@yahoo.com

2006-05-20, 6:55 pm

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

2006-05-21, 3:55 am


nesster13@yahoo.com wrote:
> 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.


This newsgroup covers classic asp. DotNet is a different technology.
Try microsoft.public.dotnet.framework.aspnet.

--
Mike Brind

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com