当前位置:首页 > 网络编程 > 软件语言 > .NET > ASP.NET 1.1 to ASP.NET 2.0 Migration Solutions

ASP.NET 1.1 to ASP.NET 2.0 Migration Solutions

点击次数:41 次 发布日期:2008-11-06 08:12:24 作者:源代码网
源代码网推荐
广告载入中

源代码网整理以下Problem:

源代码网整理以下"Webform_Postbackoptions is undefined’ errors in ASP.NET 2.0

源代码网整理以下(Mostly occurs when migrated from ASP.NET 1.1 to ASP.NET 2.0

源代码网整理以下 And on click of any submit button (link button))

源代码网整理以下 

源代码网整理以下Solution

源代码网整理以下 

源代码网整理以下    * If Compression Module is used in application

源代码网整理以下 

源代码网整理以下         1. Open application configuration file web.config file located under root directory.
         2. Search for tag <httpModules> on successfully finding the tag full <httpModules> section looks as below

源代码网整理以下<httpModules>                      

源代码网整理以下<add name="CompressionModule"

源代码网整理以下                type="blowery.Web.HttpCompress.HttpModule, blowery.web.HttpCompress"/>                      

源代码网整理以下<add name="UehHttpModule"

源代码网整理以下                type="ASPUnhandledException.UehHttpModule, ASPUnhandledException"/>

源代码网整理以下</httpModules>

源代码网整理以下 

源代码网整理以下         3. If Compression module is not required then comment the following tag and check the application whether it runs without any errors

源代码网整理以下      The tag to be commented is below

源代码网整理以下      <add name="CompressionModule"

源代码网整理以下                type="blowery.Web.HttpCompress.HttpModule, blowery.web.HttpCompress"/> 

源代码网整理以下 

软件开发网 www.mscto.com

源代码网整理以下         4. If Compression module is really required then

源代码网整理以下      Without commenting just add this tag outside

源代码网整理以下 <system.web> tag.                      

源代码网整理以下<httpCompress preferredAlgorithm="deflate" compressionLevel="high">

源代码网整理以下<excludedMimeTypes>

源代码网整理以下<add type="image/jpeg"/>

源代码网整理以下<add type="image/gif"/>

源代码网整理以下</excludedMimeTypes>

源代码网整理以下<excludedPaths>

源代码网整理以下                <add path="WebResource.axd"/>

源代码网整理以下</excludedPaths>

源代码网整理以下</httpCompress>

源代码网整理以下 

源代码网整理以下5.       If Internet Information Services version is 6.0  then add the following

源代码网整理以下       Without commenting just add this tag outside

源代码网整理以下 <system.web> tag                      

源代码网整理以下<httpCompress preferredAlgorithm="gzip" compressionLevel="high">

源代码网整理以下<excludedMimeTypes>

源代码网整理以下<add type="image/jpeg"/>

源代码网整理以下<add type="image/gif"/>

源代码网整理以下</excludedMimeTypes>

源代码网整理以下<excludedPaths>

源代码网整理以下                <add path="WebResource.axd"/>

源代码网整理以下</excludedPaths>

软件开发网 www.mscto.com

源代码网整理以下</httpCompress>             软件开发网 www.mscto.com

源代码网整理以下 

源代码网整理以下The difference between 4 and 5 is IIS 6.0 uses GZIP as compression algorithm as compared to previous version which used “deflate”

源代码网整理以下 

源代码网整理以下         6. If nothing works fine check Internet Information Services
                o Navigate to your web site virtual directory
                o Right click on your web site and click on “Properties”.
                o Select “Directory” tab
                o Click on “Configuration” button and then select “Mapping” tab.
                o Search for entry of extension .axd if entry already exists, double click on the extension and ensure that “Check that file exists” checkbox is unchecked. Click on “Ok” button. Click on”Apply” button, Restart your IIS and check whether application works fine. 软件开发网 www.mscto.com
                o If extension is not found we need to add the extension click on “Add” button and in the popup window enter the following details.

源代码网整理以下      Executable -                                  c:windowsmicrosoft.netframeworkv2.0.50727aspnet_isapi.dll

源代码网整理以下                  Extension - .axd                                 软件开发网 www.mscto.com

源代码网整理以下      Verbs: select Limit To - GET, HEAD, POST, TRACE 软件开发网 www.mscto.com

源代码网整理以下      Script Engine - Checked

源代码网整理以下     Check that file exists – Unchecked

源代码网整理以下      Apply it and Restart your IIS and Check application works or not.

源代码网整理以下 

软件开发网 www.mscto.com

源代码网整理以下Problem:

源代码网整理以下 

源代码网整理以下On Migration from ASP.NET 1.1 to ASP.NET 2.0 we cannot read the values from the Read Only textboxes.

源代码网整理以下 

源代码网整理以下Solution 软件开发网 www.mscto.com

源代码网整理以下 

源代码网整理以下In Page Load () event place the following code 软件开发网 www.mscto.com

源代码网整理以下 

源代码网整理以下If you have the read only textbox with ID as “txtReadOnly”

源代码网整理以下 

源代码网整理以下C#

软件开发网 www.mscto.com

源代码网整理以下txtReadOnly.Text = Request [this.txtReadOnly.UniqueID];

源代码网整理以下 VB.NET 软件开发网 www.mscto.com

源代码网整理以下txtReadOnly.Text = Request (Me.txtReadOnly.UniqueID)

源代码网整理以下 

源代码网整理以下Problem:

源代码网整理以下 

源代码网整理以下On Migration from ASP.NET 1.1 to ASP.NET 2.0 we cannot find the events attached To Data grid will not be visible in Properties Window even though there are events at the code behind.

源代码网整理以下 

源代码网整理以下Solution

源代码网整理以下 

源代码网整理以下To solve this problem, all you need to code the events manually as below:

源代码网整理以下The reason is you can still live on with that. Just if you are a new developer for the project, you will be confused on this one and have questions in mind like

源代码网整理以下“If there are no events in the Properties Window, I assume the events at the code behind are useless, maybe the previous developer did not clean up his messy code?”

源代码网整理以下 

源代码网整理以下// Add the code in bold

源代码网整理以下  <asp:DataGrid id="dtgAssoc" Width="100%" AllowPaging="True" CssClass="dgStyle" BorderColor="Navy" runat="server" AutoGenerateColumns="False"AllowSorting="True"                OnPageIndexChanged="dtgAssoc_PageIndexChanged">   <AlternatingItemStyleCssClass="dgAlternatingItem"></AlternatingItemStyle>         <HeaderStyleCssClass="dgHeader"></HeaderStyle>


源代码网推荐

源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华