Transfer data from and to asp.net pages

H

Hans

hello folks,
I'm migrating a windows form app to a web application and i need to
transfer some data to a target page and from the target page back to
the source.

ie.

I have a web page call editor.aspx and another call open.aspx
I need to do something like this from the Editor.aspx page

Open myOpenPage = new Open()
myOpenPage.someProperty = true; // can i do this?
someControlInEditorPage = myOpenPage.SelectedItemID;

and so on... can i do this?

Also, can i have a constructor overload to receive parameters in aspx
pages?

Thanks a lot
 
M

Mark Rae [MVP]

I'm migrating a windows form app to a web application and i need to
transfer some data to a target page and from the target page back to
the source.

ie.

I have a web page call editor.aspx and another call open.aspx
I need to do something like this from the Editor.aspx page

Open myOpenPage = new Open()
myOpenPage.someProperty = true; // can i do this?
someControlInEditorPage = myOpenPage.SelectedItemID;

and so on... can i do this?

Not really - WinForms and WebForms are very, very different...

http://www.google.co.uk/search?sour...n-GBGB252GB252&q=ASP.NET+page+pass+parameters
 
R

Robbe Morris - [MVP] C#

You probably need to get a good ASP.NET book judging
by your post. In a web environment, you have things
like Session to store user session specific info in memory.
One way to pass information from page to page is
with the use of the Request.QueryString object.

--
Robbe Morris [Microsoft MVP - Visual C#]
AdvancedXL Server, Designer, and Data Analyzer
Convert cell ranges in Excel to rule driven web apps
without IT programmers.
Free download: http://www.equalssolved.com/default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top