ajax2.0问题

meixiaofeng 2007-11-26 11:21:02
UpdatePanel上多个dropdownlist,autopostback=true
执行selectindexchange事件,其他dropdownlist都有刷新,有什么办法
使其他downlist不刷新
...全文
360 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
jeremyyang824 2007-11-26
  • 打赏
  • 举报
回复
放在不同的updatepanel,其中一个刷新,其他panel也会刷新的
--------------------------------------------------
UpdateMode="Conditional"
suyiming 2007-11-26
  • 打赏
  • 举报
回复
放在不同的updatepanel,其中一个刷新,其他panel也会刷新的
================================

不会啊 我都是这样做的啊 没有刷新哦
你说刷新的是它会跳动吧?
jeremyyang824 2007-11-26
  • 打赏
  • 举报
回复
Updatepanel有2个属性 UpdateMode="Conditional" ChildrenAsTriggers="true"
意思是由该updatepanel中的子控件触发该updatepanel的更新

如果要触发更新的控件不在updatepanel中则使用UpdateMode="Conditional"
然后在updatepanel中添加子节点
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnWorkloadAdd" />
<asp:AsyncPostBackTrigger ControlID="btnWorkloadDele" />
</Triggers>
triggers表示触发updatepanel更新的控件集合
meixiaofeng 2007-11-26
  • 打赏
  • 举报
回复
放在不同的updatepanel,其中一个刷新,其他panel也会刷新的
JYYCOM 2007-11-26
  • 打赏
  • 举报
回复
一个updatepanel可以对应一个trigger。
如果你有两个dropdownlist
要求联动,只要把第二个放到updatepanel里面,trigger设置为第一个updatepanel即可
JYYCOM 2007-11-26
  • 打赏
  • 举报
回复
为什么要把所有的dropdownlist放到一个updatepanel里面?
hanbb1982 2007-11-26
  • 打赏
  • 举报
回复
不要放在同一个UpdatePanel里面,因为,如果你做刷新的时候,它是整个UpdatePanel刷新的,那么你其它的dropdownlist也会刷新的吧。
chuxue1342 2007-11-26
  • 打赏
  • 举报
回复
放在不同的updatepanel里面.设置更新模式就好!
qq22345111 2007-11-26
  • 打赏
  • 举报
回复
<form   id="form1"   runat="server"   enctype="multipart/form-data"> 
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" Width="154px">
<asp:ListItem> 1 </asp:ListItem>
<asp:ListItem> 2 </asp:ListItem>
<asp:ListItem> 3 </asp:ListItem>
<asp:ListItem> 4 </asp:ListItem>
</asp:DropDownList>
<br />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="true" Width="155px">
<asp:ListItem> 1 </asp:ListItem>
<asp:ListItem> 2 </asp:ListItem>
<asp:ListItem> 3 </asp:ListItem>
<asp:ListItem> 4 </asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
<asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="true" Width="156px">
<asp:ListItem> 1 </asp:ListItem>
<asp:ListItem> 2 </asp:ListItem>
<asp:ListItem> 3 </asp:ListItem>
<asp:ListItem> 4 </asp:ListItem>
</asp:DropDownList>
</div>
</form>

放不同的Panel

CeShenBeiWang 2007-11-26
  • 打赏
  • 举报
回复
不要放到同一个UpdatePanel中 只把需要刷新的控件放到UpdatePanel中就好了
jeremyyang824 2007-11-26
  • 打赏
  • 举报
回复
<form id="form1" runat="server" enctype="multipart/form-data">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" Width="154px">
<asp:ListItem> 1 </asp:ListItem>
<asp:ListItem> 2 </asp:ListItem>
<asp:ListItem> 3 </asp:ListItem>
<asp:ListItem> 4 </asp:ListItem>
</asp:DropDownList>
<br />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="true" Width="155px">
<asp:ListItem> 1 </asp:ListItem>
<asp:ListItem> 2 </asp:ListItem>
<asp:ListItem> 3 </asp:ListItem>
<asp:ListItem> 4 </asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
<asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="true" Width="156px">
<asp:ListItem> 1 </asp:ListItem>
<asp:ListItem> 2 </asp:ListItem>
<asp:ListItem> 3 </asp:ListItem>
<asp:ListItem> 4 </asp:ListItem>
</asp:DropDownList>
</div>
</form>
zmm12 2007-11-26
  • 打赏
  • 举报
回复
<form id="form1" runat="server" enctype="multipart/form-data">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" Width="154px">
<asp:ListItem> 1 </asp:ListItem>
<asp:ListItem> 2 </asp:ListItem>
<asp:ListItem> 3 </asp:ListItem>
<asp:ListItem> 4 </asp:ListItem>
</asp:DropDownList>
<br />
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="true" Width="155px">
<asp:ListItem> 1 </asp:ListItem>
<asp:ListItem> 2 </asp:ListItem>
<asp:ListItem> 3 </asp:ListItem>
<asp:ListItem> 4 </asp:ListItem>
</asp:DropDownList>

</ContentTemplate>
</asp:UpdatePanel>
<asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="true" Width="156px">
<asp:ListItem> 1 </asp:ListItem>
<asp:ListItem> 2 </asp:ListItem>
<asp:ListItem> 3 </asp:ListItem>
<asp:ListItem> 4 </asp:ListItem>
</asp:DropDownList>
</div>
</form>
shawn_yang 2007-11-26
  • 打赏
  • 举报
回复
放在不同的UpdatePanel
meixiaofeng 2007-11-26
  • 打赏
  • 举报
回复
<form id="form1" runat="server" enctype="multipart/form-data">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" Width="154px">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
</asp:DropDownList>
<br />
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="true" Width="155px">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
</asp:DropDownList>

</ContentTemplate>
</asp:UpdatePanel>
<asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="true" Width="156px">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
</asp:DropDownList>
</div>
</form>


点downlist1的时候,downlist2不刷新
内容概要:SSD2828QN4是一款MIPI主桥接芯片,用于连接应用处理器与传统并行LCD接口及支持MIPI从属接口的LCD驱动器。该芯片支持最高每通道1Gbps的串行链路速度,最多可配置4个数据通道,显著减少了信号数量。它支持多种接口模式,包括RGB+SPI组合接口,适用于驱动智能或非智能显示面板,并能通过命令模式和视频模式传输数据。芯片内置时钟和复位模块、外部接口、协议控制单元(PCU)、包处理单元(PPU)、错误校正码/循环冗余校验(ECC/CRC)模块、长包和命令缓冲区、D-PHY控制器、模拟收发器以及内部锁相环(PLL),确保了高效的数据传输和系统稳定性。此外,文档详细描述了芯片的引脚分配、寄存器设置、操作模式、电源序列、时序特性等关键参数,为开发者提供了全面的技术指导。 适合人群:具备一定硬件设计基础,从事嵌入式系统开发、显示技术研究的研发人员。 使用场景及目标:①实现应用处理器与MIPI兼容显示屏之间的高速数据传输;②优化显示系统的功耗表现,减少电磁干扰(EMI);③通过灵活配置不同接口模式来适应各种显示设备的需求。 阅读建议:此文档面向具有一定电子工程背景的专业人士,建议读者结合实际项目需求深入理解各章节内容,特别是关于寄存器配置、时序要求等方面的具体说明。对于初次接触此类技术的开发者而言,建议先熟悉基本概念再逐步掌握高级功能的应用方法。

62,271

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧