Click here to Skip to main content
15,904,934 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to display the fields of a column retrieved from database in label tool and the values newly entered in the same column of the table should be in textbox tool.?
Posted

1 solution

try this..

ASP.NET
<itemtemplate>
   <asp:label id="lbl" runat="server" text="<%# Eval("DbCol") %>" xmlns:asp="#unknown"></asp:label>
<br />
<asp:textbox id="txt" runat="server" xmlns:asp="#unknown"></asp:textbox>
</itemtemplate>

hope this helps..
 
Share this answer
 
Comments
riodejenris 9-Dec-11 7:39am    
thnks 4 ur help! but the code, which u give i execute shows an output of displaying a label, under the label there is a textbox.

But my Query is,the data retrieved from the database should be shown as label in a grid.....and if i add new empty row at the bottom of the grid using data row fn, the new field should contain only the textbox through which i can enter the values .........

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