473,657 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change a property of the HEAD tag

Hello, I have the following:

<HEAD id="ENGINE">
<title>WebBase. NET Engine</title>
<meta content="Micros oft Visual Studio.NET 7.0" name="GENERATOR ">
<meta content="Visual Basic 7.0" name="CODE_LANG UAGE">
<meta content="JavaSc ript" name="vs_defaul tClientScript">
<meta content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema">
<meta http-equiv="scanner" content="Disabl ed">
</HEAD>

Is it possible to change the <meta http-equiv="scanner" content="Disabl ed">
from Disabled to Enabled. I need this because when the user scans some
incorrect product, I need to Disable the scanner and when the product is
correct I need to Enable it again. Is it possible to change this property
during run time?

Thanks in Advance
Jennyfer
Nov 18 '05 #1
2 2043
Hi Jennyfer,

If you can detect the condition, you can insert the right string on the fly.
I've pasted in a simple example below. Let us know if it helps?

Ken

<%@ Page Language="VB" %>
<script runat="server">

dim strScanner as string
sub Page_Load
dim correct as boolean=false
strScanner=iif( correct,"Disabl ed","Enabled" )
label1.text=str Scanner
end sub

</script>
<html>
<head id="ENGINE">
<title>WebBase. NET Engine</title>
<meta content="Micros oft Visual Studio.NET 7.0" name="GENERATOR " />
<meta content="Visual Basic 7.0" name="CODE_LANG UAGE" />
<meta content="JavaSc ript" name="vs_defaul tClientScript" />
<meta content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema" />
<meta http-equiv="scanner" content="<% =strScanner %>" />
</head>
<body>
<form runat="server">
<asp:Label id="Label1" runat="server"> </asp:Label>
<!-- Insert content here -->
</form>
</body>
</html>
"Jennyfer J Barco" wrote:
Hello, I have the following:

<HEAD id="ENGINE">
<title>WebBase. NET Engine</title>
<meta content="Micros oft Visual Studio.NET 7.0" name="GENERATOR ">
<meta content="Visual Basic 7.0" name="CODE_LANG UAGE">
<meta content="JavaSc ript" name="vs_defaul tClientScript">
<meta content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema">
<meta http-equiv="scanner" content="Disabl ed">
</HEAD>

Is it possible to change the <meta http-equiv="scanner" content="Disabl ed">
from Disabled to Enabled. I need this because when the user scans some
incorrect product, I need to Disable the scanner and when the product is
correct I need to Enable it again. Is it possible to change this property
during run time?

Thanks in Advance
Jennyfer

Nov 18 '05 #2
Thank you so much, really you helped me. The only change is that I define
the strScanner as Public because if not it didn't keep the value of
"Enabled" or "Disabled". In my code I Know when I have an error and should
Desable the scanner.

Thanks a lot
Jennyfer

"Ken Cox [Microsoft MVP]" <BA************ @sympatico.ca> wrote in message
news:8F******** *************** ***********@mic rosoft.com...
Hi Jennyfer,

If you can detect the condition, you can insert the right string on the fly. I've pasted in a simple example below. Let us know if it helps?

Ken

<%@ Page Language="VB" %>
<script runat="server">

dim strScanner as string
sub Page_Load
dim correct as boolean=false
strScanner=iif( correct,"Disabl ed","Enabled" )
label1.text=str Scanner
end sub

</script>
<html>
<head id="ENGINE">
<title>WebBase. NET Engine</title>
<meta content="Micros oft Visual Studio.NET 7.0" name="GENERATOR " />
<meta content="Visual Basic 7.0" name="CODE_LANG UAGE" />
<meta content="JavaSc ript" name="vs_defaul tClientScript" />
<meta content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema" />
<meta http-equiv="scanner" content="<% =strScanner %>" />
</head>
<body>
<form runat="server">
<asp:Label id="Label1" runat="server"> </asp:Label>
<!-- Insert content here -->
</form>
</body>
</html>
"Jennyfer J Barco" wrote:
Hello, I have the following:

<HEAD id="ENGINE">
<title>WebBase. NET Engine</title>
<meta content="Micros oft Visual Studio.NET 7.0" name="GENERATOR ">
<meta content="Visual Basic 7.0" name="CODE_LANG UAGE">
<meta content="JavaSc ript" name="vs_defaul tClientScript">
<meta content="http://schemas.microso ft.com/intellisense/ie5"
name="vs_target Schema">
<meta http-equiv="scanner" content="Disabl ed">
</HEAD>

Is it possible to change the <meta http-equiv="scanner" content="Disabl ed"> from Disabled to Enabled. I need this because when the user scans some
incorrect product, I need to Disable the scanner and when the product is
correct I need to Enable it again. Is it possible to change this property during run time?

Thanks in Advance
Jennyfer

Nov 18 '05 #3

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

Similar topics

9
2247
by: Nick | last post by:
I have the following code, and it works well on Mozilla 1.6. (However, the image src property cannot be set on Mozilla 1.2.1). Unfortunately, all the code: document.images.itemImage.src = itemInfo.imageUrl; //document.getElementById("itemImage").src = itemInfo.imageUrl; document.getElementById("descr").innerHTML = itemInfo.descr; document.getElementById("price").innerHTML = itemInfo.price; doesn't work on IE. What's the proper way to...
5
27007
by: AFN | last post by:
I'm trying to set a submit button to change text and color when clicked. Like saying "please wait" instead of "submit" and then changing the background color and text color. All works, except for changing the text color. I can set style.background='red' to change the background color to red. But if I say style.color='green' to change the text color, it does not change. How do you change the text color on a button when it is clicked?
3
26498
by: Noozer | last post by:
I have several tags on a webpage of the same class. If the user clicks a specific checkbox I'd like to be able to alter the display property of the class, affecting all objects of that class. This is an intranet application so we know that javascript will be enabled and the browser will be IE. How can I affect all the members of this class? Is there a way I can toggle the DISPLAY property of a class so all the elements using that class...
2
4766
by: Amir Eshterayeh | last post by:
Dear Friends I want to change the name of my css file dynamically so as Mr. Jos Branders helped me, I can change the <head> tag into an HTML control like this: <head id="myhead" runat="server"> ...permanent content here... </head> so that I can modify it from code like this: Sub Page_Load(sender As Object, e As EventArgs)
6
5563
by: Guogang | last post by:
Hi, is there a way to change the page's title in code behind (C#)? I want to change this part: <HEAD> <TITLE> Can be changed dynamically. </TITLE> </HEAD> Thanks, Guogang
5
1705
by: Mark | last post by:
I'd like to be able programmatically modify the title of a web page. For example, change: <head><title>something</title></head> to <head><title>something else</title></head> Is there a property of the Page or similar that I could do this with in a
2
10826
by: Radu | last post by:
Hi, I have a "select" control named "cboSelectScorecardType", defined as <select id="cboSelectScorecardType" size="1" runat="server"> </select> which shows a list of files on my drive. It does not post back, nor do I want it to. After the user selects a document in the combo, I want a
6
4511
by: gavy7210 | last post by:
hello i am using struts 1.2,Eclipse Platform Version: 3.4.2,mySql 5.0.1,jdk 1.5.. i have a login form(jsp) in which a user logs in,in case he doesnt enter his username and/or password an error is displayed using the <ul> tag and <html:errors> in the jsp. in the from class a vaidate method creates an actionerrors object adds all the errors to it and finally returns it. the ids are linked in messageresources.properties and appropriate...
0
8385
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8821
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8723
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7316
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.