473,320 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Passing server control values between pages (never fixed)

Does anyone know why this does not work? I've posted this maybe 5 times now
in 5 different websites and no one on the internet (to my knowledge) has come
up with anything to help fix. Most people discuss ideas and try to explain a
solution however there is no actual code or solution that is ever met. Why
does this error occur and why does the code fail?? I've copied/used this
code just as many people have said from Microsoft forums to non-popular
forums. Please help and if you would even like to take a look at my code
please give me your email as I really need this fixed.

I've had about 6 months to look into this problem already and the best
people have come up with is rebooting IIS, deleting recreated temp folders in
the 2.0 framework, and other temporary fixes that knock this error away for a
few hours (or even minutes) before it replicates itself again.....

Your help is greatly appreciated. Please super-gurus, super coders, and all
other coding pros help me out. Thanks in advance.

EmployeeDirectory.aspx->EmployeeProfile.aspx are the pages involved.

================================================

Inside EmployeeDirectory.aspx is:

<%@ Page Language="C#" AutoEventWireup="false"
CodeFile="EmployeeDirectory.aspx.cs" Inherits="EmployeeDirectory"%>

Inside EmployeeDirectory code behind:

Server.Transfer("EmployeeProfile.aspx");

Inside EmployeeProfile.aspx is:

<%@ Page Language="C#" AutoEventWireup="false"
CodeFile="EmployeeProfile.aspx.cs" Inherits="EmployeeProfile" %>

<%@ Reference Page="~/EmployeeDirectory.aspx" %>

Inside EmployeeProfile code behind:

private EmployeeDirectory clsEmployeeDirectory;

Context.Handler.GetType().ToString();

clsEmployeeDirectory = (EmployeeDirectory)Context.Handler;

================================================

ERROR IS:

Unable to cast object of type 'ASP.EmployeeDirectory_aspx' to type
'EmployeeDirectory'.
Jan 5 '06 #1
0 897

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Oscar | last post by:
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is...
1
by: Matt M | last post by:
Ok. So I'm passing values between web pages, as per microsoft's framework development guide (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/ht...
4
by: Miguel Dias Moura | last post by:
Hello, i created an ASP.net / VB page with a really big form. Now i want to create 4 pages and in each one i will place 1/4 of the big form. The last page will send all the form values by...
4
by: gkr | last post by:
Hi I would like to pass values/data from Page1 to Page 2, then capture values on page 2 and return back to Page 1 with the values from page2. Can you pls guide me on how to do this ? I tried...
1
by: olduncleamos | last post by:
Hello all. With a background in ASP, I am finding the work required for passing values between pages mystifying. For various obvious reasons, I have eliminated using cookies and session to store...
3
by: Ross McLean | last post by:
Hi all, I've been teaching myself C# for a new project at work. I have a bit of a background in c++ and java but never been what you could call a guru. I'm having some strange things happening...
1
by: Steve | last post by:
After a few hours of trial and error I have reached the following conclusions, can you please tell me if I am right: I have 2 aspx pages both with the same master page and I wish to pass values...
4
by: =?Utf-8?B?SmVyZW15IEJydWVuaW5n?= | last post by:
I have found numerous iterations of server classes creating controls and adding them to web pages. However, I have never found any uses with the databind. I would like to set the text of the...
4
by: TS | last post by:
Steven, i lost this message conversation from outlook express and made a post online (see last one on this page). Please answer it as it hasn't been yet. thanks The clientID of our controls...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.