Microsoft KB Archive/327418

= FIX: You receive a &quot;Leaving Secure Connection&quot; error message when you use LinkButton in DataGrid and SSL =

Article ID: 327418

Article Last Modified on 10/18/2005

-

APPLIES TO


 * Microsoft .NET Framework 1.0 Service Pack 1
 * Microsoft Visual Studio .NET 2002 Professional Edition

-



This article was previously published under Q327418





SYMPTOMS
When you try to visit ASP.NET Web pages that were developed with an embedded LinkButton column in a DataGrid control, you wrongly receive the following message in Microsoft Internet Explorer:

You are about to leave a secure Internet connection. It will be possible for others to view information you send. Do you want to continue?

This problem occurs only when the page is encrypted by using Secure Sockets Layer (SSL).



CAUSE
This problem occurs because there is a second colon in the URI of the HREF attribute, which calls the parameter for __doPostBack.

When an ASP.NET LinkButton control is embedded in other controls such as DataGrid, the client JavaScript that the control renders to the browser contains code that resembles the following: __doPostBack('UC2:UC1:LinkButton1','') The second colon (just before LinkButton1) signals to Internet Explorer that you are leaving an encrypted channel.



RESOLUTION
This hotfix is targeted for Microsoft .NET Framework Service Pack 1 (SP1), so it installs only on top of SP1. For computers that have .NET Framework SP2 installed, this hotfix is included in the following hotfix rollup:

328546 INFO: Post-Service Pack 2 .NET Framework Hotfix Rollup Package 3

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question. The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version       Size       File name --  31-Jul-2002  12:27  1.0.3705.299  1,187,840  System.Web.dll 31-Jul-2002 02:39  1.0.3705.299    192,512  Aspnet_isapi.dll 31-Jul-2002 02:39  1.0.3705.299     28,672  Aspnet_wp.exe 12-Jun-2002 06:45  1.0.3705.299    468,856  Aspnet_perf.ini 31-Jul-2002 02:39  1.0.3705.299     24,576  Aspnet_regiis.exe



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the behavior
 Create an ASP.NET Web application. Add a DataGrid control to WebForm1.aspx. Populate the DataGrid control with data from a data source. For more information about binding DataGrid to a data source, visit the following Microsoft Web site:

Binding SQL Data to a DataGrid Control

http://msdn.microsoft.com/library/en-us /cpguide/html/cpconbindingsqldatatodatagridcontrol.asp

 Add a select column to the DataGrid.</li> Run the application by using https, and then click the link button.</li></ol>

Keywords: kbbug kbfix kbqfe kbnetframe100presp3fix kbvs2002sp1sweep kbhotfixserver KB327418

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.