how to call a javascript function from c#.net?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    how to call a javascript function from c#.net?

    hai all,
    I want to call a javascript function from code behind c#(not in any event, just call at when a condition satisfies). How can i do this? thanx in advance.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by nirmalsingh
    hai all,
    I want to call a javascript function from code behind c#(not in any event, just call at when a condition satisfies). How can i do this? thanx in advance.
    Hi Nirmalsingh!

    Check out this .NET article on How to check if a textbox contains a number. It's written for a VB.NET application but it explains how to call a JavaScript function from your project and you might find it useful.

    Cheers!

    -Frinny

    Comment

    • Abdul Haque
      New Member
      • May 2007
      • 17

      #3
      Dude have a look at the below link
      http://www.codeproject .com/aspnet/ClientServer.as p

      Comment

      Working...