关于web.config
在建立新的连接的时候,使用的是在webconfig中间定义的数据库连接语句,这样有助于以后进行修改:SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]);
IbuySpy使用的是Forms-based authentication,which is enabled by making a entry in the application's Web.config file.
有些页面(CheckOut.aspx。。。)必需认证了的用户才能够进入,如何确定该用户是否认证用户呢?
这些页面并不是在该页中书写代码来验证进入者是否为认证用户。
它们是在webconfig中间设置了进入障碍。拿CheckOut.aspx做个例子。
那么,在这些页面无法进入的情况下,我们会跳转到另外的页面,而跳转到哪个页面也是有webconfig来设置的。
在Web.config 中的The loginurl attribute specifies the login page that the application should redirect to any time a user attempts to access an application resource that does not allow anonymous access.