Click here to Skip to main content
15,908,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI!

I have a Gridview that contains a textbox column where people can enter quantities.

Depending on the quantities they enter I calculate the amount of money it costs. This happens on the TextChanged event of my textbox. The problem I have is that I currently have autopostback on true for the textbox and need to implement the updatepanel for obvious reasons.

When I run my app with the updatepanel I get the error that my textbox cannot be found. Where would be the correct place to use the findcontrol method and then execute the rest of my code?

Thanks!
Posted
Comments
Sandeep Mewara 28-Jun-10 1:48am    
Is the textbox a server control? Can you share across some code? HTML textbox part and Codbehind textchange event part (or part where it fails)?

1 solution

You can try javascript for gridview control calculations by clientside because server side code will take more time than client side. Write the js for calculations & call the functions in control event or assign the client side event in code behind. Try this one How To Add client side calculation for gridview column[^]
 
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