Hi,
I am new to dotNet, i am developing a sample application,
ASP.Net WebApplication 2005 and the coding part i am doing in C#.
In the Default.aspx i would like to create a Property Sheet,
And number of pages(tabs) in this property sheet should be dynamic.
User enters a value say 4 then 4 Pages should be in the Created when submit button
is cliked.
I would to know how can solve this problem.
What i have in mind is have a System.Windows.Controls.TabControl()
then add items to it in a loop.
How can it be implement as a web control using C#
Any code snippet,suggestion,Ideas ......
regards,
Alex

Dynamic Property Page creation - web app in c#
robhare
Hi Galin Iliev,
Thank you for the reply, is this possible without using Ajax
How would you create the web control without using Ajax
regards,
Alex
Learning VB
yep. It is not as fancy but still
take a look here: http://www.codeproject.com/aspnet/FormTabs.asp
http://forums.asp.net/thread/1529247.aspx
hope this helps
Luis Esteban Valencia Muñoz
This is another trap you got in. It is bit tricky to create dynamically ASP.NET controls.
it would be same if you try to create textboxes by clicking a button. This is because ASP.NET page lifecycle.
You need to do:
Hope this helps
TopDean
Hi Galin Iliev,
Your erailer answer using ASP .Net Ajax seems to be a better solution, but doing that i face the problem of loading the tabs dynamically get the error as value out of range ( same as the one mentioned here http://forums.asp.net/thread/1578910.aspx)
I think there is a bug in the Ajax tool Kit for the Tab Control, are you aware of how to over come this ...
any idea in this regards would be welcomed.
regards,
alex
Brian in London
You need Web control not Windows one.
Take a look at MS ASP.NET Ajax and Tabs Control form the toolkit.
Hope this helps