Hi Guys

How can i use the variable name instead of a hardcoded value when writing a
hyperlink.

strBody = strBody & "<a href="default.htnk">Login</a>"


I would like to use a variable name instead of directly writing default.html
like below

strPageName = "default.html"

strBody = strBody & "<a href="<%=strPageName%>">Login</a>"


Anyone know how this can be done

thanks

Jas

Re: Using variable name in Href by Alex

Alex
Thu Feb 05 06:22:07 CST 2004

strBody = strBody & "<a href="""&strPageName&""">Login</a>"

"J P Singh" <noemail@asIhatespam> wrote in message
news:OmKhPE%236DHA.2760@TK2MSFTNGP09.phx.gbl...
> Hi Guys
>
> How can i use the variable name instead of a hardcoded value when writing
a
> hyperlink.
>
> strBody = strBody & "<a href="default.htnk">Login</a>"
>
>
> I would like to use a variable name instead of directly writing
default.html
> like below
>
> strPageName = "default.html"
>
> strBody = strBody & "<a href="<%=strPageName%>">Login</a>"
>
>
> Anyone know how this can be done
>
> thanks
>
> Jas
>
>



Re: Using variable name in Href by Mike

Mike
Thu Feb 05 12:40:37 CST 2004

assuming client-side script w/ server side var, then :
strBody = strBody & "<a href='<%= strPageName %>'>Login</a>"



"J P Singh" <noemail@asIhatespam> wrote in message
news:OmKhPE%236DHA.2760@TK2MSFTNGP09.phx.gbl...
> Hi Guys
>
> How can i use the variable name instead of a hardcoded value when writing
a
> hyperlink.
>
> strBody = strBody & "<a href="default.htnk">Login</a>"
>
>
> I would like to use a variable name instead of directly writing
default.html
> like below
>
> strPageName = "default.html"
>
> strBody = strBody & "<a href="<%=strPageName%>">Login</a>"
>
>
> Anyone know how this can be done
>
> thanks
>
> Jas
>
>