Click here to Skip to main content
16,016,076 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 21:07
saurabh8april8-Nov-09 21:07 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 21:14
Gamzun8-Nov-09 21:14 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 21:21
saurabh8april8-Nov-09 21:21 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 21:36
Gamzun8-Nov-09 21:36 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 22:38
saurabh8april8-Nov-09 22:38 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 22:58
Gamzun8-Nov-09 22:58 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 23:01
saurabh8april8-Nov-09 23:01 
AnswerRe: call a c# funcation in html code Pin
April Fans9-Nov-09 21:26
April Fans9-Nov-09 21:26 
Hi,

You can try this:

(1) JS:

PageMethods. backmethod (latlng,myCallBack);

(2) C#

[System.Web.Services.WebMethod]//you must write this;

public static String backmethod (Object xingcan)//must be static



…… //your logic



(3)

function myCallBack(result) {

var di = document.getElementById("Label1"); //for example

di.innerText=result;

}

The order is (1)-(2)-(3)。
April

Comm100 - Leading Live Chat Software Provider


modified 27-May-14 21:54pm.

QuestionSaveFileDialog Box Pin
sharmilajv8-Nov-09 18:01
sharmilajv8-Nov-09 18:01 
AnswerRe: SaveFileDialog Box Pin
Gamzun8-Nov-09 18:09
Gamzun8-Nov-09 18:09 
GeneralRe: SaveFileDialog Box Pin
sharmilajv8-Nov-09 18:16
sharmilajv8-Nov-09 18:16 
GeneralRe: SaveFileDialog Box Pin
Gamzun8-Nov-09 18:26
Gamzun8-Nov-09 18:26 
GeneralRe: SaveFileDialog Box Pin
sharmilajv8-Nov-09 18:41
sharmilajv8-Nov-09 18:41 
GeneralRe: SaveFileDialog Box Pin
Christian Graus8-Nov-09 23:33
protectorChristian Graus8-Nov-09 23:33 
AnswerRe: SaveFileDialog Box Pin
dan!sh 8-Nov-09 18:29
professional dan!sh 8-Nov-09 18:29 
GeneralRe: SaveFileDialog Box Pin
sharmilajv8-Nov-09 18:35
sharmilajv8-Nov-09 18:35 
GeneralRe: SaveFileDialog Box Pin
dan!sh 8-Nov-09 18:59
professional dan!sh 8-Nov-09 18:59 
AnswerRe: SaveFileDialog Box Pin
Christian Graus8-Nov-09 23:33
protectorChristian Graus8-Nov-09 23:33 
QuestionDifference between postbackurl and response.redirect Pin
anish27patel8-Nov-09 17:26
anish27patel8-Nov-09 17:26 
AnswerRe: Difference between postbackurl and response.redirect Pin
Christian Graus8-Nov-09 17:52
protectorChristian Graus8-Nov-09 17:52 
AnswerRe: Difference between postbackurl and response.redirect Pin
April Fans9-Nov-09 21:22
April Fans9-Nov-09 21:22 
QuestionFireFox Problem!! Pin
Sr...Frank8-Nov-09 10:17
Sr...Frank8-Nov-09 10:17 
AnswerRe: FireFox Problem!! Pin
Abhishek Sur8-Nov-09 11:20
professionalAbhishek Sur8-Nov-09 11:20 
AnswerRe: FireFox Problem!! Pin
Kannan Ar8-Nov-09 15:46
professionalKannan Ar8-Nov-09 15:46 
QuestionHaving Multiple Gridviews Pin
AndyASPVB8-Nov-09 5:20
AndyASPVB8-Nov-09 5:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.