How do I put hint in a asp:textbox

The placeholder attribute You’re looking for the placeholder attribute. Use it like any other attribute inside your ASP.net control: <asp:textbox id=”txtWithHint” placeholder=”hint” runat=”server”/> Don’t bother about your IDE (i.e. Visual Studio) maybe not knowing the attribute. Attributes which are not registered with ASP.net are passed through and rendered as is. So the above code (basically) … Read more

Watermark / hint / placeholder text in TextBox?

You can create a watermark that can be added to any TextBox with an Attached Property. Here is the source for the Attached Property: using System; using System.Collections.Generic; using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Documents; /// <summary> /// Class that provides the Watermark attached property /// </summary> public static class WatermarkService { … Read more

PHPDoc type hinting for array of objects?

In the PhpStorm IDE from JetBrains, you can use /** @var SomeObj[] */, e.g.: /** * @return SomeObj[] */ function getSomeObjects() {…} The phpdoc documentation recommends this method: specified containing a single type, the Type definition informs the reader of the type of each array element. Only one Type is then expected as element for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)