Click here to Skip to main content
Sign Up to vote bad
good
See more: C#ASP.NET
hello guys,
 

I have facing below problem from 5 hrs,,,
 
I have added usercontrol dynamically,its added but on Usercontrol javascript no loaded. please tell me...
Posted 4 Dec '12 - 2:56

Comments
Teenustar - 4 Dec '12 - 15:58
Can you explain in detail the problem you are facing. Have you referenced the JS file which has the UserControl's Javascript?
Madhuri Patil - 5 Dec '12 - 0:34
No ,I have not refered JS file
Suvabrata Roy - 3 Jan '13 - 1:42
If you have some custom script then, best practice is to add the script with the control, or if you have some logic to load the script the create resource file like Ajax. If you required i can elaborate

1 solution

try to load java script file from code behind
 

this.Page.ClientScript.RegisterClientScriptInclude("myscript", "myscript.js")
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 419
1 Mahesh Bailwal 343
2 CPallini 245
3 Maciej Los 230
4 Aarti Meswania 173
0 Sergey Alexandrovich Kryukov 9,162
1 OriginalGriff 7,194
2 CPallini 3,923
3 Rohan Leuva 3,176
4 Maciej Los 2,633


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid