Question Locked

Problem in converting HTML page to user control

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello all, I have two queries related to user control.

One, how can i include a .js and .css file in an .ascx page? Are we allowed to use tag, if yes then can I just include them as usual by using tag?

Two, I have an HTML(not aspx) page which i want to convert to a user control. I have javascript functions being called on the "onload" and "onmousedown" event for the body of the HTML page. But since user contriol do not have body so how do I implement it...?

Please help...

2 replies

by ojemuyiwa

window.onload = new function(e){

//paste ur code here

};

Put this in script tag anywhere in your control and you'll be fine!

This discussion is closed to new replies.