StageLeft
No Lifer
In old school asp if you had a number of links that were going to be displayed - say a list of 1 to 50, although sometimes 3 links and other times 35, or whatever, you could easily loop through something and do a response.write of the appropriate html.
Now, in asp.net what would be the typical way of approaching this? I can make an appropriate method which can make as many link objects as I want and it can set their positioning properties, text, etc. and whatever else, but is there a typical way of going about this? It feels a bit cumbersome to make my own method which would create a link and then set its position as 20 pixels (for instance) below the next one each time and set all of the other required properties, which may be different each time as I crank through a loop.
ALSO: if I want to display some other object at the end of this variable-length link list how would I do that? As opposed to tracking some pixel position variable I'd think the best way to do it would be to simply put that table in the right spot at design time, but this would only work if there is some sort of a placeholder link object that I could put before it - and this link object could take all of the different links or whatever I wanted.
I know the above is not very clear, sorry 🙂
Now, in asp.net what would be the typical way of approaching this? I can make an appropriate method which can make as many link objects as I want and it can set their positioning properties, text, etc. and whatever else, but is there a typical way of going about this? It feels a bit cumbersome to make my own method which would create a link and then set its position as 20 pixels (for instance) below the next one each time and set all of the other required properties, which may be different each time as I crank through a loop.
ALSO: if I want to display some other object at the end of this variable-length link list how would I do that? As opposed to tracking some pixel position variable I'd think the best way to do it would be to simply put that table in the right spot at design time, but this would only work if there is some sort of a placeholder link object that I could put before it - and this link object could take all of the different links or whatever I wanted.
I know the above is not very clear, sorry 🙂