Click here to Skip to main content
15,898,935 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi Friends,
I have been asked this question so many times in interviews but I am still not able to satisfy the interviewer.
Question is :

Explain the complete process right from button click event till the data is stored in the DB.

I always say like, assign values to properties and then call SPs or fire sql query.
But interviewer wants COMPLETE process. How does the request do? How does the server come to know that it has to fetch the data? In which form, the data is fetched?

Can you help me on this?
Any help appreciated.

Thanks,
Lok..
Posted

Hi,

I know so many people have same question, Answer is depend upon which architecture you are using. Ex: if you are using 3-Tier architecture then your data flow would be differ then a single layer architecture.

For that reason i have written one article on CRUD operations.

Please have a look into : Insert, Update, Search and Delete (CRUD operation) using ASP.Net and MySQL[^] .In this article i have explain about N-Tier architecture. you will also learn some other related things along with only CRUD operations.

In above article we have used MySQL as database but the process will be same for any database. just you need to change SP and Connection related information.

Best of luck
Thanks
-Amit Gajjar
 
Share this answer
 
when we click the button :-
1.First the GET to the same page.
2.All the Page Life cycle events fired(To know Page Life Cycle Click here[^])
3.Than Button Click event fire and do all the stuffs written in the button click event .
4.Than redirect(if redirected ) to other page.
 
Share this answer
 
v2
Comments
Lokesh Zende 28-Aug-12 3:04am    
Thanks for your quick reply. I always tell the same thing, but..
He expects how the server come to know what is the data? In which form it is?
What does the server do when it receives the data?

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