Click here to Skip to main content
15,888,300 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 9-Jan-17 5:11am
v2
Comments
What have you tried? What popup you are using? jQuery or bootstrap?
Sunasara Imdadhusen 9-Jan-17 5:01am    
don't write code in comment section, instead use Improve (Edit) question button.
Raja Ganapathy 9-Jan-17 7:34am    
okay sir
Where is the code to show popup on textbox click?
Raja Ganapathy 9-Jan-17 7:33am    
yes sir

1 solution

Can you try something like this:

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


then add this on your control:

JavaScript
onclick="printValue(this);";


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.
 
Share this answer
 
Comments
Raja Ganapathy 10-Jan-17 0:27am    
Hi,
Vincent Maverick Durano

i use this script.pop up is opened but first text box value only coming for another textbox clicking :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900