Displaying Html code within a VBscript/VB

N

nesster13

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.
 
M

Mike Brind

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top