Take the 2-minute tour ×

I would like to receive user input from a JavaScript prompt box, save the value entered and then insert the value into a database. I am using VB.Net and MS SQL Server 2008. How can I do this? I tried using an inputbox, but it didn't popup like a prompt box, but rather, I had to click on it for it to show up, which is not user-friendly. Is there a way I can achieve what I want to?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Do you mean something like

var res = prompt("Please enter some data","default data");
if (res !="" && res != "default data") {
  location = "someserverprocess.asp?res="+escape(res);
share|improve this answer
I still need to fine tune it, but this is a great start. Thanks! :) –  CodingInCircles Mar 31 '11 at 12:38
add comment

Your Answer


