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

webform questions about listbox and html

I have a couple of questions about coding (using vb.net) to a webform.
Thanks in advance for your help. I'm a little new to vb.net, but a VB
veteran.
1) When the page loads, how can I generate html at the top of the page?

For example...

If some variable = 1 then the html at the top of the page will be "hello"
If some variable = 2 then the html at the top of the page will be "hello
world"... etc...
2) I linked my project to an access database on a server, I had it generate
a dataset as well. I dropped a dropdownlist control on my page and told it
to get the data from that dataset. The control properties 'found' the
table and the field that I wanted to use to populate the list. When I run
the page, the drop down list is empty. Any ideas what I'm doing wrong?

3) I can't find a way to generate a simple on a webpage. I found some
examples on the web, but it requires like 4 pages and 200 lines of code and
it still didn't work. Does anyone know of some simple code to make a graph
on a webform? I found some $400 packages that will do every kind of graph
you want, but I'm just looking for something easy.
Thanks,
Chris L.

Nov 18 '05 #1
1 1199
1) You could use Response.Write, or you could put a label at the top of your
page and set the Label.Text property.

2) You have a bug in your code

3) The simplest way is to just make a character based bar chart, as
demonstrated here:
http://www.devx.com/Enterprise/Article/11194/

If you need it to look more polished then you you could use the graphics
namespace:
http://msdn.microsoft.com/msdnmag/is...w/default.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"cloverme" <ad*****@yahoo.com> wrote in message
news:Xn*********************************@140.99.99 .130...
I have a couple of questions about coding (using vb.net) to a webform.
Thanks in advance for your help. I'm a little new to vb.net, but a VB
veteran.
1) When the page loads, how can I generate html at the top of the page?

For example...

If some variable = 1 then the html at the top of the page will be "hello"
If some variable = 2 then the html at the top of the page will be "hello
world"... etc...
2) I linked my project to an access database on a server, I had it generate a dataset as well. I dropped a dropdownlist control on my page and told it to get the data from that dataset. The control properties 'found' the
table and the field that I wanted to use to populate the list. When I run
the page, the drop down list is empty. Any ideas what I'm doing wrong?

3) I can't find a way to generate a simple on a webpage. I found some
examples on the web, but it requires like 4 pages and 200 lines of code and it still didn't work. Does anyone know of some simple code to make a graph on a webform? I found some $400 packages that will do every kind of graph
you want, but I'm just looking for something easy.
Thanks,
Chris L.

Nov 18 '05 #2

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

Similar topics

2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: Tom Wild | last post by:
Hi I have a listbox on a webform which has Autopostback set to true. When the user selects an item in the listbox and the form reloads, the listbox scrolls to put the selected item as high up...
2
by: Matt Theule | last post by:
I need to be able to allow users to drag files to a list box on a web page. To this end, I created a Windows Control and hosted it in a WebForm. When the file is dropped onto the listbox, the...
3
by: James Radke | last post by:
Hello, I was curious, is it possible to create drag and drop interface from listbox to listbox on a webform application (i.e. vb.net)? Basically the application would need to load multiple...
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: 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
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...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.