Ask a Question related to ASP.NET General, Design and Development.
-
zPaul #1
Re: passing ASP.net Variable string
This reminds me a question.
What advantage or disadvantage by using Context.Items? How is this being
handled?
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:ePTmU#GMDHA.2256@TK2MSFTNGP11.phx.gbl...etc.> Here's a nice, simple way to pass values from one page to another:
> (VB.NET code)
>
> 'Add data to the context object before transferring
> Context.Items("myParameter") = x
> Server.Transfer("WebForm2.aspx")
>
> Then, in WebForm2.aspx:
>
> 'Grab data from the context property
> Dim x as Integer = CType(Context.Items("myParameter"),Integer)
>
> Of course there are a number of ways to pass values from one page to
> another, such as using the querystring, cookies, session,
> context, saving to a temporary table in the database between each page,[url]http://msdn.microsoft.com/msdnmag/issues/03/04/ASPNETUserState/default.aspx[/url]> You'll have to decide which technique is best for your application.
> Here are several good articles on the subject to help you decide.
>>
> [url]http://www.aspalliance.com/kenc/passval.aspx[/url]
>
> [url]http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=600[/url]
>
> [url]http://www.dotnetbips.com/displayarticle.aspx?id=79[/url]
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "Ying" <superyingyang@yahoo.com> wrote in message
> news:799dc3d8.0306111346.da5543b@posting.google.co m...>> > Hi,
> >
> > Please help. I want to know how I can pass a string variable from page
> > 1 to page 2 to page 3 to page 4 etc.. ( all different pages) in
> > asp.net.
> >
> > For example the first page is a form, the secound page takes the
> > variable from the first form and put's it into a form control. When
> > the form control is clicked it takes the variable to the next page
> > etc....
> >
> > I do not want to use sessions.
> >
> > --ying
>
zPaul Guest
-
Passing variables through a string that already has variable in it
I'm trying to pass variables collected from a flash form through a string. When it adds these variables to the string it automatically puts a ? in... -
Passing XML in a string parameter
We have a parameter to a webmethod that is defined as a string. We expect to pass XML in this string. What we've found out is that the .Net web... -
passing string to another frame
If I am executing a php script, in a given frame...is there a means whereby I can pass a string into another frame, which has php script in it, and... -
How to replace a variable string within /* variable_string */ with x for each character in string?
How to replace a variable string within /* variable_string */ with x for each character in string? The string may span on multiple lines. for... -
passing javascript variable into asp variable using vbscript
The subject pretty much sums up what I need to do. Here is what I have so far, but still can't figure out how to get it working: <script...



Reply With Quote

