I'm new to ASP.NET and I 've run across the problem of setting the attributes of some HTML controls at runtime. For example, I have the HTML statements
<link rel='stylesheet' type='text/css' href=''>
Now I want to specify the href and src attribute values at runtime but I don't know how to do that with .NET. With classic ASP, I used to do href='<%= stylesheetName %>' but with .NET I am unable to find equivalent server control for the link and script tags. Please help.
Also if included a user control (.ascx file) in my .aspx page as
<myNamespace:myControl id="HeaderControl" PageTitle="Hello">,
is it possible to specify the value of the PageTitle attribute in the code-behind file (at runtime) rather than specifying it at design-time as I have done above.
Thanks a lot.