Click here to Skip to main content
15,908,675 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I want some help.
I want to add my same user control many times dynamically.
Like,if number of replies to one ticket is more than one,then it automatically add my user control.

Tic. No. Reply No. Message
456 .... 1 ...... hello
456 .... 2 ...... india
456 .... 3 ...... vijay
456 .... 4 ...... america
456 .... 5 ...... switzerland

*dots used for spaces.It renders nothing.just to show a table

Then my control should appear 5 times and appears different message in every user control.

Thanks in advance.
Posted
Updated 5-Apr-11 20:35pm
v3
Comments
[no name] 6-Apr-11 1:55am    
you should use web use control

Please refer to this article here on CP: Dynamically add and remove user controls[^].

That will tell you all you need to know.

Happy coding!
 
Share this answer
 
v2
Comments
Wendelius 5-Apr-11 15:21pm    
Good link, my 5
try this

Link :[^]
 
Share this answer
 
Comments
leonidasvijay 6-Apr-11 2:21am    
I don't understand Vb.
Please send me in c#
Mahendra.p25 6-Apr-11 2:36am    
try this Link

http://support.microsoft.com/kb/317794
You can make use of loops for that. You will need to do this in the PreRender event of the page and make sure you add it on all the postbacks.
 
Share this answer
 
Refer this Link http://www.devx.com/codemag/Article/20144/0/page/2[^] am not sure but this link will help u .....


All The Best
 
Share this answer
 

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