Latest Posts Under: ASP.NET and MVC

How do I enable .NET to show more detailed error messages?

Use the sample code below to display custom error messages on IIS 6:
<configuration>
    <system.web>
    <customErrors mode=”Off”/>
    <compilation debug=”true”/>
    </system.web>
</configuration>


Use the sample code below to display custom error messages on IIS 7:
<configuration>
<system.webServer>
 <httpErrors errorMode=”Detailed” />

ASP.NET updatePanel and Javascript issue

Problem: If you have the code as below and trying to validate the Phone textbox using the javascript 1 as below, you’ll have the a problem getting the right validation result because
-> PhoneObject is set as global variable and it’s not updated because the page doesn’t refresh everytime you click the button. It’s partial rendering remember? and it only use the partial javascript function that the event trigger.

Solution:

Scroll To Top
WP Facebook Auto Publish Powered By : XYZScripts.com