刷新表格数据 [英] Refresh form data

查看:64
本文介绍了刷新表格数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个包含10个文本框,3个dropdownLists,2个单选按钮的网页.我想在单击提交"按钮后使表格刷新功能.我这样尝试过:-


Hi,

I have created web page containing 10 textboxes, 3 dropdownLists,2 radio buttons. i want to make form refresh function after clicking submit button. I tried like this :-


refresh()
{
textbox1.text=" ";
textbox2.text=" " ;
....
.
.
.
textbox10.text=" " ;
dropdownlist1.selectedindex=0;
}

submit button_click()
{
....
refresh();
}



提交按钮后,我想重置表单控件并向数据库中再更新一条记录.



I want to reset the form controls and update one more record into database after submitting the button.

推荐答案

您的代码将帮助清除您在页面
但是如果要将数据存储在数据库中,则意味着必须为此编写更多代码,
Your code will help to clear all the data what you enter in the page
but if you want to store the data in database means you have to write more code for that,


这篇关于刷新表格数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆