Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: HTML User-controls
Hello,
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 21:12pm
Edited 28-Nov-11 21:17pm
v3
Comments
Karthik Harve at 29-Nov-11 2:15am
   
try by adding id and runat="server"..

1 solution

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

Solution 1

try like this..
 
<div onload="return func();">
 
</div>
 
and add "return true" or false in function..
 
hope this helps..
  Permalink  
Comments
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";
</style>
<div önload="return TJK_Gallery('gallery');">
</div>

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

  Print Answers RSS
0 OriginalGriff 304
1 Maciej Los 285
2 Sergey Alexandrovich Kryukov 230
3 Shweta N Mishra 186
4 Aajmot Sk 153
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,760


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 29 Nov 2011
Copyright © CodeProject, 1999-2014
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