S
simon
I have repeater control with id="repeater1"
So I write befor the repeater control anhor tag:
<a name="repeater1"></a>
and this script at the end of the page:
<script runat="server">
location.href="#<%=request.form[_EVENTTARGET]%>";"
</script>
This should retain the position after postBack.
It don't work, I get an error in line with location.href:
Declaration expected
Does anybody know why?
So I write befor the repeater control anhor tag:
<a name="repeater1"></a>
and this script at the end of the page:
<script runat="server">
location.href="#<%=request.form[_EVENTTARGET]%>";"
</script>
This should retain the position after postBack.
It don't work, I get an error in line with location.href:
Declaration expected
Does anybody know why?