Imports System.Web.Configuration Partial Class _Default Inherits System.Web.UI.Page Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'Display the application settings in the textbox TextBox1.Text = WebConfigurationManager.AppSettings("MailServer") End Sub End Class