Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET4.0
i want to have a customer table where i am having three textboxes and 1 button.1 text box is for name 2 nd is for phone no and 3rd is for email address.at the end i am having a submit button.when ivl click the submit button it vl link the database and fetch details of customer.how can i do this?i am abeginner.please give me adetail idea.
Posted 7-Dec-12 2:31am
Comments
ryanb31 at 7-Dec-12 8:08am
   
This it one of the most basic concepts in web development, yet it takes a good amount of code and design to do it, more than can be explained here. I am sure there are plenty of articles on this site on how to do that.
aspnet_regiis -i at 7-Dec-12 8:59am
   
No intention to demoralize you. But frankly speaking; you need to learn asp.net, C#/VB.NET, SQL and ado.net to achieve this. Get started as early as possible...Otherwise you will loose your job...

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

HI shakti,

As you are the beginner I am advising you to do the following steps.

1. Add the text boxes and buttons that you need for your requirement.
2. Add a button click event to your submit button.
3. In the Submit button you can have the database operations and access the database and do your work that you want to do.

e.g
protected void lnkTransferFunds_Click(object sender, EventArgs e)
        {
            ErrorResult errorResult = null;
            try
            {
                 //Do your db connection and access the data here.
            }
            catch (Exception ex)
            {
                errorResult = new ErrorResult();
                errorResult.ErrorMessage = ex.Message;
            }
            finally
            {
                errorResult = null;
            }
        }

Thanks & Regards
Sisir
  Permalink  

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

  Print Answers RSS
0 Sascha Lefévre 485
1 Sergey Alexandrovich Kryukov 325
2 Maciej Los 230
3 Abhinav S 175
4 Peter Leow 110
0 Sergey Alexandrovich Kryukov 6,953
1 OriginalGriff 6,311
2 Maciej Los 2,732
3 Peter Leow 2,694
4 Abhinav S 2,652


Advertise | Privacy | Mobile
Web04 | 2.8.150414.1 | Last Updated 7 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100