Hi, I have a website that I need to add some dynamic data from asp.net,
I'm completely new to .net and am having some problems (usually a php
user).
K so, I have
a simple html tag
<a href="" title = "" >my link</a>
Now all I want to do is to insert some data in to the href and title
parameters. in php I would just use <a href="<?php echo
myHrefvar?>" title = "<?php echo myTitlevar?>" >my
link</a>
I've tried doing
<a href="<% = myHrefvar%>" title = "<% = myTitlevar%>" >my link</a>
and in my default.aspx.cs I have the variables being set
string myHrefvar = "my href";
string myTitlevar = "my title";
but it always gives the message that they're not linked.
Have also tried
<a href="" title = "" ID=Req1>my link</a>
and in the apsx.cs file
Req1.HRef = "sdsdsd";
Req1.Title = "sdsdsd";
but again I get an error saying Req1 doesn't exist in the current context.
So help, I'm missing something rather fundamental here, any help would be much appreciated.
James
View Complete Post