Adding buttons dynamically to a form

P

Paddy

The problem I am facing is as follows:
I am populating an HTML table on my webpage with rows of data from a
database. The rows may be sometimes 10 and sometimes say,3. I have two
buttons on that page "Next" and "Previous" which I want displayed just
a couple of lines below the table dynamically. Thus the positions of
these buttons would vary depending on how many rows are rendered. I
was wondering whether there is a programmatic way of doing this. I
tried quite a few times doing this via the Designer in Visual Studio
and it always gets messed up.

Would appreciate any help.
 
D

Dave Bush

I either completely misunderstand your question or you misunderstand
HTML.

If you are designing your web page using html in flow layout (as you
should be) the next and previous buttons will display relative to the
information above it and there won't be any problem.

If you are in absolute positioning mode, you will have a problem. But
you shouldn't be in absolute positioning mode.

-----Original Message-----
From: Paddy [mailto:p[email protected]]
Posted At: Thursday, November 29, 2007 1:29 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Adding buttons dynamically to a form
Subject: Adding buttons dynamically to a form

The problem I am facing is as follows:
I am populating an HTML table on my webpage with rows of data from a
database. The rows may be sometimes 10 and sometimes say,3. I have two
buttons on that page "Next" and "Previous" which I want displayed just
a couple of lines below the table dynamically. Thus the positions of
these buttons would vary depending on how many rows are rendered. I
was wondering whether there is a programmatic way of doing this. I
tried quite a few times doing this via the Designer in Visual Studio
and it always gets messed up.

Would appreciate any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top