javascript in a web/user control

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I originally was using frames and had a refresh problem.
So I made my 'header' page into a user control. But I can't seem to get the
link for my dhtml menu to work now (it is placed in this control.) I want to
use a js include file to access the menu code. It all worked when I was
using frames.
Can I get the javascript/dhtml to work in my control?

TIA
Mark
 
It should work. I've done scenarios like that.
Maybe show us some code and give us more details about exactly what is not
working and/or what error messages you're getting.

You can output any javascript dynamically from your .NET code behind using
such
function as:

RegisterStartupScript:
http://msdn.microsoft.com/library/d...mWebUIPageClassRegisterStartupScriptTopic.asp

RegisterClientScriptBlock:
http://msdn.microsoft.com/library/d...UIPageClassRegisterClientScriptBlockTopic.asp

Attributes.Add:
http://www.flws.com.au/showusyourcode/codeLib/code/NET_jsAddTo.asp?catID=5
 
Back
Top