CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 6/14/2007 11:16:04 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Michael1965
Asp.Net User
Submitting data a database via the user GUI6/14/2007 11:16:04 PM

0/0

OK,

I've learned basic VB, and, as is always the case when I learn something new, I'm more confused than ever.

So, let me take you through a scenario, perhaps you and others could help/annotate so as to provide a thicko like me with the info to get what I want (which I believe to be something quite simple, which is why I am so uterly frustrated by my inability to nail it down) As before, for the sake of argument, the site in question is based exactly on the dating website model....here goes.

Steps: 

1. Member joins via the the create user wizard - this creates a unique identifier (ApplicationID) in the ASPNETDB.MDF database.

2. Either then or at a another time the member logs into the members area and enters extra info (name, address etc) onto a new table (memdets) within the ASPNETDB.MDF database.

3. Either then or at another time the member logs into the members area and enters further info (vital stats of person member would like to meet) onto a further new table (wantsdets) within the ASPNETDB.MDF database.

4. A user can access a table of information sourced from both 'memdets' and 'wantsdets' that shows where they live and what kind of date they're after.

Here are the questions:

Re steps 2 and 3: How do I program the submit button to submit info gathered via text boxes, tick boxes, radio buttons to the new tables - i.e. how should the VB in the codebehind look?

Re steps 2 and 3: How do I ensure that when a member submits data on the 'memdets' and 'wantsdets' tables (possibly immediately, possibly days later) that that data is automatically 'stamped' with the ApplicationID unique identifier, given that the member won't know their ApplicationID - i.e. that the database knows that the data just collected should be associated with a given user?

That's it for the moment, but I'm sure there'll be more!

codeasp
Asp.Net User
Re: Submitting data a database via the user GUI6/15/2007 1:15:55 AM

0/0

  1. In your submit button create an insert query depending upon your requirements.  Make a connection to the db and then save it in the db.  If you have a DataAccessLayer or BusinessLayer then send the info to the appropriate objects.  Following is a very basic example: 
    Dim queryString as String = yourquerygoesinhere
    Using connection As New SqlConnection(connectionString)
            Dim command As New SqlCommand(queryString, connection)
            command.Connection.Open()
            command.ExecuteNonQuery()
        End Using
    
  2. I don't think you need to store/pass the ApplicationID because the user's in your application are unique. They have a unique UserID and you can use this UserID to be your key in the details table.

If you have any doubts, reply to the post.
Michael1965
Asp.Net User
Re: Submitting data a database via the user GUI6/16/2007 9:30:14 PM

0/0

Thanks codeasp,

Can anyone tell me where I can find online learning resources that deal specifically with the issue of using VB code behind to tell the submit button to submit data to a database, if you could it would help me greatly.

Thanks

Michael

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Dreamweaver MX 2004: A Beginner's Guide Authors: Tom Muck, Ray West, Pages: 544, Published: 2004
XML.NET Developer's Guide: Developer's Guide Authors: Adam Sills, Jonothon Ortiz, Pages: 566, Published: 2002
Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers Authors: Jeff Webb, Pages: 428, Published: 2007
Antimicrobial Susceptibility Testing Protocols: drugs for bugs / Cassandra B. Calderón and Beulah Perdue Sabundayo Disk diffusion test and gradient methodologies / Audrey Wanger Macro- and microdilution methods of antimicrobial susceptibility testing / Sadaf Qaiyumi Automated systems : an overview / Sheryl Stuckey Agar dilution susceptibility testing / Ann Hanlon, Merwyn Taylor, and James D. Dick Susceptibility-testing protocols for antibiograms and preventive surveillance : a continum of data collection, analysis, and presentation / John G. Thomas and Nancy T. Rector Anaerobe antimicrobial susceptibility testing / Darcie E. Roe-Carpenter Antifungal susceptibility testing of yeasts / Ana Espinel-Ingroff and Emilia Cantón Antifungal susceptibility testing of filamentous fungi / Ana Espinel-Ingroff and Emilia Cantón Susceptibility testing of mycobacteria / Barbara A. Brown-Elliott, Samuel Cohen, and Richard J. Wallace Jr. Methods for determing bactericidal activity and antimicrobial interactions : synergy testing, time-kill curves, and population analysis / Punam Verma Serum bactericidal testing / Harriette Nadler and Michael Dowzicky Bioassay methods for antimicrobial and antifungal agents / Donald H. Pitkin and Estrella Martin-Mazuelos Molecular methods for bacterial strain typing / Sophie Michaud and Donna Berg Pharmacy and microbiology : interactive synergy / Beulah Perdue Sabundayo and Cassandra B. Calderón Interactions between clinicians and the microbiology laboratory / John H. Powers Clinical microbiology in the development of new antimicrobial agents / C. Douglas Webb and Barbara G. Painter Authors: Richard Schwalbe, Lynn Steele-Moore, Avery C. Goodwin, Pages: 414, Published: 2007
Computing the Brain: A Guide to Neuroinformatics Authors: Michael A. Arbib, Jeffrey S. Grethe, Pages: 380, Published: 2001
Conference Record: The IEEE Systems Readiness Technology Conference, September 21-24, 1992, Dayton Convention Center, Dayton, Ohio Authors: Ohio Autotestcon '92 Dayton, Pages: 463, Published: 1992
Oracle Design: The Definitive Guide Authors: Dave Ensor, Ian Stevenson, Pages: 526, Published: 1997
Developer's Guide to Web Application Security: A Guide for Developers and Penetration Testers Authors: Michael Cross, Pages: 489, Published: 2007
Beginning REALbasic: From Novice to Professional Authors: Jerry Lee Ford, Jr., Jerry Lee Ford, Pages: 372, Published: 2006

Web:
Data User Corner | Beach Monitoring & Notification | US EPA WQX Beach Monitoring Data User Guide (PDF) (66 pp, 780 K; Changes from the ... [ 43 K]) For states not using the Monitoring Data Access Database (d, below), ...
PHARMACOLOGY/TOXICOLOGY DATABASE USER GUIDE PHARMACOLOGY/TOXICOLOGY DATABASE USER GUIDE. - 7 -. Viewing Detailed Information and Submitting Reports. Requesting an account ...
ASP Database Related Displaying Images (binary data) from the ... Submit comments in database when user clicks on submit button ..... Specialty Data Store User's Guide Full-Text Search Specialty Data Store... Database ...
Page 1 Database Exporter Tool User Guide FEMA DFIRM Production ... The Database Exporter user guide contains useful information that will help guide you through ... Database Exporter Results Log. Submit Preliminary Data ...
Experts Database Registration User Guide Experts Database Registration. User Guide. Version: 1.10 ..... 5.5 Submit data. Once you are satisfied that all details on the registration form are ...
DNA Methylation Database "MethDB": a User Guide -- Grunau et al ... Institution: Google Indexer | Sign In via User Name/Password ..... Submitting Data to MethDB. MethDB is a public database, and the scientific community is ...
MGI-Submitting expression data to the Gene Expression Database (GXD) You can use it to organize and store expression data in your laboratory as well as to submit data to GXD. The GEN and a detailed user guide are available ...
BMP Database Phase I - User’s Guide The BMP Database is. a multi-phase project and details regarding the initial phase (Phase I) are provided in this User’s. Guide. ...
NLIS Database User Guide See the other topics in this User Guide for instructions on using the database. ...... If you want to view the CFB data, submit a query to the database. ...
SpreadsheetConverter - The Advanced Service collects the data when ... When the user press Submit, the data will be emailed to you and stored in a database for future retrieval. All collected data can be downloaded into Excel.

Videos:
Silicon Valley WebGuild: Vertical Search Trends Google Tech Talks August 23, 2006 Silicon Valley Web Guild http://www.webguild.org/ Presenters: Michael Yang, Founder, President and CEO, Become.co...




Search This Site:










msoutlook menu

login

how to convert a hardcode to database driven

geoip.dat

formsauthentication fails to read cookie on iis6.0

event calendar help...

example of boxing and unboxing

tableadapters using values

search a file for text (string) .net method call

ibuyspy store admin section..please help!!!

security question....

pane-level skinning... code examples?

set cookie at login page but error when try to read it

what is iidentity and iprincipal

login control with oracle possible?

how to know the user role

reviewlist doesn't get correct productid

eliminate the need for yahoo!groups with the active forums mail connector

anyone know what a .do file extension is

rss module - a bit different

web forms - caching data

geekspeak tutorial

verify a file in a external site

need help designing site for user groups

club site and time tracker will not install

odd requiredfieldvalidator problem

webcontrol as a property of a custom control

how to connect to oracle database.

dnn 4.3.5 - issue with version conflict of a dll file.

running a script on the server only

 
All Times Are GMT