473,386 Members | 1,860 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,386 software developers and data experts.

How do I dynamically create check boxes and text labels???

Hey guys,

I really appreciate any advice you all can give me. I'm developing a
..NET 2.0 ASP page using VS 2005. This page will display "events". There is a
MAIN event, and "sub" events. I really have no idea how many sub events there
will be. I'll be retrieving the list in a query, and displaying the list
top-down. However, I don't want to create it in a list-box because I will
also be adding a check-box after each one. So basically, I'd like to have
them be dynamically created depending on how many there are. A label, and a
check box, for each one. Although there is no set limit (probably be less
than 10), I don't want to limit myself to that as there might be the
possibility of 100 or so at some point.

Can anyone give me some insight on how I would do this? And more
specifically, how do I define it's space in the page "realestate"?

Thanks!!!

Todd
Apr 3 '07 #1
6 2509
"Todd Jaspers" <To*********@discussions.microsoft.comwrote in message
news:DC**********************************@microsof t.com...
Can anyone give me some insight on how I would do this? And more
specifically, how do I define it's space in the page "realestate"?
Use a GridView and enable paging:
http://www.google.co.uk/search?sourc...asp%3aGridView
Apr 3 '07 #2
Thanks Mark, I appreciate the response, however... I have to use the CRM SDK
rather than connect to it directly through SQL. So, when I say Query... I
really mean that I'm getting the data from an SDK and not through SQL.
Thanks,

Todd

"Mark Rae" wrote:
"Todd Jaspers" <To*********@discussions.microsoft.comwrote in message
news:DC**********************************@microsof t.com...
Can anyone give me some insight on how I would do this? And more
specifically, how do I define it's space in the page "realestate"?

Use a GridView and enable paging:
http://www.google.co.uk/search?sourc...asp%3aGridView
Apr 3 '07 #3
"Todd Jaspers" <To*********@discussions.microsoft.comwrote in message
news:29**********************************@microsof t.com...
I have to use the CRM SDK rather than connect to it directly through SQL.
Why didn't you say that in the OP...?
So, when I say Query... I really mean that I'm getting the data from an
SDK
and not through SQL.
In what format is the data returned from the SDK, then...?
Apr 3 '07 #4

Hi Mark, thanks...

It's returned in a record set.
Todd
"Mark Rae" wrote:
In what format is the data returned from the SDK, then...?
Apr 3 '07 #5
"Todd Jaspers" <To*********@discussions.microsoft.comwrote in message
news:0B**********************************@microsof t.com...
It's returned in a record set.
You mean ADO...?
Apr 3 '07 #6
Todd,
This is really an ASP.NET group question, not a C# group question. You are
referring (I hope) to ".NET 2.0 ASP.NET (ASPX) page using VS 2005."
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Todd Jaspers" wrote:
Hey guys,

I really appreciate any advice you all can give me. I'm developing a
.NET 2.0 ASP page using VS 2005. This page will display "events". There is a
MAIN event, and "sub" events. I really have no idea how many sub events there
will be. I'll be retrieving the list in a query, and displaying the list
top-down. However, I don't want to create it in a list-box because I will
also be adding a check-box after each one. So basically, I'd like to have
them be dynamically created depending on how many there are. A label, and a
check box, for each one. Although there is no set limit (probably be less
than 10), I don't want to limit myself to that as there might be the
possibility of 100 or so at some point.

Can anyone give me some insight on how I would do this? And more
specifically, how do I define it's space in the page "realestate"?

Thanks!!!

Todd
Apr 3 '07 #7

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

Similar topics

3
by: kmacon | last post by:
I have a form that contains a command button. The command button's OnClick event builds a report using the CreateReport and CreateReportControl functions and then opens the main report. I set...
8
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image...
1
by: Jeremy S | last post by:
I would like to dynamically add up to 10 drop-down list boxes and 10 check boxes (each with a dynamically populated label) at runtime - the content of which is also determined at runtime (from SQL...
2
by: filbennett | last post by:
Hi Everyone, I'm generally unfamiliar with Access form design, but have programmed Cold Fusion applications for a couple of years. I'd like to build a data entry form in Access that allows the...
8
by: SalamElias | last post by:
I create 2 groupes of checkboxes dynamically (I don't use checkboxlist) for 2 differnet zones in my aspx web page and I assign a "onClick" javascript handler by group., lets say the first 4 chboxes...
12
by: vbnewbie | last post by:
I am having problems accessing properties of dynamically generated objects in VB2005. Can someone please help? In a nutshell: My app creates an equal number of checkboxes and labels that share the...
0
by: rwiegel | last post by:
I want to dynamically add a custom control to a page in ASP.NET. I have a custom control called BillControl with public properties for userID, userName, and Amount. In the Page_Load of the aspx...
1
by: =?Utf-8?B?bWFya203NQ==?= | last post by:
I have a simple page i'm trying to do dynmaically.. i have a page called submitcomments.aspx with the .cs codebehind.. before i created everything in design view.. now i've ripped that out and...
1
by: semomaniz | last post by:
I have a form where i have created the form dynamically. First i manually added a panel control to the web page. Then i added another panel dynamically and inside this panel i created tables. I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.