I have an issue with a popup in Asp.net using AJAX modalpoup extender. Is it possible to show one kind of popup when the user edits few textboxes and the other kind of popup for the remaining textboxes.

我使用AJAX modalpoup扩展程序在Asp.net中弹出一个问题。当用户编辑少量文本框时可以显示一种弹出窗口,而剩余文本框可以显示另一种弹出窗口。

I guess it is possible with some javascript function. Could someone help me out?

我想这有可能与一些JavaScript功能。有人可以帮帮我吗?

Ex: Only when txtbox1's value is changed, it should show me popup1 when the save button is clicked. Or else popup2.

例如:只有当txtbox1的值改变时,它才会在单击保存按钮时显示popup1。或者popup2。

Thanks in advance!

提前致谢!

1 个解决方案

#1


1

This might be something that is limited by the fact that you're using ASP.net's modulapopup. Have you tried looking into jQuery?

这可能是因为您正在使用ASP.net的modulapopup这一事实。你试过调查jQuery吗?

For example, you could assign event handlers to the specific buttons/textboxes and have them trigger different events - which you would then handle accordingly, i.e. displaying different popups. Take a look at jQuery UI, specifically their Dialog demo.

例如,您可以将事件处理程序分配给特定按钮/文本框,并让它们触发不同的事件 - 然后您可以相应地处理它们,即显示不同的弹出窗口。看看jQuery UI,特别是他们的Dialog演示。

更多相关文章

  1. Github推送事件签名不匹配
  2. 在鼠标悬停事件中使用Javascript隐藏内容
  3. js点击button按钮跳转到另一个新页面
  4. 谷歌Chrome复制了JavaScript的“焦点”事件
  5. 我可以禁用“后退”按钮浏览器功能吗?
  6. 当页面上有多个按钮时,按钮样式在页面加载上有厚的边框
  7. js“DOM事件”之鼠标事件、js的测试方法、js代码的放置位置
  8. 如何禁用IE和Firefox中的后退按钮? [重复]
  9. 使用Jquery Ajax更改按钮的颜色(从外部PHP文件接收颜色)

随机推荐

  1. android 跑马灯效果及相关
  2. Android CTS 测试总结
  3. Android中构建数据业务应用
  4. Android 源码编译 文件系统制作
  5. Java培训出身,今获阿里Android岗offer,大专
  6. Android Studio 小提示,新建Activity
  7. Android中蓝牙使用步骤小结
  8. ANDROID音频系统散记
  9. Android(安卓)Content Provider 测试
  10. 【Android】关于序列化分析的一些好文分