On_click文本框内的中继器弹出怎么办? [英] On_click text box pop up inside the repeater how to do it?

查看:164
本文介绍了On_click文本框内的中继器弹出怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将数据表绑定到中继器中.在中继器文本框内可用.如果用户单击文本框.那时候打开弹出窗口,并显示文本框值,然后弹出该对话框.

i have bind the data table in to repeater.inside the repeater textbox are available.if the user click the textbox.That time open the popup and display the textbox value into pop up how to do it.?

<div class="pre-action-link" id="premain685982" style="width:100%;display:block;"><span id="prehide685982" onclick="processCodeBlocks.togglePre(685982);">Hide</span>    <span id="copycode685982" onclick="return processCodeBlocks.copyCode(685982);">Copy Code</span></div><pre lang="C#" id="pre685982" class="notranslate" style="margin-top: 0px;">
<asp:repeater ID="rptr1" runat="server">
	<itemtemplate>
	
	
	<asp:textbox ID="tbxtagv" runat="server" Text=''<%# Eval("TAG") %>'' Width="71%" ReadOnly="true"
	Height="17px" TextMode="MultiLine">   

	<asp:textbox ID="tbxtagdescv" runat="server" Text=''<%# Eval("TAG_DESC") %>'' Width="100%"
 	 ReadOnly="true" Height="17px" TextMode="MultiLine">
 	</tr>
  	</itemtemplate>
 </asp:repeater>



我尝试过的事情:

我已经使用了一些脚本,但是这不起作用.



What I have tried:

i have use some script but this is not working.

推荐答案

您可以尝试执行以下操作吗:

Can you try something like this:

<script type="text/javascript" >
        function printValue(obj){
            alert(document.getElementById(obj.id).value);
        }
</script>



然后将其添加到您的控件中:



then add this on your control:

onclick="printValue(this);";



PS:如果您在获取TextBox的只读值时遇到麻烦,请改用Label,因为它旨在显示只读文本.



PS: If you are having trouble getting read-only values for TextBox, then use Label instead since it is meant to display read-only text.


这篇关于On_click文本框内的中继器弹出怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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