Hi anyone help me in this please... how to call javascript method that is in separate .js fil.. i using as follows...
protected override void Render(HtmlTextWriter output)
{ if (this.Site != null && this.Site.DesignMode)
{
// TODO: show a bmp or some other design time thing?
output.Write("[" + this.ID + "]");
}
else
{
_rendering = true;
//output.AddAttribute("onfocus", "javascript:watermarkEnter(this, '" + _watermark + "');");
if (this.Attributes["onfocus"] != null)
{
output.AddAttribute("onfocus", this.Attributes["onfocus"].ToString() + "javascript:watermarkEnter(this, '" + _watermark + "');");
}
else
{
//output.AddAttribute("onfocus", "javascript:watermarkEnter(this, '" + _watermark + "' ...
Go to the complete details ...