花式滑动形式不适用于Runat =" server"标签 [英] Fancy sliding form not work with Runat="server" tag

查看:136
本文介绍了花式滑动形式不适用于Runat =" server"标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用花式滑动表格,



http:// tympanus.net/Tutorials/FancySlidingForm/ [ ^ ]



它在html formet中,



现在我想在asp.net网页中使用它,

但是问题是,当我将它(runat =server)删除到表单标签中时,它与runat =server标签无法正常工作

花哨的滑块运行良好,



但如果我删除了runat =server我无法在网站中使用asp.net控件,



(问题:如果我在服务器上运行,

那么

i填充或留空第一步,它总是显示正确滑块底部的tik标志)



所以plz帮助我

i am use a Fancy sliding form,

http://tympanus.net/Tutorials/FancySlidingForm/[^]

it is in html formet,

now i want to use it in asp.net web page,
but the problem is, it is not work properly with runat="server" tag
when i remove it(runat="server") into the form tag, the fancy slider work well,

but if i remove the runat="server" i am not able to use asp.net controls in website,

(problem:if i use run at server,
then
i am fill or left blank the first step, it always show right tik sign at bottom of slider)

so plz help me

推荐答案

为什么需要使用runat =server为滑动表格本身?它只是客户端jquery功能。

runat =server应该只附加到表单中使用的asp.net控件。
Why would you need to use runat="server" for the Sliding Form itself? It is simply client side jquery functionality.
The runat="server" should only be attached to the asp.net controls used in the form.


答案以上是正确的,但我会额外花5分钟向你解释。



当您在Web表单上编写HTML代码时,您可以使用常规HTML或者您可以使用asp.net对象。



这是一个HTML对象< div>< div>

你也可以使用asp.net对象面板,这将是

< asp :panel id =div1runat =server>< / asp:panel>



从技术上讲他们做同样的事情,但是,如果你想访问代码后面的div或面板,你必须使用asp.net对象面板。



您无法在代码背后轻松访问HTML对象。



所以你喜欢的滑块box可能使用HTML和asp.net对象的组合,或者可能是为PHP编写的,只使用HTML元素。



所以它是jquery对象,您将无法使用提交按钮以及所有文本框,您必须将它们转换为asp.net对象才能使您的工作更上一层楼,否则您将无法读取值,并且触发回发到服务器以获取数据。
The answer above is correct, but I will take an extra 5 minutes to explain it to you.

when you code HTML on a web form, you can use regular HTML or you can use asp.net object.

This is a HTML Object <div><div>
You can also use the asp.net object panel which would be
<asp:panel id="div1" runat="server"></asp:panel>

technically they do the same thing, but, if you want to access that div or panel in code behind, you have to use the asp.net object panel.

You can''t access HTML Objects with ease in code behind.

So your fancy slider box is probably uses a combination of both HTML and asp.net objects, or perhaps written for PHP and just uses HTML elements.

So it''s jquery object, you will have trouble with the submit button and perhaps all the textboxes, you would have to convert them to asp.net objects to get to the next level with your work, or else you won''t be able to read the values, and trigger a postback to the server to pick up the data.


这篇关于花式滑动形式不适用于Runat =&quot; server&quot;标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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