Adding buttons dynamically to a form

  • Thread starter Thread starter Paddy
  • Start date Start date
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.
 
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.
 
Back
Top