1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Vbscript & html tags

Discussion in 'C#' started by micanti, May 3, 2006.

  1. #1
    Hi,
    i have the following question, i am using asp (vbscript) and i tried to access html tags (table) to change its content. I know how to change it using javascript with

    x=document.getElementById("blabla");
    x.innerText="123";

    ,but how can i ido this with vbscript ?!

    Thank you
     
    micanti, May 3, 2006 IP
  2. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Isn't ASP a server-side language?
     
    exam, May 3, 2006 IP
  3. micanti

    micanti Guest

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry i can't answer your question, i am an asp noob :)
     
    micanti, May 3, 2006 IP
  4. jfilley

    jfilley Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You have to do it a little different on the server side. If you want something to be dynamic you just place the variable inline with your html


    <%
    IF value = 1 THEN
    tableBGColor = "red"
    ELSE
    tableBGColor = "blue"
    END IF
    %>

    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td bgColor=<%=tableBGColor%>></td>
    </tr>
    </table>

    Sorry if my VB syntax is perfect, ive been doing c# for 3 years

    hope this helps
     
    jfilley, May 4, 2006 IP