-
I am fairly new at this, but have been reading in one of my books on ASP and IIS. They talk about tags in HTML templates. I have tried the example but it doesn't work.
ex....
tag
<wcName>Name</wcName>
and in the IIS app....
Private Sub Template1_ProcessTag......
Select Case TagName
Case "wcName"
TagContents = "Bob"
End Select
End Sub
When I import my template, I don't see anything refering to wcName. When I attempt to run it, I get an error stating that VB cannot find </wcName>
But it is there.
I have tried this with the TagPrefix set on default WC@ and also just WC.
Any Suggestions?
-
Most likley you are missing a tag somewhere else
<p> withiout </p>
WC@ will never work.
use WC
-
WC@ will indeed work, assuming you've named the IWebClass, WC and it's NameInURL property WC.
For instance:
In my HTML template I have:
<WC@FIRSTNAME></WC@FIRSTNAME>
(tagnames are case sensitive)
In my VBcode I have this:
Code:
Private Sub Info_ProcessTag(ByVal TagName As String, TagContents As String, SendTags As Boolean)
Select Case LCase(TagName)
Case "WC@FIRSTNAME"
TagContents = "<input type=""text"" value = """ & Session("FIRSTNAME") & """ name=""First Name"">"
End Select
End Sub
This should work fine as long as you remember to keep everything consistent.
-
Thanks Guys!!!!
That was just what I needed. I have one other question but I will post it in a new thread..
AmigaZoid