I would like to add elements (paragraphs to be specific) to webpage after clicking a button with some time delay. Basicly in pseudocode I want to do something like this:
OnButtonClick()
{
for (int i=0; i<10; i++)
{
AddParagraph("Paragraph "+i); // and make it visible
Delay(1000);
}
}
However I want to make it visible for the user. Everything I've made so far is blocking the UI for 10 seconds and then showing it all at once. I don't mind blocking user interaction, but I want to show one new paragraph every second.
Is it possible to achive that? I'm pretty new to .NET so please try keep it simple. I need no more then "working" solution.