Click to See Complete Forum and Search --> : Dynamically Change Font after For Submission


theflyingminst
08-30-2008, 11:04 AM
Hi I was wondering if anyone had any idea's on how I might dynamically change the font of outputted data of a form (after submission) in ASP?

My other option if this isn't possible is obviously to bring the form data into another page but I'd like to do it without cookies if anyone knows how I might be able to do that.

Thank you.

Bullschmidt
09-07-2008, 05:24 PM
' If there was a post.
If Request.Form.Count > 0 Then
strFont = "Times New Roman"
Else
strFont = "Arial"
End If

And then wherever you set the font use the strFont variable such as in a tag:
style="font-family:<%= strFont %>"

theflyingminst
09-08-2008, 12:07 AM
Cool, thanks again Paul.