On the basis of introduction to JSP & ASP,how the two popular technologies of creating dynamic Web application are connected to database are illustrated in this paper. The two kinds of technology is also analysed and comparison beetween them is made.