i'm using an htmltextwriter to emit an html page on the fly at runtime and display it in an asp.net literal control.
The html i'm emitting at runtime is a text file which i'm apply some css formating too, and add some anchored within page hyperlinks <a name="foobar1">. I want to emit some javascript that will automatically jump me down to anchored link on my dynamically generated page.
i found this code online which looks like it would work: but my actual problem is that the htmltextwriter gives an error when i try to write out the code below. error is "runtime error: only content controls are allowed directly in a content page that contain content controls"
any help would be great! thx
<script type="text/javascript">
function load() {
var urllocation = location.href;
...
Go to the complete details ...