D
Darren Clark
How does everyone register and access input objects on the client side?
well... i suppose i am after some alternate ways... i use the following code to put the neccessary client javascript code so that i can then use them later...
private void RegisterClientObjects()
{
System.Text.StringBuilder sBuild = new System.Text.StringBuilder();
sBuild.Append("<script language=javascript>\n");
sBuild.Append("<!--\n");
sBuild.Append("var oSalary = document.getElementById('"+ this.Salary.ClientID.ToString() +"');\n");
sBuild.Append("var oWorkType = document.getElementById('"+ this.WorkType.ClientID.ToString() +"');\n");
sBuild.Append("//-->\n");
sBuild.Append("</script>\n");
this.Page.RegisterStartupScript("JR_LoadWorkTypeLabel",sBuild.ToString());
}
well... i suppose i am after some alternate ways... i use the following code to put the neccessary client javascript code so that i can then use them later...
private void RegisterClientObjects()
{
System.Text.StringBuilder sBuild = new System.Text.StringBuilder();
sBuild.Append("<script language=javascript>\n");
sBuild.Append("<!--\n");
sBuild.Append("var oSalary = document.getElementById('"+ this.Salary.ClientID.ToString() +"');\n");
sBuild.Append("var oWorkType = document.getElementById('"+ this.WorkType.ClientID.ToString() +"');\n");
sBuild.Append("//-->\n");
sBuild.Append("</script>\n");
this.Page.RegisterStartupScript("JR_LoadWorkTypeLabel",sBuild.ToString());
}