Click here to Skip to main content
15,040,743 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have created 1 user control which contain JavaScript functions.
While using the user control twice in the same page, the script is not working.
Posted
Updated 11-Jan-11 0:35am
v2
Comments
E.F. Nijboer 11-Jan-11 6:32am
   
You need to be more clear. Give some of the code (maybe shortened) and some example of what is going wrong. It is hard to guess this way what is wrong.
Hiren solanki 11-Jan-11 6:41am
   
can you share your code too ?

Use ScriptManagerProxy as explained in by kashif in ScriptManagerProxy [^]

Regards
Espen Harlinn
   
Comments
Manfred Rudolf Bihy 11-Jan-11 7:21am
   
Good call! 5+
Espen Harlinn 11-Jan-11 7:23am
   
Thanks Manfred!
change your controls id and call the function one time for each id


ex.

C#
function CalcData(idcontrol)
{

return value
}

//call functions

CalcData(datastart);
CalcData(dataend);


use a idcontrol like parameter of your function

think that is the problem...

anyway past the script and error here

thanks :doh:
   
v2
Comments
Dalek Dave 11-Jan-11 6:35am
   
Wrapped it in Code Block.
salini8588 11-Jan-11 6:37am
   
Hi,
I am sorry. The answer is not clear. could you explain?

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




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900