Click here to Skip to main content
15,911,646 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow To Call C# Function From JavaScript Pin
mrgaddam11-Dec-07 3:13
mrgaddam11-Dec-07 3:13 
AnswerRe: How To Call C# Function From JavaScript Pin
RichardGrimmer11-Dec-07 5:17
RichardGrimmer11-Dec-07 5:17 
GeneralRe: How To Call C# Function From JavaScript Pin
YeHtut11-Dec-07 16:24
YeHtut11-Dec-07 16:24 
GeneralRe: How To Call C# Function From JavaScript Pin
Michael Sync11-Dec-07 17:08
Michael Sync11-Dec-07 17:08 
AnswerRe: How To Call C# Function From JavaScript Pin
Sun Rays11-Dec-07 18:47
Sun Rays11-Dec-07 18:47 
AnswerRe: How To Call C# Function From JavaScript Pin
YeHtut11-Dec-07 19:44
YeHtut11-Dec-07 19:44 
GeneralRe: How To Call C# Function From JavaScript Pin
YeHtut11-Dec-07 19:45
YeHtut11-Dec-07 19:45 
GeneralRe: How To Call C# Function From JavaScript Pin
Michael Sync11-Dec-07 20:48
Michael Sync11-Dec-07 20:48 
Seem like you are confusing. The server-side script can be written in both class file (e.g. .cs or .vb) and aspx file. But if we want to write the server-side script in aspx file, you have to use <% %>.

So, the way that you showed is just writing the serverside code in aspx file. And it doesn't mean that you are calling the serverside function from client-side ( Javascript or vbscript or etc).

still confused? Okay. Let's say.. I want to call this function ( ServerSideFunction ) from Javascript when I click the button ( input button. not server-control). So, ServerSideFunction() should be invoked only when I click the button. (not on pageload).

How to do that? Smile | :)

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)


GeneralRe: How To Call C# Function From JavaScript Pin
YeHtut11-Dec-07 21:13
YeHtut11-Dec-07 21:13 
GeneralRe: How To Call C# Function From JavaScript Pin
Michael Sync11-Dec-07 21:24
Michael Sync11-Dec-07 21:24 
GeneralPanel Hide Show Issue Pin
mpavas11-Dec-07 2:23
mpavas11-Dec-07 2:23 
GeneralRe: Panel Hide Show Issue Pin
Sun Rays11-Dec-07 18:56
Sun Rays11-Dec-07 18:56 
Generalhi how to send a null value through .net into a stored procedure Pin
jagan12311-Dec-07 1:11
jagan12311-Dec-07 1:11 
GeneralRe: hi how to send a null value through .net into a stored procedure Pin
J4amieC11-Dec-07 1:31
J4amieC11-Dec-07 1:31 
Questionhow to write a stored procedure to check the users sending parameter value Pin
jagan12311-Dec-07 0:00
jagan12311-Dec-07 0:00 
AnswerRe: how to write a stored procedure to check the users sending parameter value Pin
J4amieC11-Dec-07 1:36
J4amieC11-Dec-07 1:36 
Questionhow to make a queue of jobs for moderators of a web-site Pin
hurrem10-Dec-07 23:47
hurrem10-Dec-07 23:47 
AnswerRe: how to make a queue of jobs for moderators of a web-site Pin
RichardGrimmer11-Dec-07 5:20
RichardGrimmer11-Dec-07 5:20 
GeneralDynamic loading of Webusercontrol..... Pin
zareee10-Dec-07 23:24
zareee10-Dec-07 23:24 
GeneralRe: Dynamic loading of Webusercontrol..... Pin
ltom10-Dec-07 23:59
ltom10-Dec-07 23:59 
GeneralProblem with UpdatePanel and PlaceHolder Pin
amin_behzadi10-Dec-07 23:15
professionalamin_behzadi10-Dec-07 23:15 
Questionhow to populate a DropDownList from a self joined table? Pin
Rocky#10-Dec-07 23:01
Rocky#10-Dec-07 23:01 
Generalshowing data in crystal report using dataset dynamically Pin
pavankumarchakilam10-Dec-07 22:50
pavankumarchakilam10-Dec-07 22:50 
GeneralList of controls Pin
Mazdak10-Dec-07 22:36
Mazdak10-Dec-07 22:36 
GeneralRe: List of controls Pin
Karthic M11-Dec-07 0:42
Karthic M11-Dec-07 0:42 

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.