K Kevin Spencer Dec 14, 2004 #2 JavaScript, CSS. -- HTH, Kevin Spencer ..Net Developer Microsoft MVP Neither a follower nor a lender be.
JavaScript, CSS. -- HTH, Kevin Spencer ..Net Developer Microsoft MVP Neither a follower nor a lender be.
K Karl Seguin Dec 14, 2004 #3 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
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