codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  calling C# from javascript  smvcoder at 09:04 on Friday, January 27, 2012
 

Hello Everyone,

I am new to this forum.....

Just a question...

Is it possible to call code behind function from javascript?

Thanks...

  Re: calling C# from javascript  bluestar at 15:27 on Wednesday, February 22, 2012
 

yes, you can make web method like..

<WebMethod(EnableSession:=True), ScriptMethod()> _
Public Shared Function updateContent() As String
Return "Your String"
End Function

and then call in javascript like..

  Re: calling C# from javascript  Alan_Smith at 10:51 on Friday, February 24, 2012
 

It is possible to call code from C# behind function from JavaScript. First, you should create button or link so that you can easily call function by one click. After this, use code “void Call_From_Server(Obj. sender, EA e)â€. This is an easy way for JavaScript to use C# coding or function.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: calling C# from javascript
•  Re: refresh parent after closing pop up window
•  TaylorMade RocketBallz RBZ Driver will travel long and low
•  Knowing how to get TaylorMade R11 Irons
•  Supposedly the TaylorMade R11 Irons are supposed
•  TaylorMade R11s Fairway Wood
•  There are quite a few TaylorMade Burner 2.0 Irons
•  µØÉäǤ¢¤Ê¤¿¤Î¥´¥ë¥Õ¥Ã¥Ã¥°¤Ë
•  Gidview row disable


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012