开发者

Using the input in a Prompt Box and saving it to the database

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 achie开发者_C百科ve what I want to?


Do you mean something like

<script>
var res = prompt("Please enter some data","default data");
if (res !="" && res != "default data") {
  location = "someserverprocess.asp?res="+escape(res);
}
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜