Showing posts with label requirement. Show all posts
Showing posts with label requirement. Show all posts

Wednesday, March 28, 2012

VERY new to asp.net AJAX: Enabling controls based on slection from AutoComplete control

I've been reading all day and I'm not finding the solution to my requirement.

I'm developing a form to enter "lead" information, part of the lead data is the name of their Dr. We maintain a MySql DB with leads and Drs information.

When a user is entering a new lead and they type the last name of the Dr I have a AutoCompleteExtension fetching Dr.s that match the last name. When/if the user selects a Dr. from the list I want to DISABLE the other Dr. related fields (FName, address, etc) and insert the data from the selected Dr. If there is no match found, the user will enter the details for the Dr. (new record).

The main issue I'm struggling with is how to respond (client or server) to the user making a selection from the AutoComplete list and enable/disable and populate the related fields. For example, the user picks a Dr. from the list, I then want to disable all the Dr. detail related fields and set the values with the record from the database.

I'm not sure how I will accomplish this yet, I imagine I would need to set those values from the server side and it would in turn use AJAX to push the values down to the client?

If anyone could give me a little guidance I would really appreciate it, I just need a jump start to get this thing going.

Thanks for reading,
Steve


If you're Textbox that has the AutoComplete extention on it loses focus, why not use the onBlur event to check to see if they used your AutoComplete (which would have text in that textbox). If they did use the AutoComplete, then use JavaScript to disable the other textboxes.


You could use the ItemSelected event of the AutoComplete extender in the client and as RTernier says use JavaScript to disable the other textboxes, you could call a webservice to obtain the remaining information of the doctor, check: http://www.asp.net/ajax/documentation/live/tutorials/ExposingWebServicesToAJAXTutorial.aspx
http://www.asp.net/ajax/documentation/live/tutorials/EmbedScriptFile.aspx For information on using WebServices. You could also use an UpdatePanel, I guess you could call a partial post back from the ItemSelected event, although I'm not an expert in UpdatePanel, but I think it would work (personally I like the webservice way better, but it's a matter of choice).

Saturday, March 24, 2012

Want to use AJAX Controls on Web-form...reqt

I m using VISUAL STUDIO.NET in that i m designing the form on ASP.NET with C#.

I want to know that what are the requirement or the tools or software needed to write the code on from using AJAX.

I want to use all the main features of AJAX so pls tell me or provide link for latest update.

You can download ASP.NET Ajaxhere. This will install everything you need for basic Ajax use. You can also consider downloading the Ajax Control Toolkit from the same location.

Wednesday, March 21, 2012

Web File Browser in ASP.NET

Hi Guys,

I'm developing a Web Application using ASP.Net 2.0. I have a requirement that the application

should include a file browser just alike the windows explorer that we have. Is there any free tools

or controls available for that.

thanks in advance............

Yenkay

I did a quick search and foundhttp://www.awsystems.biz/2003/products/FilePicker/. I have never used it on a site myself, but I tried their online demo and it seems to be quite good. It didn't have the treeview part, that the windows explorer has, but adding a TreeView is easy and hopefully you can control the FilePickers current catalog easily, so that shouldn't pose a problem.