I want to create a label or textbox based on database column value..
For example:
I have a database table column value Casual Leave,Medical Leave,Annual leave,etc.. I want to create dynamic label and corresponding textbox for the above column value.
I want the control like this..
Casual Leave : Textbox1
Medical Leave: Textbox2
Annul Leave : Textbox3
etc based on table value
what i do? I can’t do this. please help me…
Look into using an ASP repeater. Really simple. You define a template of controls which will be used to create the dynamic instances (or rows in your case) when bound to the data source.