| Namespaces, Cursors, ADO.NET, Web Services, Inheritance, and More |
| MSDN |
| During the course of the many seminars I give each year, I get a lot of great questions from the audience. From time to time I'll be sharing some of the most interesting answers with you. This month, I'll discuss namespaces, data cursors, ADO.NET, Web Services and inheritance, and serialization. |
|
| O COM+, Where Art Thou? |
| MSDN |
| The reality is that some of the overwhelmingly positive benefits COM+ offered to COM development aren't so overwhelmingly positive in .NET. In other cases, features of COM+ that were unavailable to Visual Basic 6.0 developers are fully accessible when developing in Visual Basic .NET. Like "O Brother Where Art Thou?" the underlying story is similar, but there are differences from the original. It would be wrong to assume that because you are developing an enterprise application that you therefore must use EnterpriseServices. EnterpriseServices include a list of specific services and features that should be individually evaluated to see if they make sense for your application. In this article, I will discuss these services and give some guidelines as to when each may be useful. Then we'll write some code to exploit the most common feature—2-phase transactional support. |
|
| Object Serialization in Visual Basic .NET |
| MSDN |
| When building applications using objects, we are often faced with the requirement to treat all the various data within an object as a single unit. This comes into play, for instance, when you want to pass an object across the network—since you don't want to send each individual bit of object data one at a time across the network, but rather, all at once. |
|
| Object-Oriented Programming in Visual Basic .NET |
| MSDN |
| The original versions of Microsoft® Visual Basic® provided a mechanism for defining data structures in a user-defined type (UDT). A UDT encapsulates the data, but not the processing associated with that data. Processing was defined in global standard modules, often called BAS modules because of their .bas extension. |
|
| One click ASP.NET export button control for Excel/CSV file |
| The Code Project |
| An extended ASP.NET button control for exporting/downloading Excel or CSV file |
|
| Opening Child Windows Using Server Side Controls |
| DotNetJunkies |
| The technique of opening child or "pop-up" windows from a Web page is useful in many scenarios. These include displaying additional information related to the main page or viewing, adding or editing the information from a row in a detail grid. There are a number of ways to open windows from a Web page using client side scripting, but how can you manipulate and control this behavior from server side script? This article will examine two different ways to open child window from server controls and we will also look at how to pass data back from the child to the parent and trigger a server side event on the parent form. |
|
| Opening Child Windows Using Server Side Controls |
| DotNetJunkies |
| This article will examine two different ways to open child window from server controls and will also look at how to pass data back from the child to the parent and trigger a server side event on the parent form. |
|
| Passing parameters to an ASP.NET page running in an IFRAME |
| The Code Project |
| How to pass parameters to an aspx page that is hosted within an IFrame. Also how to handle postback issues in a modal window. |
|
| PRB: "Cannot Start More Transactions on This Session" Error Message When You Use OLE DB Provider for SQL Server in ADO.NET |
| Microsoft Support |
| (316872) - When you use Microsoft OLE DB Provider for SQL Server (OLEDBSQL) in ADO.NET, if you try to start more than one transaction in a session, you receive the following error message: System.Data.OleDb.OleDbException: Cannot start more transactions on this... |
|
| PRB: "Catastrophic Failure" Error Message When You Try to Debug an ASP.NET Application on Windows 2000 Domain Controller |
| http://www.kbalertz.com/ |
| (827559) - When you try to debug a Microsoft ASP.NET Web Application on a computer that is running Microsoft Windows 2000 Server domain controller with Service Pack 4 (SP4) installed, you may receive the following error message: Error while trying to run... |
|
| PRB: "COMPUTE BY Statements Not Supported" Exception When You Use COMPUTE BY Clause with SQL Server |
| http://www.kbalertz.com/ |
| (311540) - When you attempt to use the COMPUTE BY clause with the Microsoft SQL Server .NET Data Provider, you receive the following exception: An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll. Additional information:... |
|
| PRB: "Unable to Start Debugging on the Web Server" Error Message While You Debug ASP.NET Applications |
| http://www.kbalertz.com/ |
| (817034) - You create an ASP.NET Web application and then specify that the authentication in Internet Information Services (IIS) is set to Basic authentication. When you try to start to debug the ASP.NET Web application project in Visual Studio .NET, you may... |
|
| PRB: Controls Focus is Lost After AutoPostBack |
| http://www.kbalertz.com/ |
| When you press the TAB key on an ASP.NET Web Server control, the Web page is posted back to the Web server. After the operation is complete, the focus is not set to any control. You expect the focus to be set to the next control. |
|
| PRB: DataGrid Control Does Not Display Correctly in .aspx Page |
| http://www.kbalertz.com/ |
| (313156) - When you view an .aspx page that contains a DataGrid control, the data grid may not appear. Alternately, only the header of the data grid may appear, but the data grid may not contain any data. |
|
| PRB: DataGrid Is Empty When You Bind DataGrid to a DataSet That Is Returned from a Web Service (Q317427) |
| http://www.kbalertz.com/ |
| The |
|
| PRB: Error in SQL Server 7.0 When You Call Command.Prepare Before You Add Parameters Using Visual Basic .NET |
| http://www.kbalertz.com/ |
| (310368) - When you create a parameterized command against Microsoft SQL Server 7.0, if you call the Prepare method before you add parameters to the command, you receive the following error message: An unhandled exception of type... |
|
| PRB: Error Occurs When You Use ADO.NET OLEDbDataAdapter to Modify Excel Workbook |
| Microsoft Support |
| (316756) - When you try to add, to update, or to delete records in an Excel workbook that uses the OLEDbDataAdapter with ADO.NET, you receive one of the following error messages: When you add a record: Syntax error in INSERT INTO statement. When you update a... |
|
| PRB: InterOp Interfaces Must Match Vtable Layout for Early Binding to Work (Q327116) |
| http://www.kbalertz.com/ |
| SYMPTOMS When you call a COM method through InterOp, you may receive the following error message: An unhandled exception of type System.Exception occurred in ApplicationName.exe Additional information: Object reference not set to an instance of an |
|
| PRB: InvalidCastException When You Bind DateTimePicker That Contains a Null Value (Q313513) |
| http://www.kbalertz.com/ |
| When you bind a |
|
| PRB: ItemData Property Does Not Exist for ListBox and ComboBox Controls (Q311340) |
| Microsoft Support |
| You may notice the following symptoms: When you upgrade a Microsoft Visual Basic 6.0 project to Visual Basic .NET, the data that is listed in the Properties window for the ItemData property is discarded. In Visual Basic 6.0, you |
|
| PRB: Size of the Output Parameter Is Ignored When You Use an OLE DB Managed Provider (Q318681) |
| http://www.kbalertz.com/ |
| If you use an OLE DB managed provider, the OLE DB managed provider ignores the |
|
| PRB: The ToolBar Control Is Re-Created When You Set the Properties of the Button on the ToolBar at Runtime |
| http://www.kbalertz.com/ |
| (820641) - You add a button to the ToolBar control on a Microsoft Windows form, and then you set the Style property of the button to DropDownButton . If you set any of the following properties of the button on the ToolBar at runtime, the ToolBar control is... |
|
| Preparing Your ASP.NET Site for Crawling |
| DotNetJunkies |
| In this article we'll explore a handful of things you can do to your web site to make it crawler-friendly. With a few simple steps your site can take full advantage of the Microsoft Search service that comes with Sharepoint Portal Server or Site Server 3.0. You can also be prepared for the large search engines. |
|
| Promote Code Sharing in ASP.NET Through Inheritance and Containment |
| DotNetJunkies |
| Code sharing is in the mind of most programmers. Fred explains the benefits of code sharing - not only is duplicated code avoided, but more importantly, maintainability is increased. |
|
| Publishing Crystal Report as a Web Service |
| The Code Project |
| A code walk to expose a Crystal Report as a Web Service |
|