I have an aspx with a control on it, lets call it txtDate, and I have an
var strContName = "document.getElementById('<%= txtDate.ClientID%>')";
System.Text.StringBuilder sb = new System.Text.StringBuilder();
Page.ClientScript.RegisterStartupScript(this.GetType(), "OnLoad", sb.ToString());
the txtDate.ClientID does not get replaced with the client id.
Is there a way to do this.