move placeholder to top while typing with asp tags RRS feed

  • Question

  • User-562039579 posted

    Hello everyone, I'd like to move the placeholder up when a user wants to enter his information.  I found a lot of code in html and css to do it, but I work with an ASP form. So is there a way to do that with asp textbox and asp label?

    Thank you for your help.

    Friday, November 30, 2018 3:55 PM

All replies

  • User-821857111 posted

    Do you mean that you want to move it like this: https://stackoverflow.com/questions/35942247/how-to-move-placeholder-to-top-on-focus-and-while-typing ?

    If so, you can't do this on the server. It has to happen on the client, which means using HMTL, CSS and/or JavaScript. Bear in mind that the asp:TextBox renders an <input type="text"/>

    Friday, November 30, 2018 4:46 PM
  • User-562039579 posted

    Thanks Mikesdotnetting for your reply, that's exactly what I'm trying to do. Actually the textbox will generate the input but I don't understand how to make the link. should I just use input instead of asp tags?

    Friday, November 30, 2018 4:57 PM
  • User-821857111 posted

    What link are you referring to? 

    Monday, December 3, 2018 7:26 AM