Visual Basic .NET » Windows Forms
Solution To ASP.NET 2.0 (igration Problems) may be help full -- KiranK --

*Hi All ,*
* I have just documented the problem and solution i found *
**
*Problem:*

*Getting '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:*

Try out this if you are using any Compression module

Check it out in your application *web.config* for Compression module

* <httpModules>*

* <add name="CompressionModule" type="
blowery.Web.HttpCompress.HttpModule, blowery.web.HttpCompress"/>*

* <add name="UehHttpModule" type="
ASPUnhandledException.UehHttpModule, ASPUnhandledException"/>*

* </httpModules>*

if it is present just comment

the following tag

<add name="CompressionModule" type="blowery.Web.HttpCompress.HttpModule,
blowery.web.HttpCompress"/>

if don't want compression and after this check your application.

if you really need of compression module

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>

OR if your is *IIS 6.0*

The difference between the first and second is the Internet Information Services 6.0 uses the "GZIP" Compression algorithm

<httpCompress preferredAlgorithm="*gzip*"
compressionLevel="high">

<excludedMimeTypes>

<add type="image/jpeg"/>

<add type="image/gif"/>

</excludedMimeTypes>

<excludedPaths>

<add path="WebResource.axd
"/>

</excludedPaths>

</httpCompress>



If nothing works

Check your *Internet Information Services*

just check under

Home Directory->Configuration->Mapping

check whether you have *.axd* extension entry if entry is already found

double click the extension and ensure that "*Check that file exists*"
checkbox is unchecked. Apply it and restart your IIS and check it...

if extension not found add extension as

*.axd*

* *

*
c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll*

* *

* limit to: GET, HEAD, POST, TRACE*

* *

* Script Engine - Checked*

* *

* Check that file exists - Unchecked*



*Problem:*

* *

*On Migration from ASP.NET 1.1 to ASP.NET 2.0 we cannot read the values from the Read Only textboxes*

* *

*Solution:*

* *

In Page_Load() place the below code

If you have the read only textbox with ID as "txtReadOnly"

*C#*

txtReadOnly.Text = Request
;* *

* *

*VB.NET*

* *

txtReadOnly.Text = Request(Me.txtReadOnly.UniqueID);* *

* *

* *

* *

* *

**

**

**

**

**

**
* *
--
Kiran R Kawalli

mob no:9880281339

[Submit Comment]Home