Results 1 to 4 of 4

Thread: Template Question in IIS app...

  1. #1
    Guest

    Question

    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?

  2. #2
    Guest
    Most likley you are missing a tag somewhere else
    <p> withiout </p>
    WC@ will never work.
    use WC



  3. #3
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    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.


  4. #4
    Guest

    Cool

    Thanks Guys!!!!

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

    AmigaZoid

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width