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

Updating data using VWD Express VB code

I'm fairly green to this web developer thing, especially when it come
to data access, so forgive my ignorance.

I've made a web page using Web Developer Express (2005). I've got it
hooked up to SQL Express 2005 by dropping SQLDataSource, GridView and
DetailsView components onto the page. So now I've got a webpage that
can display and modify data in my database and add and delete rows.
However this is all done with the components and I have not written
any code to do this (pretty cool, actually).

Now I'm ready for the next step, but I don't know how to do it.

Here's an example of what I would like to do.

I would like to have a drop down list that is populated from a field
in the database, for example name. (I know who to do this part). I
might have 2 or three of these drop downs so that I can choose more
than one name or the same name more than once.

Once all the drop downs are selected (or left blank), I would like to
be able to click a submit button, and then code will look at the names
in the drop down and add a value to a field in the same record with
that name.

So....in the drop downs, I have selected:

Smith
Jones
Johnson
Gordon
Stewart
Gordon

Each record has a 'Name' field and a 'Points' field which is an
integer. When I click submit, it will add 1 to the points field for
Smith, Jones, Johnson and Stewart, and will add 2 to the points field
for Gordon. Got all that?

What I don't know is what the code would be to do this and where to
put the code. Can it go in the apsx file or in a seperate file? I'm
assuming SQL code is required but what is it and where do I put it.

Any help would be required. Even if you can point me to a sample app
that does the same thing, that would be appreciated. The website I
created defaulted to VB when setting up, so I a VB solution would be
best.

Thanks
Dec 7 '07 #1
0 985

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

Similar topics

3
by: | last post by:
Hello, I have created an ASP.NET 2.0 application that utilized a Gridview Control to display and update/delete data. The problem I am having is that the gridview control is displaying the data...
1
by: Spock | last post by:
Hi. I have a form with a listbox and a few label fields all bound to a dataset. When i navigate the listbox the labels change accordingly. so far everything works good. I made a button to...
14
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
9
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its...
34
by: Jeff | last post by:
For years I have been using VBA extensively for updating data to tables after processing. By this I mean if I had to do some intensive processing that resulted in data in temp tables, I would have...
3
by: dani kotlar | last post by:
I use a table adapter to add rows to a database, using Update(); After adding a row to the database and closing the application, if I run the application again, and call Fill(), I can see the new...
1
by: leaf0209 | last post by:
Hi, I am new to this forum and have been troubled by this problem for the past few days. I would appreciate if someone would take a look and help me out. I am using vb express 2005 edition... I...
15
by: slinky | last post by:
Thanks in advance fo rany help... I have an XML data file (well- formed) that I need to place into my website's app_data folder. I would like to have an .aspx form on my site that simply has two...
1
by: jonbartlam | last post by:
Hi There I'm not sure what exactly is going wrong here. I'm writing an application that retreives a table from a database (tbl_internalfaults) and updates it. (Actually, just the status column will...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.