Click here to Skip to main content
11,715,491 members (86,054 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: HTML User-controls
I want to using

<div önload="func();"></div>
instead in
<body  önload="func();">
in user control but does not working.
thank you for help.
Posted 28-Nov-11 20:12pm
Edited 28-Nov-11 20:17pm
Karthik Harve at 29-Nov-11 2:15am
try by adding id and runat="server"..

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

try like this..

<div onload="return func();">

and add "return true" or false in function..

hope this helps..
Hassan Sajedi at 29-Nov-11 2:32am
thank you but this code does not worked. my code is:

<script type="text/javascript" src="http://localhost/DotNetNuke4-9-5/DesktopModules/ThumbnailGallery/ThumbnailGallery/js/easyALBUM.js"></script>
<style type="text/css" media="screen">
@import "http://localhost/DotNetNuke4-9-5/DesktopModules/ThumbnailGallery/ThumbnailGallery/css/easyALBUM.css";
<div önload="return TJK_Gallery('gallery');">

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 518
1 Richard MacCutchan 300
2 Maciej Los 259
3 ManasKumarM 155
4 Frankie-C 125
0 Sergey Alexandrovich Kryukov 785
1 CHill60 415
2 Richard MacCutchan 405
3 Maciej Los 389
4 OriginalGriff 320

Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 29 Nov 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100