Call Server Side methods from Client Side
How to call Server Side methods from ClientSide with results back. Earlier we were using Anthem approach but now want to use some thing with AJAX.
Thanks in Advance.
I´m implementing some shortcut functionality in my web forms and wanna know where i can find something that explains, for example, how to call the handler event "onclick" of a button. I´m using this library to add shortcuts to my controls:
And I want to "link" some key combination for the event handlers of the controls.
Does anybody knows?
I'm using Jquery to call a modal popup dialog and depend on what user select i nead to call a method to populate my generic list can that be don or is no posible way to do that...
Sorry for my bad english...Florim Maxhuni
If you need to call the server from the clientside, you need to look into Ajax Eric Pascarello.com | Twitter epascarello | LinkedIn...Is it possible to call client side function from server side code without initial client request?
Atlas is great. I'm using timer to periodically check database changes on server to populate client side controls with new data. Is it possible to do it without a lot of client requests to server which takes a huge useless network traffic? Server should call client side function on all connected clients when, for example, 'database updated' event occurs on server. Thanks.
Hi~ Just for your interest, I think you could have a look at Comet, many web IM like Gmail's embeded Gtalk and meebo.com are built on this architecture你好! Just FYI o_O...call server side funciton from client side code.
how can i call a server side fuction which is a button click event "btnSave_click(object serder, EventArgs e) " from java script function ?
You'll have to make an AJAX call form your client side to acheive thisRegards,Muhammed Saleem P---------------------------------------------Please do not forget to click "Mark As Answer" on the posts that helped you.Happy Programming !!!
I answered a question with sample code very similar to this one here: http://forums.asp.net/p/1358277/2799269.aspx#2799269
Is this the correct method?
Any suggestions would be appreicated.
hi!document.getElementById allow you to access elements from html page DOM in client side.to call server method from client you have to use AJAX see this example and read this tutorial.hope it helpsorzeh code less, think more!
Or do a PostBack:
/////////////////////////////////// Client-side code/////////////////////////...Calling server-side methods from client-side event
Hello,i'm novice in asp.net client-side script and i have a simple question: is it possibile to call a server-side method (ex. c# managed code) from a java script client-side function linked to an event?Thanks all Luca GuccioneGenova, Italy
Yes you can. It's very easy using web methods from code behind, jquery and the script manager. See this very good blog post explaining the steps: http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/ mySoZa
I want to call a server-side function, like a button's click event or just another private or
How do I do that?
AnzIf this post was useful to you, please mark it as answer.ClientSideAsp.Net | Blog
Maybe alittle more that you need, but.......
1) Put a button on the page. Lets say its id is Button1. Make sure that its has causesValidation=false
2) Write the code for the button.
3) Write the following in the PAge_Load event
Button1.Attributes.Add("onClick", "myJSFunction(); return false")
Thanks!-------------Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
Hi all, I have a image button in the update panel. I would like to call a method from server side (not from webservice) to get the variable when Onclick on the image button is invoked. Is there any way that I can able to access this function from the client script?
In using the UpdatePanel, in essence, you're already doing this because there will not be a full postback. You can make an asynchronous call to your Click method of your ImageButton. So, what do you want to do with this "variable"?Christopher Reed"The oxen are slow, but the earth is patient."...Call client side function from server side code
My problem is that in some point of the VB.Net code I need to call a function defined in vbScript, for example:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'There's some code here....
If (SomeCondition) Then
The asp.net code runs to generate the html and when it is done the html is rendered in your browser. So you can't access cli...Calling server side sub from client side button click
This is something intresting I have come across during development.
But security concerns with java script that these .js files can be access by connecting to port 80 of the server .
So an ultimate alternative reminas to call c# code from a java script function.
Can anyone Help me on this matter
Usually .js files executed on client side. Please explain your configuration.Leon LangleybenMCSD, ASP.NET MVPBlog...