Hi there,
First, my code:
I want to change the Label Control to a Textbox Control once I've triggered a Button.Click event. So my output will be:Code:<asp:Table> <asp:TableRow> <asp:TableCell>Name:</asp:TableCell> <asp:TableCell><asp:Label>John Doe</asp:Label></asp:TableCell> </asp:TableRow> </asp:Table>
Is this possible?Code:<asp:Table> <asp:TableRow> <asp:TableCell>Name:</asp:TableCell> <asp:TableCell><asp:TextBox>John Doe</asp:TextBox></asp:TableCell> </asp:TableRow> </asp:Table>
EDIT: The label part is for display the information from the database. I'm using a button as a trigger to edit that label by changing it to a textbox and I'll be using another button as a trigger to save the changes made in the textbox and then changing it back to a label.




Reply With Quote