dropdownlist值更改gridview中的所有文本框值 [英] dropdownlist values change all text box value in gridview

查看:72
本文介绍了dropdownlist值更改gridview中的所有文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在gridview中,我使用了下拉列表.当我选择下拉列表值时,将显示文本框值

例如:

ddlst1 txtbx1 txtb2
ddlst2 txtb3 txtb4
ddlst3 txtb5 txtb6


在这里,如果ddlst1选择它可以正常工作.如果ddlst2也可以.但是当我再次更改ddlst1时,它也会影响txtb3和txtb4.如何解决此问题?

in gridview i used dropdownlist. when i choose dropdownlist value the text box value ll be display

eg:

ddlst1 txtbx1 txtb2
ddlst2 txtb3 txtb4
ddlst3 txtb5 txtb6


here if ddlst1 select it works correctly.,if ddlst2 also fine., but when i go to change for ddlst1 again it affects txtb3 and txtb4 also.,how to solve this?

推荐答案

您好,

将其带入更新面板并触发触发器.解决该问题的另一种方法是采用隐藏字段并为其分配值.每次检查条件时,请找到隐藏字段"的值并绑定下拉列表.
这不是答案.这是一个简单的建议.

祝一切顺利.
--AK
Hi,

Take it inside update panel and fire the trigger.. Or other way to solve this problem is take hidden field and assign the values to that. On every time check for the condition find the value of hidden field and bind the drop down list.
It''s not an answer. It is a simple suggestion.

All the best.
--AK


这篇关于dropdownlist值更改gridview中的所有文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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