选项卡控件提交按钮没有重新加载? [英] tab control submit button without reload?

查看:63
本文介绍了选项卡控件提交按钮没有重新加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我使用htmlui tab.now做了简单的应用程序。现在我需要添加提交表单而无需重新加载或刷新。



我有以下Code.Please任何人帮助前进。







I have made simple application using htmlui tab.now I need to add submitting the form without reload or refresh.

I have following Code.Please anyone help to move forward.


<body>
    <form id="form1" runat="server">
        <div id="tabContainer">

    <table style="width: 100%;">
                            <tr>
                                <td>
                                    <asp:Label ID="Label1" runat="server" Text="Name"></asp:Label></td>
                                <td>
                                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>                                
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" runat="server" Text="Email Id"></asp:Label></td>
                                <td>
                                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox></td>                                
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label3" runat="server" Text="Subject"></asp:Label></td>
                                <td>
                                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label4" runat="server" Text="Your Question"></asp:Label></td>
                                <td>
                                    <asp:TextBox ID="TextBox5" runat="server" TextMode="MultiLine"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label5" runat="server" Text=""></asp:Label></td>
                                <td>
                                    <asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click1" /></td>
                            </tr>
                        </table>
              </div>
    </form>
  
</body>

推荐答案

您可以在不使用更新重新加载页面的情况下进行回发面板或使用jquery librery的 ajax 方法。



使用更新面板很容易实现 http://ajax.net-tutorials.com/controls/updatepanel-control / [ ^ ]。



jQuery ajax方法将要求你做一些额外的编码。 [ ] [ ^ ]
You can do the post back without reloading the page by using update panels or by using ajax method of jquery librery.

using update panel is easy to implement http://ajax.net-tutorials.com/controls/updatepanel-control/[^].

jQuery ajax method will require you to do a bit of extra coding. [][^]


试试这个链接你在jquery中有关于标签的一些想法..



http://jetlogs.org/jquery/jquery_ajax_tabs.html# [< a href =http://jetlogs.org/jquery/jquery_ajax_tabs.html#\"target =_ blanktitle =New Window> ^ ]
Try This Link You got Some Ideas about Tabs in jquery..

http://jetlogs.org/jquery/jquery_ajax_tabs.html#[^]


提交没有重载,你需要Ajax(XmlHttp,iframe),你也可以直接使用jquery的Ajax函数如下,

To submit without reload, you need Ajax(XmlHttp, iframe), you can also directly use jquery''s Ajax function like following,
function submitForm(){var frm =


这篇关于选项卡控件提交按钮没有重新加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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