You are here:

Active Server Pages Programming (ASP)/onchange event run SQL query on fly without submitting form

Advertisement


Question
I have a number of textbox which I generated from a database depending on the reconds. Onchange of one of the textbox I need to get price for that part on textbox form database. how do i run sql query on fly without submitting my main form. please help me.

thanks in advance

regards

jignesh


Answer
Hi

You can't do that without submitting the form to get the price.

You have to submit the page and get the value and populate you can use onblur to submit the form. something like this

<input onblur="document.formname.submit()"


Happy programming

-Srini

Active Server Pages Programming (ASP)

All Answers


Answers by Expert:


Ask Experts

Volunteer


Srini Nagarajan

Expertise

I can answer any kind of questions in ASP.NET, C#, VB.NET, SharePoint 2007, ASP, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience

Contact me if you need any custom development on ASP.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder.

©2012 About.com, a part of The New York Times Company. All rights reserved.