asp.net - on click for asp:textbox? -



asp.net - on click for asp:textbox? -

im looking way have textbox contain bit of text until users clicks come in own text. search field , client wants textbox have "search stock" in textbox, when users clicks in it, becomes null can come in own criteria. cant see onclick or similar in designview textbox though, hints?

thanks

<asp:textbox runat="server" value="search stock" id="textbox1" onfocus="if (this.value == 'search stock') this.value = ''; " onblur="if (this.value == '') this.value ='search stock'; " />

asp.net visual-studio-2010

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -