Geeks With Blogs


ThreadAbortException my experiments with //Web ASP.NET Articles related to ASP.NET, ASP.NET AJAX, ASP.NET Troubleshooting, Performance etc.,
Including Search for your website documents -Part 2
If you have come to this article without reading the Part 1, please check Part 1 Once you have created the Catalog for your Search, you can use the Catalog for searching. Using the Catalog in your Application 1. In your Search Page, have a Textbox (TextBox1) and a Button (Button1). 2. In the click event of the Button, put the following code. string strCatalog = <Put the Name of the Catalog here>; strQuery = "Select Filename from Scope() where FREETEXT('" + TextBox1.Text + "')"; string connstring ......

Posted On Monday, April 25, 2005 7:55 AM

Unable to debug .net 1.1 applications after installing .net framework 2.0
.NET Framework 2.0 (CodeName: Whidbey) is the buzz word around and most of us would have installed the BETA versions to try our hands. However, after you install .NET Framework 2.0, if you continue to use Visual Studio.NET 2003 you may be unable to debug the applications developed in .NET 1.1. You may receive the error "Unable to start debugging on the webserver..." The reason is, as a part of installation, the framework registers the 2.0 version with the IIS using the aspnet_regiis.exe -i utility ......

Posted On Monday, April 25, 2005 7:54 AM

Fragment Caching - Caching parts of a Page
Caching is one of the recommended techniques to improve the performance of web applications by avoiding repeated requests to the server. It serves the purpose for faster response as well as reducing the load to the Server. Output caching can be enabled easily by just including the following code in the Top of the aspx page <%@ OutputCache Duration="1200" VaryByParam="None" %> This would result in the whole page being cached. However, there will be situations where we would like to cache only ......

Posted On Monday, April 25, 2005 7:53 AM

Output Caching based on File Dependency
In this article we will see how we can add output caching to our aspx pages and invalidate the cache based on change of a flat file like xml, txt etc., Basically, caching serves the purpose for serving repeated request from the cache such that the number of requests to the Server and the time taken can be drastically reduced. Say, there are about 100 requests for a page in regular intervals. At that time caching would be very useful since it will serve all the requests from the cache and reducing ......

Posted On Monday, April 25, 2005 7:52 AM

SmartNavigation to maintain scroll position across postbacks
Smart navigation is deprecated in Microsoft ASP.NET 2.0 and is no longer supported by Microsoft Product Support Services. This article describes how to implement the smart navigation features in ASP.NET 2.0. For more information check Thanks to Deepak for posting this in the comments. This article describes about using the Smart Navigation property to maintain the scroll position of pages across postbacks. All of us know that controls postback to the ......

Posted On Monday, April 25, 2005 7:52 AM

You may receive the Error Message "Server Error in '/application name' Application" while browsing an application
You may receive the following error message while browsing an application "Server Error in '/application name' Application ---------------------------... Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server ......

Posted On Monday, April 25, 2005 7:51 AM

Handling Page Load Events and PostBack Issues
A number of queries, articles from developers rise on this issue. When you bind a dropdownlist or other databound controls to a datasource during the page_load event, the process is triggered each time the page is loaded. In the followign code, we call a method which will populate a dropdownlist on the Page_Load Event:- private void Page_Load(object sender, System.EventArgs e) { BindDropDownList1(); } We select an item in the dropdownlist after the page has loaded and the list has been populated. ......

Posted On Monday, April 25, 2005 7:50 AM

Forms Authentication - Redirecting users to a Page other than Default.aspx
In this article I will explain how to redirect users to a specific page rather than the generic default.aspx upon successful authentication of the user. While using ASP.NET Forms authentication, if we try to access a protected page, the user would be taken to the login.aspx page with the ReturnUrl parameter having the path for the originally requested page. Once, the user's credentials are verified, the RedirectFromLoginPage method can be used to take the user back to the originally requested page. ......

Posted On Monday, April 25, 2005 7:50 AM

You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." when browsing an page
You may receive the following error when browsing an application. Parser Error Message: Could not load type 'WebApplication1.Global'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="'WebApplication1.... %> This error occurs when you create a new web application in using visual and without compiling the application, you try to browse a page in the application. This occurs because of the Application DLL not having been formed. ......

Posted On Monday, April 25, 2005 7:49 AM

You may receive the error "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level" in
You may get this error when trying to browse an application. The debug information shows that "This error can be caused by a virtual directory not being configured as an application in IIS." However, this error occurs primarily out of 2 scenarios. 1. When you create an new web application using visual, it automatically creates the virtual directory and configures it as an application. However, if you manually create the virtual directory and it is not configured as an application, ......

Posted On Monday, April 25, 2005 7:48 AM

Copyright © Harish Ranganathan | Powered by: | Join free