Home
 Index > ASP.NET Web Applications

ASP.NET Web Applications ARTICLES

Description: Get solutions to ASP.NET Web development issues for ASP.NET Frameworks 1.1, 2.0, and 3.5

Copying a Web Application results in a new ApplicationId in the ASPNETDB and users are unable to log on.
When an Application is copied to a different Server or different directory on the same server, all user memberships and roles are invisible to the application though the records remain in the database and there is no error connecting to the database.
1 Scenarios | 1 Solutions 
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.
Error continues to state: When adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
1 Scenarios | 1 Solutions 
Could not find control 'xxx' in ControlParameter 'xxx'
Error occurs for UpdateParameter ControlParameter's ControlID property.
0 Scenarios | 1 Solutions 
How to add a JavaScript file to a MasterPage
While the stylesheet href is resolved automatically, script file references are not. The workaround is simple.
1 Scenarios | 1 Solutions 
How to create a CustomValidator for testing for certain file types such as GIF or JPG Images
Shows how to create a custom validator that checks that an uploaded file is either a Jpeg or Gif with client-side and server-side validation.
0 Scenarios | 1 Solutions 
Object Reference not Set to an Instance of an Object
The most common error in .NET applications can occur in a variety of scenarios.
1 Scenarios | 2 Solutions 
How to DataBind a Wizard control to an ObjectDataSource
Although the Wizard ASP.NET web control cannot be bound directly to an ObjectDataSource, you can use the Wizard in a FormView, thereby databinding the Wizard indirectly.
0 Scenarios | 1 Solutions 
ObjectDataSource 'XXX' could not find a non-generic method 'XXX' that has parameters: XXX, XXX, XXX
Error occurs when binding a data control such as a GridView with an ObjectDataSource.
1 Scenarios | 1 Solutions 
How to Disable SideBar Links in the ASP.NET Wizard Web Control
Create a SideBarTemplate for your Wizard to control the behavior of Sidebar steps.
2 Scenarios | 2 Solutions 
Procedure or function has too many arguments specified
This error may occur when binding a control (GridView, FormView or DetailView) to a SqlDataSource.
1 Scenarios | 3 Solutions 
How to Embed an Image, JavaScript or other file in a Server Control
Using RegisterClientScriptResource and GetWebResourceUrl to embed files in your Web server control is easy (if you know all the steps you need to take to achieve this)
1 Scenarios | 1 Solutions 
Simple Method to Rewrite the URL
Re-write URLs without creating a module or using ISAPI filters.
0 Scenarios | 1 Solutions 
How to select a dropdownlist item in an EditItemTemplate of a FormView that is bound to an ObjectDatasource
Get the data returned from an ObjectDataSource and select an option in a dropdownlist from the code-behind.
0 Scenarios | 1 Solutions 
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
The error was thrown while attempting to add an AJAX Extender, such as a Calendar extender, to a textbox.
0 Scenarios | 1 Solutions 
How to use a CustomValidator to validate one Web control only if a checkbox or radiobutton is checked.
This article demonstrates how to create client-side and server-side custom validation in a FormView.
1 Scenarios | 1 Solutions 
The Visible property of a View control can only be set by setting the active View of a MultiView
The error was thrown when attempting to set a Wizard's SideBarButton's visible property to false or true during it's DataList's ItemDataBound event.
1 Scenarios | 1 Solutions 
How to use one FormView template as the InsertItemTemplate and EditItemTemplate
Typically, it is unnecessary to use two different form templates for update and insert operations. The following code snippet demonstrates how to force the FormView control to use a single template for inserts and updates.
0 Scenarios | 1 Solutions 
Unable to cast object of type 'ProfileCommon' to type ‘ProfileCommon'
After converting an ASP.NET Web Application from a Web Site to a Web Application, the ProfileCommon class is no longer accessible in code.
0 Scenarios | 2 Solutions 
Implicit conversion from data type sql_variant to uniqueidentifier is not allowed. Use the CONVERT function to run this query.
Error occurs when passing the UserId (GUID) as a parameter to a SqlDataSource.
1 Scenarios | 1 Solutions 
Web Control visibility property not consistent with its visibility when a page loads
When debugging code, the "visible" property shows "false" for a Web Control even though the control is visible in the browser before and after the page loads.
1 Scenarios | 1 Solutions 
InvalidOperationException was caught: The Size property has an invalid size of 0
ObjectDataSource update and insert operations throw an error when output parameters are used.
1 Scenarios | 1 Solutions 
Copyright 2017 © E-Centric, Inc. | Terms of Use