Here's a look at how code fails and techniques for writing more reliable and resilient managed code.
Alessandro Catorcini and Brian Grunkemeyer
MSDN Magazine December 2007
View Complete Post
This article will share some of the best practices that the Base Class Libraries (BCL) team devised as they added the code contract libraries and started to take advantage of them in their own code.
MSDN Magazine August 2009
This article discusses the Project Linker tool and other techniques to create applications that target both WPF and Silverlight from a single code base.
Erwin van der Valk
There are many factors to consider when building your app with both managed and native code. Find out how to employ interop and how to choose the interop that's right for you.
MSDN Magazine January 2009
Marshaling is an important part of .NET interop. It allows you to call into unmanaged code from managed code. This column will help you get started.
Yi Zhang and Xiaoying Guo
MSDN Magazine January 2008
The next version of the Microsoft Windows operating system, code-named "Longhorn," marks a significant change not only in terms of how the operating system works, but also in the way in which applications are built. The Longhorn version of Windows includes a new storage system, natural search technology, and an increased emphasis on security and trustworthy computing. Here the author provides an overview of Longhorn, focusing on the build-once, deploy n-times application model. In addition, he discusses the new language, code-named "XAML," that's used to create UI elements, then presents some working samples.
MSDN Magazine January 2004
When the author wanted to build a middleware Web client to connect to other applications over the Internet, he realized that the XMLHttpRequest COM object was not sufficient for his purposes. In order to build a Web client using managed code, the author had to use the HTTPWebRequest and HTTPWebResponse classes provided by the Microsoft .NET framework. These classes are used in the sample project as a substitute for the less powerful XMLHttpRequest COM object, allowing the author to build a full-featured Web client. They also take advantage of all the benefits that the CLR and managed code have to offer.
MSDN Magazine September 2001
I have a Repeater who should show some data from my ms.sql server. But all code inside the Repater is not shown on my .aspx page. What am i doing wrong. I have a similar Repeater on another page and there it works fine.
<div class="AnsaettelseKontrakt Folders">
<table cellpadding="0" cellspacing="0" width="750px" align="right">
<th class="BrugerHeader" style="width:300px;">Filnavn</th>
<th class="BrugerHeader" style="width:80px;">StÃÂ¸rrelse</th>
<th class="BrugerHeader" style="width:150px;">Dato</th>
<th class="BrugerHeader" style="width:180px;" colspan="2">Brugere</th>
<th class="BrugerHeader" style="width:40px;">VÃÂ¦rktÃÂ¸jer</th>
<asp:Repeater ID="RepeaterAns" runat="server" onitemcommand="Repeater1_ItemCommand" >
how does the code within the <% .... %> brackets write to the output stream of a view?Where view code that looked like the following would write the HTML for a <table> to the output html of the view.<%ToViewOutput( "<table>" ) ;ToViewOutput( "<tr>" ) ;ToViewOutput("<td>row1. cell 1.</td>") ;ToViewOutput("<td>row1. cell 2.</td>") ;oViewOutput("</tr>") ;ToViewOutput("</table>") ;%>
Hi,Need a Regular Expression to match "="(45167)" and retrieve only the code inside parentheses say 45167thanks in advance Sam
I have created a custom control that implements Templates (based on Panel controls) ... I can do a FindControl to locate imbedded controls. This allows me to get and set values in the imbedded controls, but I want to be able to reference the imbedded controls like they are properties of the associated panel. Here is a sample of how my custom control now works:
<cc:CustomControl ID="myCustomControl" runat="server"><PanelTemplate><asp:TextBox ID="myTextBox" runat="server"></asp:TextBox></PanelTemplate></cc:CustomControl>
I can do the following (where my custom control has given the panel hosting the template the name "myPanel"):
Dim txt As TextBox = myCustomControl.myPanel.FindControl("myTextBox")txt.Text = "Some text to put in TextBox"
What I want to do is:
myCustomControl.myPanel.myTextBox.Text = "Some text to put in TextBox"
have formview to read US cities as following:
I use label to read the values in <ItemTemplate>
I use dropdown list to read values in <EditItemTemplate> and < InsertItemTemplate>
the formview get loaded it’s read all values properly, but when I move to edit
or insert mode the dropdown list give me this error: Object reference not set
to an instance of an object
anyone help me with example of code (Note: I use the code to fill the dropdown list instead
of SqlDataSource )
Thank you in advance,
Previously we were using Unigraphics software which was supporting Open C code. Now the latest version of unigraphics has come which supports C++ or C#.
We are planning to modify the same C file code and inside that writing C# code. Is it possible?
We are using Visual Studio 2008.