[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Call web-service on changeFocus or onChange of textfield in MVC's view

Posted on 2010-03-31
1
Medium Priority
?
488 Views
Last Modified: 2013-11-08
Hello there,

I am using ASP.NET MVC 1 with .NET 3.5 SP1.
I am trying to call a web-service whenever focus moves away from a textField and then populate another textField based upon the return value of web-service. i.e through Java script or something.

Secondly, I do not want to refresh the whole screen to display the result of called web-service. Is there a simple way to achieve the above 2 things.

Thanks
0
Comment
Question by:tech1guy
1 Comment
 
LVL 3

Accepted Solution

by:
nomoose earned 2000 total points
ID: 29921876
Hi Tech1Guy,
The first can be accomplished by adding attributes to the texbox.  The following library suggested on stack overflow seems to accomplish this:
http://stackoverflow.com/questions/1200001/writing-custom-attribute-in-c-like-asp-net-mvc-authorize-attribute

The second can be accomplished using a MVC adaptation of an update panel from the ajax control toolkit.  Check out this link for more on that.
http://weblogs.asp.net/dwahlin/archive/2009/05/14/emulating-the-updatepanel-in-asp-net-mvc-1-0-with-ajaxhelper.aspx


Let me know if you need any more information,
Elliot
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

640 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question