Change a property of the HEAD tag

  • Thread starter Jennyfer J Barco
  • Start date
J

Jennyfer J Barco

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
 
G

Guest

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>
 
J

Jennyfer J Barco

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
 

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

Top