howdy,
using the postbackurl of a button to send data to another page. This script
was working fine but now blamo
Server Error in '/newcartApplication.
--------------------------------------------------------------------------------
Unable to cast object of type 'ASP.productdetail_aspx' to type
'productdetail'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Unable to cast object of
type 'ASP.productdetail_aspx' to type 'productdetail'.
Source Error:
Line 37: Else
Line 38: Dim prev As New productdetail
Line 39: prev = CType(Page.PreviousPage, productdetail)
Line 40: partno = prev.PartNo
Line 41: name = prev.Name
Source File: c:\inetpub\wwwroot\newcart\addtobag.aspx.vb Line: 39
In the code-behind, the productdetail is underline blue and reporting type
'productdetail' is not defined. When I go to that page, in the ASPX file,
the <%@ Page ... %is underlined blue reporting type
ASP.common_user_control.ascx is not defined. So its complaining about my
user controls, I checked them out and they all appear to be fine, and again,
I didnt touch these files. When I compile my project I get a few errors
pertaining to the above and "Error 1 could not find library
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\newcart\bea62603\9c73a00a\App_Web_pr6xm09i.d ll' vbc : Command line
"
Any ideas?
I'm going to bed, 2AM EST.... Thanks!!
--
David Lozzi
dlozzi@(remove)delphi-ts.com
www.delphi-ts.com