从单击按钮到数据库的完整过程. [英] Complete process from button click to database.

查看:70
本文介绍了从单击按钮到数据库的完整过程.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
在面试中我被问过很多次这个问题,但是我仍然不能使面试官满意.
问题是:

说明从按钮单击事件到数据存储在数据库中的整个过程.

我总是说喜欢,给属性赋值,然后调用SP或触发SQL查询.
但是面试官想要完整的过程.请求如何执行?服务器如何得知必须获取数据?以哪种形式获取数据?

你能帮我吗?
任何帮助表示赞赏.

谢谢,
Lok ..

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..

推荐答案



我知道很多人有相同的问题,答案取决于您使用的体系结构.例如:如果您使用的是3层架构,那么您的数据流将不同于单层架构.

因此,我写了一篇有关CRUD操作的文章.

请查看:插入,更新,搜索和删除( CRUD操作),使用ASP.Net和MySQL [ ^ ].在本文中,我对N-Tier体系结构进行了解释.您还将学习其他一些相关的知识以及仅CRUD操作.

在以上文章中,我们将MySQL用作数据库,但是对于任何数据库,该过程都是相同的.只是您需要更改与SP和连接有关的信息.

祝你好运
谢谢
-单击按钮时,请-Amit Gajjar
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


:-
1.首先将GET转到同一页面.
2.触发所有页面生命周期事件(要了解页面生命周期点击此处 [ ^ ])
3.Than比Button Click事件触发并完成按钮click事件中编写的所有内容.
4,比重定向(如果重定向)到其他页面.
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.


这篇关于从单击按钮到数据库的完整过程.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆