469,631 Members | 1,854 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

Is it possible to call server side function from client side code in asp.net?

I heard that we could do that by using AJAX. Could anybody share how to do
it? Thanks.

Jun 27 '08 #1
5 1986
Hi Simon,

For calling server-side function from page client(without postback),
ASP.NET 2.0 standard runtime has provided a feature called client script
callback. It require you to add some code to emit the script reference into
page's client. Here are some reference introducing this:

#Script Callbacks in ASP.NET 2.0
http://www.developer.com/net/asp/article.php/3485991

#Implementing Client Callbacks Programmatically Without Postbacks in
ASP.NET Web Pages
http://msdn2.microsoft.com/en-us/library/ms178208.aspx

Sure, ASP.NET ajax provide a more powerful framework that can help you call
server-side functions( static method in page or webservice) from client
script. If your application is ready to adopt AJAX framework, it's the
preferred choice. Here is a web video tutorial about calling server-side
functions from client:

#How Do I: Make Client-Side Network Callbacks with ASP.NET AJAX?
http://asp.net/learn/ajax-videos/video-79.aspx

you can find more information about ASP.NET ajax on the official site:

http://asp.net/ajax/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>Reply-To: "Simon" <Si****@community.nospam>
From: "Simon" <Si****@community.nospam>
Subject: Is it possible to call server side function from client side code
in asp.net?
>Date: Tue, 29 Apr 2008 10:49:02 +0800
>
I heard that we could do that by using AJAX. Could anybody share how to do
it? Thanks.

Jun 27 '08 #2
Thanks, I will look into it. The information is good.
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:%2****************@TK2MSFTNGHUB02.phx.gbl...
Hi Simon,

For calling server-side function from page client(without postback),
ASP.NET 2.0 standard runtime has provided a feature called client script
callback. It require you to add some code to emit the script reference
into
page's client. Here are some reference introducing this:

#Script Callbacks in ASP.NET 2.0
http://www.developer.com/net/asp/article.php/3485991

#Implementing Client Callbacks Programmatically Without Postbacks in
ASP.NET Web Pages
http://msdn2.microsoft.com/en-us/library/ms178208.aspx

Sure, ASP.NET ajax provide a more powerful framework that can help you
call
server-side functions( static method in page or webservice) from client
script. If your application is ready to adopt AJAX framework, it's the
preferred choice. Here is a web video tutorial about calling server-side
functions from client:

#How Do I: Make Client-Side Network Callbacks with ASP.NET AJAX?
http://asp.net/learn/ajax-videos/video-79.aspx

you can find more information about ASP.NET ajax on the official site:

http://asp.net/ajax/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.


--------------------
>>Reply-To: "Simon" <Si****@community.nospam>
From: "Simon" <Si****@community.nospam>
Subject: Is it possible to call server side function from client side code
in asp.net?
>>Date: Tue, 29 Apr 2008 10:49:02 +0800
>>
I heard that we could do that by using AJAX. Could anybody share how to do
it? Thanks.

Jun 27 '08 #3
Thanks, I will look into it. The information is good.
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:%2****************@TK2MSFTNGHUB02.phx.gbl...
Hi Simon,

For calling server-side function from page client(without postback),
ASP.NET 2.0 standard runtime has provided a feature called client script
callback. It require you to add some code to emit the script reference
into
page's client. Here are some reference introducing this:

#Script Callbacks in ASP.NET 2.0
http://www.developer.com/net/asp/article.php/3485991

#Implementing Client Callbacks Programmatically Without Postbacks in
ASP.NET Web Pages
http://msdn2.microsoft.com/en-us/library/ms178208.aspx

Sure, ASP.NET ajax provide a more powerful framework that can help you
call
server-side functions( static method in page or webservice) from client
script. If your application is ready to adopt AJAX framework, it's the
preferred choice. Here is a web video tutorial about calling server-side
functions from client:

#How Do I: Make Client-Side Network Callbacks with ASP.NET AJAX?
http://asp.net/learn/ajax-videos/video-79.aspx

you can find more information about ASP.NET ajax on the official site:

http://asp.net/ajax/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.


--------------------
>>Reply-To: "Simon" <Si****@community.nospam>
From: "Simon" <Si****@community.nospam>
Subject: Is it possible to call server side function from client side code
in asp.net?
>>Date: Tue, 29 Apr 2008 10:49:02 +0800
>>
I heard that we could do that by using AJAX. Could anybody share how to do
it? Thanks.

Jun 27 '08 #4
Thanks, I will look into it. The information is good.
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:%2****************@TK2MSFTNGHUB02.phx.gbl...
Hi Simon,

For calling server-side function from page client(without postback),
ASP.NET 2.0 standard runtime has provided a feature called client script
callback. It require you to add some code to emit the script reference
into
page's client. Here are some reference introducing this:

#Script Callbacks in ASP.NET 2.0
http://www.developer.com/net/asp/article.php/3485991

#Implementing Client Callbacks Programmatically Without Postbacks in
ASP.NET Web Pages
http://msdn2.microsoft.com/en-us/library/ms178208.aspx

Sure, ASP.NET ajax provide a more powerful framework that can help you
call
server-side functions( static method in page or webservice) from client
script. If your application is ready to adopt AJAX framework, it's the
preferred choice. Here is a web video tutorial about calling server-side
functions from client:

#How Do I: Make Client-Side Network Callbacks with ASP.NET AJAX?
http://asp.net/learn/ajax-videos/video-79.aspx

you can find more information about ASP.NET ajax on the official site:

http://asp.net/ajax/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.


--------------------
>>Reply-To: "Simon" <Si****@community.nospam>
From: "Simon" <Si****@community.nospam>
Subject: Is it possible to call server side function from client side code
in asp.net?
>>Date: Tue, 29 Apr 2008 10:49:02 +0800
>>
I heard that we could do that by using AJAX. Could anybody share how to do
it? Thanks.

Jun 27 '08 #5
Thanks for your reply Simon,

If you have any further questions on this, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Reply-To: "Simon" <Si****@community.nospam>
From: "Simon" <Si****@community.nospam>
References: <67**********************************@microsoft.co m>
<#W**************@TK2MSFTNGHUB02.phx.gbl>
>In-Reply-To: <#W**************@TK2MSFTNGHUB02.phx.gbl>
Subject: Re: Is it possible to call server side function from client side
code in asp.net?
>Date: Wed, 30 Apr 2008 13:21:51 +0800
>
Thanks, I will look into it. The information is good.
"Steven Cheng [MSFT]" <st*****@online.microsoft.comwrote in message
news:%2****************@TK2MSFTNGHUB02.phx.gbl. ..
>Hi Simon,

For calling server-side function from page client(without postback),
ASP.NET 2.0 standard runtime has provided a feature called client script
callback. It require you to add some code to emit the script reference
into
page's client. Here are some reference introducing this:

#Script Callbacks in ASP.NET 2.0
http://www.developer.com/net/asp/article.php/3485991

#Implementing Client Callbacks Programmatically Without Postbacks in
ASP.NET Web Pages
http://msdn2.microsoft.com/en-us/library/ms178208.aspx

Sure, ASP.NET ajax provide a more powerful framework that can help you
call
server-side functions( static method in page or webservice) from client
script. If your application is ready to adopt AJAX framework, it's the
preferred choice. Here is a web video tutorial about calling server-side
functions from client:

#How Do I: Make Client-Side Network Callbacks with ASP.NET AJAX?
http://asp.net/learn/ajax-videos/video-79.aspx

you can find more information about ASP.NET ajax on the official site:

http://asp.net/ajax/

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
>where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
>up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
================================================= =
This posting is provided "AS IS" with no warranties, and confers no
rights.


--------------------
>>>Reply-To: "Simon" <Si****@community.nospam>
From: "Simon" <Si****@community.nospam>
Subject: Is it possible to call server side function from client side
code
>in asp.net?
>>>Date: Tue, 29 Apr 2008 10:49:02 +0800
>>>
I heard that we could do that by using AJAX. Could anybody share how to
do
>>>it? Thanks.


Jun 27 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by abcd | last post: by
6 posts views Thread by enjoying the view | last post: by
11 posts views Thread by rgintexas | last post: by
3 posts views Thread by monojohnny | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.