Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you change the formatting in Response.Write

Status
Not open for further replies.

rossmcl

Programmer
Apr 18, 2000
128
Is it possible to use html in Response.Write to change the font colour/ font size etc ?<br><br>Thanks in Advance.<br><br>Also, how do you rate a respondants post?<br><br>Thanks<br><br>Ross
 
HTML in Response.Write? Try to use Response.Write in HTML instead.<br><br>Define some styles using CSS and implement them in your ASP/HTML source code where neccessary. It should look something like this:<br><br><FONT FACE=monospace><br>[...]<br>CssClass = &quot;anyClass&quot;<br><br>&lt;td class=&quot;&lt;%=CssClass%&gt;&quot;&gt; &lt;%=value2display%&gt;&lt;/td&gt;<br>[...]<br>CssClass = &quot;otherClass&quot;<br><br>&lt;p class=&quot;&lt;%=CssClass%&gt;&quot;&gt;Any text&lt;/p&gt;<br>[...]<br></font><br><br>So you may change the style dynamically for every single statement. <br>
 
If you're not comfortable with CSS, you can use the old method - the &lt;FONT&gt; tag<br><br>response.write &quot;&lt;FONT COLOR='RED' SIZE='3'&gt;your text&lt;/FONT&gt;&quot;<br><br><br>You can't really 'rate' a response.&nbsp;&nbsp;You can, however, flag it as helpful by clicking the &quot;was this post helpful&quot; link that appears on all posts.&nbsp;&nbsp;This results in the post getting flagged with the star icon. <p>nick bulka<br><a href=mailto: > </a><br><a href= > </a><br>
 
Can you do hyperlinks in the middle of Response.Write?
 
FORGET THE HYPERLINK QUESTION - I HAVE DONE IT....<br>thanks anyway<br>Ross
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top