473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.
Nov 29 '07 #1
1 1675
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:pa***************@gmail.com]
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.

Nov 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RussC | last post by:
My C# app has a toolbar with 12 or so buttons on it, all created via the designer. In some circumstances we need to add one or two buttons to it dynamically. I have code that does this and it...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
0
by: Sinisa Ruzin | last post by:
Hi all, I had problem with dynamically adding/removing controls;ascx, Controls.Add(Page.LoadControl... in the same page of the IBuySpy portal. ASP.NET, C#. I added buttons to the main ASCX loaded...
3
by: benoit | last post by:
using this usercontrol - http://www.denisbauer.com/ASPNETControls/DynamicControlsPlaceholder.aspx - I manage to create several inputfields and buttons, depending on what user needs. works fine ...
1
by: seanmayhew | last post by:
I have a form page that that while editing saves the data to an xml doc before submitting to db. On each page unload it saves the xmldoc as the user can add multiple items to the company like...
6
by: Nathan Sokalski | last post by:
I am trying to dynamically add controls to my page, but am having trouble with controls such as buttons. I have been able to add simple controls such as Label controls, because they can be placed...
3
by: Byron Hopp | last post by:
Anybody have code to add a ToolBar, and its buttons to a MDI Child window. I have added the Toolbar, and added the buttons, but how do you determine what the button is going to execute upon the...
22
by: Saul | last post by:
I have a set of radio buttons that are created dynamically, after rendered I try loop thru this set by getting the length of the set, but I keep getting an error stating the element is undefined. I...
11
by: kinannawaz | last post by:
HELP NEEDED IN C# SHARP?? I have been working on a project in c sharp i am trying to add buttons to the panel in my form when the user clicks a button "add more". How will i do that add buttons...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.