Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.††If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 28th, 2008, 04:47 AM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to call asp.et and vb.net function using javas

hi there,

     how to call asp.et and vb.net function using javascript.i want display data from database, but can it be possible to call asp function at the click event of javascript function.

Any reply or suggestion is most appreciated.

Thank you
Jitesh
Programmer

Sharepoint Consulting
__________________
Sharepoint Consulting
Reply With Quote
  #2 (permalink)  
Old February 28th, 2008, 08:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Yes, it's possible, through this: http://msdn2.microsoft.com/en-us/library/ms535874(VS.85).aspx

You have to establish a connection with the server this way; ideally, the ASP.NET AJAX framework leverages web services to do this kind of thing. There is a proxy object in the framework: http://msdn2.microsoft.com/en-us/library/bb397525.aspx that you can use to establish the connection and retrieve the data.

Check this out too: http://www.asp.net/ajax/documentatio...rOverview.aspx

Brian
Reply With Quote
  #3 (permalink)  
Old March 5th, 2008, 06:18 AM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi bmains,

  i saw your reply.i am very thank full to you for the reply. i will try out your given solution.but i wanted to know, is that possible to Call asp.net function in javascript.

Thank you
Jitesh
Programmer



Sharepoint Consulting
Reply With Quote
  #4 (permalink)  
Old March 27th, 2008, 02:44 PM
Registered User
 
Join Date: Mar 2008
Location: , , Canada.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default


 No, not exactly, .NET code is not on the client side, to do what you want, you must do what bmains has said and use Ajax, basically, you call your asp.net function via Ajax, and retrieve its return value/data.

.NET Developer @ http://www.3mushrooms.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
( C# in ASP.NET ) can a hyperlink call a function? richie86 ASP.NET 1.0 and 1.1 Basics 0 November 5th, 2005 12:25 AM
call window dialog component with asp.net/vb.net s3ng ASP.NET 1.x and 2.0 Application Design 0 June 21st, 2005 04:54 AM
Error trying to call Oracle function in VB.NET lou_1 Pro VB.NET 2002/2003 0 January 13th, 2004 05:42 PM
How can I call a vb.net Exe from an asp.net page? jorevil Classic ASP Basics 0 October 1st, 2003 11:34 AM



All times are GMT -4. The time now is 05:35 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.