473,395 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Change a property of the HEAD tag

Hello, I have the following:

<HEAD id="ENGINE">
<title>WebBase.NET Engine</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<meta http-equiv="scanner" content="Disabled">
</HEAD>

Is it possible to change the <meta http-equiv="scanner" content="Disabled">
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 2026
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,"Disabled","Enabled")
label1.text=strScanner
end sub

</script>
<html>
<head id="ENGINE">
<title>WebBase.NET Engine</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR" />
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE" />
<meta content="JavaScript" name="vs_defaultClientScript" />
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema" />
<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="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<meta http-equiv="scanner" content="Disabled">
</HEAD>

Is it possible to change the <meta http-equiv="scanner" content="Disabled">
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**********************************@microsof t.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,"Disabled","Enabled")
label1.text=strScanner
end sub

</script>
<html>
<head id="ENGINE">
<title>WebBase.NET Engine</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR" />
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE" />
<meta content="JavaScript" name="vs_defaultClientScript" />
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema" />
<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="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
<meta http-equiv="scanner" content="Disabled">
</HEAD>

Is it possible to change the <meta http-equiv="scanner" content="Disabled"> 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
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 =...
5
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...
3
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. ...
2
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">...
6
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
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...
2
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...
6
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.