English 中文(简体)
在我更新网页时,数据自动插入?
原标题:Data inserts automatically when I refresh the page ?

我有2个文本箱和1个顿。

目标是节省关于纽芬兰的点击和空洞文本箱的文字箱数据,使之准备好进入下一个条目。

即便文本箱在纽顿被点击后发现空洞,问题也依然存在。 如果我重新启用该网页,最后插入的数值自动输入数据库。

页: 1

<script type="text/javascript">
$(document).ready(function () {
    $("#Time").val("");
    $("#Title").val("");
});

</script>
<%Html.EnableClientValidation(); %>
<% using (Html.BeginForm())
{ %>
<div id="fullform">
<h2>Enter the program list</h2>
<div id="CreateData">
    <div>
        <%:Html.LabelFor(m=>m.Year) %>
    </div>
    <div>
        <%:Html.TextBoxFor(m=>m.Year) %>
    </div>
    <div>
        <table>
            <tr>
                <td><%:Html.LabelFor(m=>m.Time) %></td>
                <td><%:Html.LabelFor(m=>m.Title) %></td>
                <td></td>
            </tr>
            <tr>
                <td><%:Html.TextBoxFor(m => m.Time)%></td>
                <td><%:Html.TextBoxFor(m=>m.Title) %></td>
                <td><input type="image" value="Register"     src="../../Content/images/btnAdd.png"/></td>
            </tr>
        </table>
    </div>

What am I doing wrong??

最佳回答

I suspect your problem might be caused by the page refresh itself, which could re-posting your previous data to the server.

在您的网页上公布数据之后,你可以改用另一页?

http://en.wikipedia.org

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签