Ask a Question related to ASP.NET General, Design and Development.
-
Bryan Bolling #1
Re: Bidirectional Parameter Passing Between Pages
I am receiving a "View State is invalid" error message and am using the
Server.Transfer as you suggest. I have even spoken with one of your support
techs who provided me with a pre-sp service patch (see Knowledge Base
Article #812399). That still did not resolve the isue. Is there another
avenue to investigate to try to resolve this issue?
Bryan
""Mike Moore [MSFT]"" <michmo@online.microsoft.com> wrote in message
news:rfaq3DD6CHA.1708@cpmsftngxa06...rights.> Hi Doug,
>
> It sounds like server.transfer is what you're looking for. You might want
> to also know about the affect server.transfer has on ViewState:
> 316920 PRB: "View State Is Invalid" Error Message When You Use
> Server.Transfer
> [url]http://support.microsoft.com/?id=316920[/url]
>
> Thank you, Mike Moore
> Microsoft, ASP.NET
>
> This posting is provided "AS IS", with no warranties, and confers nocpmsftngxa08.phx.gbl!cpmsftngxa06!TK2MSFTNGP08.phx .gbl!TK2MSFTNGP09.phx.gbl>
> -------------------->> >From: "Steve C. Orr, MCSD" <Steve@Orr.net>
> >References: <00d601c2e7f7$71735f40$a301280a@phx.gbl>
> >Subject: Re: Bidirectional Parameter Passing Between Pages
> >Date: Tue, 11 Mar 2003 13:06:04 -0800
> >Lines: 38
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1123
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1123
> >Message-ID: <#7aSIIB6CHA.2420@TK2MSFTNGP09.phx.gbl>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet
> >NNTP-Posting-Host: dsl-66-114-148-135.isomedia.com 66.114.148.135
> >Path:microsoft.public.dotnet.framework.aspnet:129707> >Xref: cpmsftngxa08.phx.gbl>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> >
> >Here's a nice, simple way to pass a dataset from one page to another. It
> >works for most other kinds of objects too.
> >
> >'Add dataset to the context object before transferring
> >Context.Items("myParameter") = ds
> >Server.Transfer("WebForm2.aspx")
> >
> >Then, in WebForm2.aspx:
> >
> >'Grab dataset from the context property
> >Dim ds as Dataset = CType(Context.Items("myParameter"),Dataset)
> >
> >--
> >I hope this helps,
> >Steve C. Orr, MCSD
> >[url]http://Steve.Orr.net[/url]
> >
> >
> >"Doug Holland" <doug.holland@precisionobjects.com> wrote in message
> >news:00d601c2e7f7$71735f40$a301280a@phx.gbl...> >> >> Hi There
> >>
> >> I need to pass data from Page1 to Page2, and then back to
> >> Page1 again.
> >>
> >> I have managed through several mechanisms to get it to
> >> work in one direction but not in both directions.
> >>
> >> Does anyone have any examples or ideas?
> >>
> >> Preferably one that would support sending any .NET object,
> >> but in essense a DataSet is what I'm looking for.
> >>
> >> Thanks in advance,
> >>
> >> Doug Holland
> >
> >
Bryan Bolling Guest
-
Passing a parameter in SWF
In the sample application that comes with flash mx, when I click on the simpleconnect and look at parameters it has an Application Directory and if... -
Passing in a parameter
Hello All, I've declared my usercontrol in the normal way (page directive) and to load it I'm doing: <webapp:menu runat="server" />. However, is... -
Passing parameter using XML data
Hi, I hava a question as below: * Web Service * C# * paramter as XML data * not using a simple type like string * not using a class composed of... -
parameter passing from asp to php
Hi all, I've got a script using com objects that will work in asp but not work with php. The asp script creates an object that does something... -
parameter passing from osql
Hi, I want to write a batch file which essentially calls the osql utility (osql -i xxx.sql....) to run a SQL script. How the script can be written...



Reply With Quote

