Position

  • Thread starter Thread starter Guest
  • Start date Start date
JavaScript, CSS.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
By runtime I assume you mean on the client using javascript. Without any
specific example, it's hard to say, but let's try:

<asp:TextBox id="name" Runat="server" />
<input type="button" onclick="move();" value="move" />

<script language="javascript">
function move(){
var btn = document.getElementById('<%=name.ClientId%>');
if (btn){
btn.style.position = 'relative';
btn.style.top = '200;x';
btn.style.left = '300px';
}
}
</script>

get a javascript reference to the control you want to move. set the
position to relative, and position it where you want.

Karl
 
Back
Top