Click here to Skip to main content
15,886,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi I use an UpdatePanel in my form but when run my website form , all javascript method don't work.
please help me thanks
Posted
Comments
PrakashCs.net 22-Jun-14 4:33am    
what exactly error it is giving? from where you call javascript methods?
Debabrata_Das 22-Jun-14 11:22am    
Hello friend, please share your code changes so that we understand the problem.
- DD

I guess you might be using AsyncPostBackTrigger with update panel.
which causes the partial post back and as in partial postaback complete DOM does not refresh. so your scripts would not be working.

Well You can cop up this issue in two ways.

1- inject scripts from server side

2-using javascript function pageLoad() {}

YOu can wrap all your scripts inside

JavaScript
 function pageload()
{

/////All your scripts
}


REFERENCE LINK: How to have a javascript callback executed after an update panel postback?

and hope that will work. :)
 
Share this answer
 
v3
Comments
Nirav Prabtani 23-Jun-14 1:43am    
my 5+
VICK 23-Jun-14 1:52am    
Thanks Nirav. :)
programmer33 25-Jun-14 4:14am    
thanks alot :)
VICK 25-Jun-14 6:21am    
Glad to help you. :)

If it helps solve your problem, dont forget to upvote it as well. :D
Include your script also in content template of ur update panel
 
Share this answer
 

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