Varad, The .NET Guy!

Exploring the excitement of Microsoft .NET and much more..

August 2005 - Posts

Microsoft makes changes to Visual Studio 2005

Today's news about Visual Studio 2005.

Microsoft has made a series of changes to the Visual Studio 2005 tool set that will be shipping in November this year..

Read More

Posted: Aug 31 2005, 02:24 PM by Varad | with no comments
Filed under:
ASP.NET 2.0, Using Connection Strings from web.config

ASP.NET v2.0 has a couple new ways to reference connection strings stored in the web.config or machine.config file.

A typical web.config file in v2.0 could have the following section which is placed directly under the root <configuration> section.

<connectionStrings>
    <
remove name="LocalSqlServer"
/>
    <
add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"
/>
    <add name="MainConnStr" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|main.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>

You can reference this directly from code using:

[C#]
string connStr = ConfigurationManager.ConnectionStrings["MainConnStr"].ConnectionString;

[VB]
Dim connStr As String = ConfigurationManager.ConnectionStrings("MainConnStr").ConnectionString

Note that the namespace for this is System.Configuration so for a console application the full namespace is required.

Or you can reference this declaratively within the ConnectionString property of a SqlDataSource:

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
  ConnectionString="<%$ ConnectionStrings:MainConnStr %>"
  SelectCommand="SELECT [au_id], [au_lname], [au_fname], [state] FROM [authors]"
/>

[via owscott]

Posted: Aug 28 2005, 08:58 AM by Varad | with 2 comment(s)
Filed under:
Google Talk, the new Google Messenger!

Now Google has stepped into Instant Messaging service. Yes, Google Talk has come!

I saw a thread having information about the new messenger from Google..I just got an invitation so thought of posting it here for others..

http://www.google.com/talk/index.html

 

Posted: Aug 27 2005, 08:41 PM by Varad | with 1 comment(s)
Filed under:
How To, The Tutorial List

Great How To list from ASPNetWorld.com

HOW TO: Implement Multiple Forms in ASP.NET

HOW TO: Implement Screen Scraping with ASP.NET
HOW TO: Display a Hierarchical DataGrid
HOW TO: Display a Nested DataGrid
HOW TO: Consume Amazon Web Services (AWS) with ASP.NET
HOW TO: Implement Page Templates in ASP.NET
HOW TO: Implement Custom Paging with the DataGrid Control using Database Paging
HOW TO: Set Focus to a Web Control
HOW TO: Implement CAPTCHA with ASP.NET
HOW TO: Use the Enter Key in a TextBox Control to Submit a Form
HOW TO: Build a Templated Custom Control
HOW TO: Access MySQL Database with ASP.NET
HOW TO: Query Microsoft Indexing Service (or Index Server) with ASP.NET
HOW TO: Implement Paging in a Repeater Control
HOW TO: Create a Fully Editable DataGrid
HOW TO: Determine Which Checkboxes Are Selected in a Data Control
HOW TO: Open a Dialog Box from a Web Form
HOW TO: Sort Items in a DropDownList
HOW TO: Protect Files with a Certain Extension
HOW TO: Change Page Title Programmatically
HOW TO: Create an RSS Feed Programmatically
HOW TO: Upload Multiple Files
HOW TO: Implement Role-Based Authorization with Forms Authentication
HOW TO: Search Google using the Google Web Service
HOW TO: Consume and Display an RSS Feed
HOW TO: Retain Scroll Position over Postbacks
HOW TO: Reference an Image/Web Resource from a Page in any Subfolder without Messy Path Problems
HOW TO: Create a Scrollable DataGrid
HOW TO: Dynamically Assign a Stylesheet to an ASP.NET Page
HOW TO: Rewrite URL
HOW TO: Generate PDF Output On-the-fly
Examples: Label Web Server Control
Guide to ASP.NET Web Hosting

Consuming and Displaying an RSS 2.0 Feed using the XML Control

[via pleloup]

 

Posted: Aug 21 2005, 10:25 AM by Varad | with no comments
Filed under:
New Article on Performance of .NET Communications

Richard Turner and Ingo Rammer have joined forces to publish two papers that show the relative performance of Web Services, .NET Remoting, Enterprise Services, and MSMQ using more realistic, business centric services. While not meant to be a benchmark, the articles do attempt to further clarify the best uses of each technology.

The first article deals with the comparative performance of Web Services, .NET Remoting, and Enterprise Services. Tests involve creating and storing orders into the Northwind database, retrieving data from the same database both as a Dataset and as custom business objects, and retrieving just a single client's information.

The second article covers the performance characteristics of the System.Messaging (MSMQ) namespace as compared to using the COM+ MSMQ interface. The tests for this article include queueing and dequeueing messages containing empty, small, and larger data objects as well as a comparison of the serialization techniques available.

This article is very interesting and informative:

http://msdn.microsoft.com/webservices/default.aspx?pull=/library/en-us/dnwebsrv/html/asmxremotesperf.asp

 

Posted: Aug 17 2005, 07:52 PM by Varad | with no comments
Filed under:
Using the functionality of VB.NET within C# code
You can achieve this by doing the following steps,

1) Add a reference to Microsoft.VisualBasic Runtime frim the ".NET" references menu

2) Add a Using directive : "using Microsoft.VisualBasic;"

Now you have access to all of VB.NET's functionality.

The best part is that the VB.NET runtime is already a part of .NET Framework, there is no overhead in referencing this library.
Posted: Aug 14 2005, 03:27 PM by Varad | with 4 comment(s)
Filed under: ,
More Posts