English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Besides from writing Response.Write before every html line.I need to embed it because i need to use variables inside html.

2007-03-14 11:25:54 · 2 answers · asked by alfredo_pp 2 in Computers & Internet Programming & Design

2 answers

You embed the asp withing the html, not the other way around:





here is your html, now embed some asp: <%# callFunctionHere() %>

Just like that




and inside that function, you can write out html, or simply call out a string that will fill in the blank.

2007-03-14 11:43:09 · answer #1 · answered by stan_naspinski 3 · 0 0

Your script in the ASP files is in between <% %> tags so anything outside these tags (such as html) is rendered as-is... So you just need to open and close these tags as you change from script to html. Does this make sense (I'm very tired!)

2007-03-14 11:45:34 · answer #2 · answered by Peter B 2 · 0 0

fedest.com, questions and answers