473,574 Members | 2,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.

May 21 '06 #1
1 1648

ne*******@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.publi c.dotnet.framew ork.aspnet.

--
Mike Brind

May 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4003
by: Aspersion | last post by:
I'm building an ASP page that has a lot of text and graphics. There is a calculation facility on the page. The user enters several numbers in a form and presses a button to see the calculated answer. The problem is this: when the user presses the Calculate button, the whole page is reloaded and, on a large page, this is very noticeable. ...
13
4729
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of Response.Writes. Are there any tools that will let you design the form then convert that form to Response.Writes that you can further customize with...
1
508
by: Dave Posh | last post by:
I seem to be having a problem displaying time stored in mysql. The format stored in the database is 13:15:05. The database data type is time. I'm using asp vbscript and sql to retrieve the time store in the database. However asp recognizes the data type as date and displays the date instead of the time. If I change the data type in mysql...
5
2614
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it depending on member expiration dates. When the form is submitted, the code loops through the form contents and sends an email to those members that...
9
3248
by: Mike Preston | last post by:
IE 6.0 (not interested in other browsers at the moment) I have looked everywhere I can find to look and googled until I am cross-eyed and am hoping somebody knows what I'm doing wrong. I have an HTML application (.hta) working fine, except one thing. I'm trying to write to a local database from a .htm window (opened from the main .hta...
1
2896
by: Richard | last post by:
I've read the posts here and VeriSign's KB articles, which pertain to the seal not displaying in development mode. However, the seal still won't show up on the .aspx production page, but it does work fine on our other .htm pages! Talk about frustrating. Here is the script (I put it in a table cell which is outside the default form--should...
1
3469
by: Richard | last post by:
I've read the posts here and VeriSign's KB articles, which pertain to the seal not displaying in development mode. However, the seal still won't show up on the .aspx production page, but it does work fine on our other .htm pages! Talk about frustrating. Here is the script (I put it in a table cell which is outside the default form--should...
1
4186
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being aligned to the top, along with the slideshow and link buttons, you have to scroll down to see the text - how can I make IE6 display correctly? ...
7
6643
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a tabcontainer which has 1 panel already, however I want to try create the TabPanels dynamically. I followed the advice here: ...
0
7794
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8040
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8092
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6437
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5610
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3745
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1051
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.