... SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0); // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); ... Floating menu item and click Add Event Handler… Accept the Message type as COMMAND Accept the suggested Function Handler Name In the Class List, click CMainFrame then click Add and Edit Access the MainFrm.h ... Visual C+ + and MFC Fundamentals { public: enum { IDD = IDD_EXERCISE_DLG }; CExerciseDlg(); ~CExerciseDlg(); }; CExerciseDlg::CExerciseDlg() : CDialog(CExerciseDlg::IDD) { } CExerciseDlg::~CExerciseDlg()...
... class In the IDE, click the File menu, point to New, and then click Project The New Project dialog box opens Select VisualBasic Projects or Visual C# Projects in the Project Types tree, click ... classes in VisualBasicandVisual C# implicitly have Object as a base class Base classes are covered in Chapter 5, “Using Inheritance to Create Specialized Classes.” Creating the Library Class By ... a class to a project On the Project menu, click Add Class Or In Visual C# , right-click the project name in the Class View, point to Add, then click Add Class on the shortcut menu The Visual Basic...
... Substitution HttpCachePolicy and Client-Side Caching Caching Programmatically Data Caching Using the Cache Object Controlling the ASP.NET Cache Cache Dependencies Using the SQL Server Cache Dependency Enabling ... Using HttpContext.Current.Items for Very Short-Term Storage Summary 1060 1061 1063 1067 1069 Chapter 23: Caching 1071 Caching 1071 Output Caching Partial Page (UserControl) Caching Post-Cache Substitution ... When Connecting Web Parts 851 854 856 858 Summary 860 Chapter 18: HTML and CSS Design with ASP.NET 861 Caveats HTML and CSS Overview 862 862 Introducing CSS Creating Style Sheets CSS Rules CSS...
... Features Detecting and Reacting to Browser Capabilities Using ViewState Raising PostBack Events Handling PostBack Data Composite Controls Templated Controls Creating Control Design-Time Experiences 1203 ... Sections Using the NameValueFileSectionHandler Object Using the DictionarySectionHandler Object Using the SingleTagSectionHandler Object Using Your Own Custom Configuration Handler 1411 1413 1414 1415 ... Internet, much of the application development focused on thick desktop applications These thick-client applications were used for everything from home computing and gaming to office productivity and more...
... own code-behind file to represent a single logical page ASP.NET 3.5 applications can include a \App_Code directory where you place your class’s source Any class placed here is dynamically compiled ... = connectionString Catch ex As Exception Label1.Text = "No connection string found." End Try End Sub C# protected void Page_Load(object sender, EventArgs e) { try { string connectionString = ConfigurationManager.ConnectionStrings["Northwind"] ... ConfigurationManager.ConnectionStrings["Northwind"] ConnectionString.ToString(); Label1.Text = connectionString; } catch (Exception) { Label1.Text = "No connection string found."; } } This little bit of code...
... understand basic programming constructs, such as variables, For Each loops, and object-oriented programming You may also be wondering whether this book is for the VisualBasic developer or the C# ... development projects Chapter 2, ‘‘ASP.NET Server Controls and Client-Side Scripts,’’ looks at the basics of working with server controls Chapter 3, ‘‘ASP.NET Web Server Controls,’’ covers the controls ... Chapter 18, ‘‘HTML and CSS Design with ASP.NET.’’: A lot of focus on building a CSS-based Web application was placed on Visual Studio 2008 This chapter takes a close look at how you can effectively...
... ... classes enable you to separate your classes into multiple class files, which are then combined into a single class when the application is compiled Because ASP.NET 3.5 combines all this page code ... File check box is unchecked You can get at this dialog by right clicking the project or the solution in the Solution Explorer and selecting Add New Item (see Figure 1-6) From here, you can see...
... references or members contained within the specified master page OutputCache Controls the output caching policies of a Page or user control Page Enables you to specify page speci c attributes and ... 01/28/2008 Chapter 1: Application and Page Frameworks Directive Description Reference Links a Page or user control to the current Page or user control Register Associates aliases with namespaces and class ... section of the web.config CodeFile References the code-behind file with which the page is associated CodeFileBaseClass Specifies the type name of the base class to use with the code-behind...
... Attribute Description CacheProfile Allows for a central way to manage an application’s cache profile Use the CacheProfile attribute to specify the name of the cache profile detailed in the web.config ... VirtualPath="~/Wrox.master" %> @OutputCache The @OutputCache directive controls the output caching policies of an ASP.NET page or user control This directive supports the ten attributes described in the following ... during which this page is to be stored in the system cache 23 Page 23 Evjen c0 1.tex V2 - 01/28/2008 Chapter 1: Application and Page Frameworks @Reference The @Reference directive declares that...