PDA

Click to See Complete Forum and Search --> : Template Question in IIS app...


Apr 15th, 2000, 10:38 PM
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?

Apr 18th, 2000, 05:24 AM
Most likley you are missing a tag somewhere else
<p> withiout </p>
WC@ will never work.
use WC

compuGEEK
Apr 20th, 2000, 12:08 AM
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:


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.

Apr 21st, 2000, 08:05 AM
Thanks Guys!!!!

That was just what I needed. I have one other question but I will post it in a new thread..

AmigaZoid