将Webform分为2部分 [英] split webform into 2 parts

查看:59
本文介绍了将Webform分为2部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在寻找一种拆分形式的方式,其中3/4的形式将包含一个东西,而一小部分(其他的1/4)将包含其他东西.
我只想避免多种形式.

它看起来应该像这样:

-----------------------
| ......... | ................. |
| ......... | ................. |
| ......... | ................. |
| ......... | ................. |
-------- ................. |
| .................................... |
| .................................... |
| .................................... |
| .................................... |
| .................................... |
----------------------

同样,这两个部分都应该执行一些需要服务器端操作的操作(例如insert/update ..),我不希望在更新其中之一时会为整个表单创建回发

我很高兴听到任何解决方案.

cheers

Hi,

I''m looking for a way to split a form in a way that 3/4 of it will contain one thing and the small part (the other 1/4) will contain something else.
I want it just to evoid many forms.

it should look smth like this:

-----------------------
|.........|................. |
|.........|................. |
|.........|................. |
|.........|................. |
-------- ................. |
|........................... |
|........................... |
|........................... |
|........................... |
|........................... |
----------------------

also both parts should do some actions (like insert/update ..) that require server-side actions and I don''t want that when I update one of them it will create a post-back for the whole form

I''d be happy to hear of any solutions for that.

cheers

推荐答案

-----------------------
|.........|................. |
|.........|................. |
|.div 1_1.|.....div 1_2..... | <- Div1
|.........|................. |
-------- ................. |
|........................... |
|........................... |
|........................... | <- Div2
|........................... |
|........................... |
----------------------





<div1>
    <div1_1 width="30%"> ... </div>
    <div1_1 width="70%"> ... </div>
</div>
</br> --line break
<div2> ... </div>





将每个控件组放在单独的更新面板中,以避免整个页面的回发.

祝您编码愉快!
:)





place your each group of controls inside individual update panel to avoid whole page''s postback.

Happy Coding!
:)


这篇关于将Webform分为2部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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