473,671 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1217
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
8388
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 submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
1
2577
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 as possible. Is there any way to turn off this behaviour? Thanks Tom
2
1878
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 path of the file is truncated down to 8.3 format (with the ~1 at the end). When the Windows control is hosted in a windows form (for testing purposes) the full path is displayed. Is there some setting that will allow the full path to be displayed...
3
8165
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 listboxes with values from a database, allow the user to drag and drop from a listbox to a different listbox and would 'move' the item and update the database accordingly? If so, would anyone have any examples of how to do this?
0
8390
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8911
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8819
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8597
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8667
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4402
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.