Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to edit text in textbox on click of button in datalist
piya p
Apr 25 2014 1:30 AM
1.1k
Reply
I a using datalist in it I am using 1 button and 1 textbox.
How to edit text in text box on click of button?
My datalist code is:
<asp:DataList ID="datalist" RepeatDirection="Horizontal" RepeatColumns="6" AlternateText=" " runat="server" Height="102px" Width="229px" CellSpacing="5" >
<ItemTemplate >
<asp:TextBox ID="txt" runat="server" Text='<%# Eval("AName") %>' ReadOnly="true" Enabled="false" />
<asp:Button ID="edit" runat="server" Text="Edit" Height="30" Width="40" AlternateText=" " OnClick="edit_Click" CommandArgument='<%# Eval("AName") %>' CommandName="manageWiki" CausesValidation="True">
</asp:Button>
</ItemTemplate>
</asp:DataList>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to close popup window when next window is coming
How to redirect to login after session out?