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

Pls Help me, need to create check boxes htomail style at run time

Hi All,

Please help me to develop this one page please.
I have a page on which I have a label control, just one label with no
text.
Next I start a loop to read the headers of emails and during each loop
round, I add rows to table. Now ok this plain text et addition is not a
problem. In one cell I want to add a check box at run time and here
don't
know how to that.

Just to give u an idea I am pasting code for somethng else which has teh
same concept.
In a string variable how to store " double coutes and how to give a
seperate
ID to a control created each time. Do I need to create a checkbox
control
array? Once controls are there I am sure I will be able go through them
one
by one and see which one was checked, please guys I will be really thank
full if you people can help me here pls.

Best Regards,

Usman
Dim subTotal As Decimal, table As String
table = "<TABLE BORDER='1'1><TR>"
table = table & "<TD><B>Product Name</B></TD><TD><B>Quantity</B></TD>"
table = table & "<TD><B>Price</B></TD><TD><B>Subtotal</B></TD>"
While Reader.Read
table = table & "<TR><TD>
ProdName = Reader.Item("ProductName")
ProdID = Reader.Item("ProductID")
ProdPrice = REader.Item("UnitPrice")
table = table & prodName & "</TD>"
table = table & "<TD ALIGN= 'right'>" & Session(CStr(prodID)) & "</TD>"
table = table & "<TD ALIGN= 'right'>" & prodPrice & "</TD>"
subTota; = prodPrice * Session(CStr(prodID))
table = table & '<TD ALIGN= 'right'> & subtotal & "</TD></TR>"
total = total + subTotal

End While
table = table & "</TABLE>"
table = table & "<P><B>Your total is " & total.ToString & "</B></P>"
lblBasket.Text = table
SqlConnection1.close()
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
1 1280
* Usman Ghani <us***@gulfnetksa.com> scripsit:
Please help me to develop this one page please.
I have a page on which I have a label control, just one label with no
text.
Next I start a loop to read the headers of emails and during each loop
round, I add rows to table. Now ok this plain text et addition is not a
problem. In one cell I want to add a check box at run time and here
don't
know how to that.

Just to give u an idea I am pasting code for somethng else which has teh
same concept.
In a string variable how to store " double coutes and how to give a
seperate
ID to a control created each time. Do I need to create a checkbox
control
array? Once controls are there I am sure I will be able go through them
one
by one and see which one was checked, please guys I will be really thank
full if you people can help me here pls.


You may want to ask questions like this in the ASP.NET group:

<news://msnews.microsoft.com/microsoft.public.dotnet.framework.aspnet>

Web interface:

<http://msdn.microsoft.com/newsgroups/default.asp?url=/newsgroups/loadframes.asp?icp=msdn&slcid=us&newsgroup=microso ft.public.dotnet.framework.aspnet>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

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

Similar topics

2
by: Shabam | last post by:
I was told that dotnet generates classes for input tags like this: <span class="hello"><input type= "checkbox"></span> The problem here is, the "input" class is overriding the "hello" class....
11
by: Jack | last post by:
I have a asp form where among others there are few text boxes and one check box. The checkbox is to indicate whether the entry is final. The checkbox is attahced to a field in table of type...
1
by: Jim in Arizona | last post by:
I'm having dificulty figuring out how to process multiple check boxes on a web form. Let's say I have three check boxes: cbox1 cbox2 cbox3 The only way I can think of to code the...
10
by: Jim in Arizona | last post by:
I'm having dificulty figuring out how to process multiple check boxes on a web form. Let's say I have three check boxes: cbox1 cbox2 cbox3 The only way I can think of to code the...
9
by: pic078 via AccessMonster.com | last post by:
I need serious help - I have a frontend/backend Access database (2 MDE Files) that remains stuck in task manager after exiting the application - you can't reopen database after exiting as a result...
4
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my...
1
by: jerger | last post by:
I have not made a program or page from start yet. I have made modifications to our signoff asp pages like changing the questions, texts, shortening field lengths etc... I also have copied the files...
11
by: Patrick | last post by:
Trying this question again in a different way and expanding it to another newsgroup. Looking for how I would do this. For an html form; Say I have three check boxes A, B, and C . When I click...
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: 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
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.