I am doing a response.write to write javascript to the page from the code behind. What I dont understand is why it is enlarging my text in the Table Headers?

Has anyone had this problem before? Or know what to do?

Rather than using Response.Write to inject javascript from code behind, you can use the ClientScript.RegisterStartupScript function to achieve this. This may solve your issue. Here is a sample code

string jsScript = @"<script language='javascript'>alert('This is my JS Statement');</script>";
ClientScript.RegisterStartupScript(GetType(),"_script",jsScript );
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.