TAILIEUCHUNG - Professional ASP.NET 3.5 in C# and Visual Basic Part 149

Professional in C# and Visual Basic Part 149. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS | Chapter 31 Configuration newConnSetting Save the changes Catch cEx As ConfigurationErrorsException Status Catch ex As The process account must have read write access to the directory Status The process account must have read write access to the directory Catch eEx As Exception Status End Try ShowConnectionStrings End Sub C protected void Button1_Click object sender EventArgs e Get the file path for the current web request string webPath Get configuration object of the current web request Configuration config webPath Create new connection setting from text boxes ConnectionStringSettings newConnSetting new ConnectionStringSettings try Add the connection string to the collection newConnSetting Save the changes catch ConfigurationErrorsException cEx Status catch uEx The process account must have read write access to the directory Status The process account must have read write access to the directory catch Exception eEx Status Reload the connection strings in the list box ShowConnectionStrings 1445 Chapter 31 Configuration f igFile The OpenMachineConfiguration method of the class provides a way to manipulate the file. The OpenMachineConfiguration method is a static method. Listing 31-36 shows a simple example that enumerates all the section groups stored in the machine .config file. As shown in this listing you re getting an instance of the configuration object using the OpenMachineConfiguration .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.