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

creating insert form n connecting it to database using asp.net

mandrekar salim
hi guys , i'm using visual studio 2005. now i've to create a insert form which shud be connected to database(mssql). can any one tell me how to do dat. as i'm new to visual studio i dnt knw it.
Feb 23 '11 #1
8 2385
vanc
211 Expert 100+
G'day mate,

This is a big question, I think we have to break it down a little bit.

1. You should have the MSSQL database setup already.
2. You should have known the way to connect to that database from your project.
3. Then you will decide how to put data from forms into that database.

Get back to me when you're at step 3, we will go from then.

Cheers.
Feb 23 '11 #2
its done.. now tel me how. i completed the design of te form.
Feb 23 '11 #3
vanc
211 Expert 100+
This is quick :D.

The simplest way and quickest way to do this is to create connection to the database, command with SQL queries and execute the command to insert data into database.

The idea is quite simple, you will have a form with some input text boxes, and an input button where you wire it to the event that will get data from those boxes and put them into the command text and execute it.

It may not get your question or this is what you're after. Please let me know.

Cheers.
Feb 23 '11 #4
i completed with design of the form .. it has few txtbooxes n combo boxes. i hve sqldata source. hw to connect the form to d database. wat code is required tobe written in save button?
Feb 23 '11 #5
@vanc: i want the codes to connect to db...
Feb 23 '11 #6
d form is designed using visual studio 2005, using asp.net . frm this form i want to insert data into database. i wnt the code example so that i can do it.
Feb 23 '11 #7
Frinavale
9,735 Expert Mod 8TB
Please check out the quick articles on How to use a Database in your Program (part 1) and How to use a Database in your Program (part 2)
Feb 23 '11 #8
vanc
211 Expert 100+
Sweet Frinavale. This should help heaps with example codes.

Cheers.
Feb 23 '11 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: aseaman | last post by:
I am a big novice with MySQL and PHP. I need a script that enters information from a html form into a MySQL database. Can anyone tell me where I can find one that I can just replace the table and...
3
by: Bon | last post by:
Dear all How can I convert a datetime in Short Date format to General Date format and then insert into SQL database? I get a date from a field using Request("in_date"), which is in Short...
0
by: Sirisha | last post by:
Hi, I am inserting values into databse using sqlserver stored procedures. i wrote stored preocedure,but in codebehind file(.vb file) i dont know how to pass the parameters, i got error message...
3
by: ahmurad | last post by:
Dear brothers, I have some importnat files in MS Excell / CSV format. I know php. I want to insert these files into MYSQL database to generate reports. What are the techniques to insert the ...
2
by: puneetmca | last post by:
hi i want to insert employees DOB into database through html forms but my code is not working....only empty record is shown in the database in edob ..rest of the records are working...
3
by: bobbyze | last post by:
how to insert data into database using php with OOP structure
6
selvasoft
by: selvasoft | last post by:
Hi Please help me i want to store all the details like orderno and shadeno and uploaded image file also. all are in one table. Find my attachment , when am select that check box that order...
0
selvasoft
by: selvasoft | last post by:
Hi Please any one give me sample code for inserting image file from HTML form to oracle database. using JSP.
0
by: ghjk | last post by:
I want to insert web application data to mysql database. I'm using struts, jsp and hibernet.This is my action class. public ActionForward execute(ActionMapping mapping, ActionForm form, ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.