Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to access the values from a text box in an asp.net web form and save it back to an database in MS access. Im new to asp.net. So please explain suitably. Thanks in advance
Posted
Comments
[no name] 21-Sep-12 10:20am    
What have you tried?
Sriram Mani 21-Sep-12 23:56pm    
thanks for the reply wes..
im using c# language. so far i used grid view for displaying data from a ms access database and it works fine. now i created a simple web form in asp.net where in the user gives form input. that input should be inserted into a table in that database. i have no idea what to use.... i'm using visual studio 2008 ..
joshrduncan2012 21-Sep-12 10:22am    
What language are you using? What have you tried so far? What errors are you receiving? What does your output look like? Can you post a portion of your code so we can find where the problem is?
Sriram Mani 21-Sep-12 23:55pm    
thanks for the reply josh,
im using c# language. so far i used grid view for displaying data from a ms access database and it works fine. now i created a simple web form in asp.net where in the user gives form input. that input should be inserted into a table in that database. i have no idea what to use.... i'm using visual studio 2008 ..
fjdiewornncalwe 21-Sep-12 10:22am    
Wes has provided the polite comment that is suitable. I'll expand on that.
There is a wonderful tool out there called GOOGLE. Think of him as your best friend who is actually really, really smart and has a photographic memory. Ask him the question first because you'll be surprised how often he has the answers right there. It's like a drive through fast food place. It's quick and it's convenient, but none of the usless calories. Cheers.

Okay, there are two major things involved in it: Connection String formation & How to talk to DB & save data.

Following material would help you out:
For connection string: Connection String[^]!

For data communication:
Accessing data with ADO.NET[^]
Beginners guide to accessing SQL Server through C#[^]

Try!
 
Share this answer
 
Comments
Sriram Mani 22-Sep-12 0:04am    
thanks for the reply sandeep, ill surely go through these... thanks a lot...
Sandeep Mewara 22-Sep-12 1:20am    
Welcome.
Thanks for all who spared their precious time in answering me. I finally had it working and it was very simple. At first d textboxes are not known inside the c# code. i right clicked each text box and clicked view code which opens the c# code page. there i used d syntax
C#
txtboxname.Text;
stmt to retrive it and used the query "Insert into tablename values ('"+txtboxname.Text+"'....);" to accomplish the insertion.. and it worked fine.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900