Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Master Pages causing me grief

3 views
Skip to first unread message

Chad

unread,
Jun 12, 2006, 10:13:25 AM6/12/06
to
I want to pass a string variable from default3.aspx to default2.aspx.

I create a property in default2.aspx, called "X", and assign a value. I then
call Server.Transfer("default3.aspx")

In default3.aspx I have this code:
Dim Default3 As Default3 = ctype(Context.Handler, Default3)
Dim PassedString As String = Default3.x

This will work fine as long a default 3 is not a webform that references a
master page.

If it is, it tells me that "Default 3" is an undefined type. As a result,
the only way that I know o get it to work is to turn of Option Strict and
change it to this:

Dim Default3 As Object = Context.Handler
Dim PassedString As String = Default3.x

I really dont want to turn off Option Strict or resort to looselt typed
variables.

How do I correct this?


Bruno Alexandre

unread,
Jun 12, 2006, 10:35:45 AM6/12/06
to
why don't you use PreviousPage ?

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)


"Chad" <chad.dok...@unisys.com> escreveu na mensagem
news:e6jsp3$9p4$1...@trsvr.tr.unisys.com...

Chad

unread,
Jun 12, 2006, 1:35:58 PM6/12/06
to
Interesting, but I still have the same issue. I want to be able to cast to
an instage of the Default3 class (the previous page) so I can reference a
property on that page. For some reason, I cannot CTYPE to a page that has a
master class, which means I have to turn off Option Strict. Otherwise, it
works. But I dont want to turn off option strict

"Bruno Alexandre" <bruno...@gmail.com> wrote in message
news:enJrD2ij...@TK2MSFTNGP03.phx.gbl...

Chad

unread,
Jun 12, 2006, 2:35:11 PM6/12/06
to
Just wanted to make it clear that my question still remains.

"Chad" <chad.dok...@unisys.com> wrote in message
news:e6k8kq$dhs$1...@trsvr.tr.unisys.com...

0 new messages