Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2003, 02:27 AM
Authorized User
 
Join Date: Jun 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Form Refill

i have ASP page with 3 text fields: customer no, customer name and customer phone. whenever user enters customer no.,
page reloads, take out customer name and customer address corresponding to the customer no entered from database table and fill the form fields
of customer name and address with these values.
how to prevent the page reload and perform this autofill at client side. please note that table contains more than 4000 rows.

Also, is this possible to create fields auto refill as we have in windows. I mean if my name is "sarah", the text field gets polulated
by the value at once if just enter "s"
 
Old November 18th, 2003, 10:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You will need to write your own Java Applet or AxtiveX Component to achieve this (although I think it is possible with ASP.NET). Your only other option is to write all 4000+ rows to JavaScript variables and then handle it in the client. This will mean that the page will take a lot longer to download though, and there are security implications, because anyone viewing the page will be able to view the source and see all of the 4000+ customers you have.

Regards
Owain Williams
 
Old November 18th, 2003, 12:20 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

ASP.Net is no more capable than ASP,PHP,perl, etc etc when it comes down to doing this on the client said. Owain's suggestion is about the only option.

You could do it slighly different by means of some hidden frames. If you created the page in question in a frameset that included a frame that was hidden (setting the size of it to 0) then you could write some clever javascript and server-side code to do lookup calls to the server as you typed in the textbox. This wouldn't be terribly fast but would greatly increase the load time of the main form.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set a form as startup form in vb.net 2.0 mallikalapati .NET Framework 2.0 1 February 21st, 2008 09:19 AM
Close all MdiChield form from open one form/Button salman .NET Framework 2.0 6 December 10th, 2007 03:21 AM
Firefox Error when Form Floated / Form locks socoolbrewster CSS Cascading Style Sheets 5 October 6th, 2007 09:59 PM
How to refresh owner form on closing of child form akumarp2p C# 2005 0 December 22nd, 2006 10:27 AM
parent form from child form - urgent plz netfresher C# 1 November 8th, 2006 06:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.