locked
Setting dynamic textbox value RRS feed

  • Question

  • User1560585244 posted

    Hello!

    Is it possible to change a dynamic textbox value without javascript? Can i change this value using C# ?

    I want to make some calculations after the user leave a field and javascript isn´t so good for it.

     

    Thanks in advance!

    Sunday, December 21, 2008 11:13 PM

Answers

  • User-330204900 posted

    You could add a CustomValidator with server side c# or VB to do you calculations and validate at the same time [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 22, 2008 9:23 AM

All replies

  • User1746709538 posted

    javascript isn´t so good for it.

    I am not sure about that, if it has nothing to do with any database validation or things like that, I still beleive Javascript can handle it, but if you want to do it in C#, you can try AJAX, and put each textbox (that needs recalculation) inside a different updatepanel

    Sunday, December 21, 2008 11:51 PM
  • User-1319812544 posted

    Suggestion : Use javascript (u can get help for that)

    Btw if you want to use only server side coding then  either post it back to server, do the calculation and show in the textbox

    or get the value using AJAX as mentioned in earlier post.

    Sunday, December 21, 2008 11:54 PM
  • User-330204900 posted

    You could add a CustomValidator with server side c# or VB to do you calculations and validate at the same time [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 22, 2008 9:23 AM