I had task in web solution as button when I click on the button it create data list with some controls on data list and when I click second it create second data list and so on I want to know how can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need placeholders like asp:panel, or even another datalist to add your datalists too. But, the basic idea is that, on the button click event, you instantiate a new datalist with controls, and add that datalist to the placeholder.
If there is a well-defined # of datalists, then you could put them in updatepanels and make them visible or invisible after the buttonclick.