Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing WebForm data to another WebForm in different project

Status
Not open for further replies.

haroonkhalid

Programmer
Nov 6, 2001
16
SG
hi again ...

I am trying to pass data from one webform in first project to another webform in second project but it throws an error while that page call works fine if i use the following line

Response.Redirect("../SecondProject/SecondPage.aspx");

how may i be able to pass this information like controls to other web form in other project.

regards
Haroon
 
what's the error? what exactly are you trying to pass, and how are you trying to pass it?

pretty impossible to help w/ the small amount of information given.
penny1.gif
penny1.gif
 
yeah you are right ...
let me elaborate it in little detail.

i have one ASP.NET project named FIRST-APPLICATION that has one web form named FIRST-PAGE.ASAPX and there is button on this page. on button press, I want to pass data and controls information to another web form SECOND-PAGE.ASPX in totally independent project named SECOND-APPLICATION.

FIRST-APPLICATION SECOND-APPLICATION
FIRST-PAGE.ASPX ---> SECOND-PAGE.ASPX
Server.Transfer("../SECOND-APPLICATION/SECOND-PAGE.aspx");

i can do it easily if both the web forms are in same project but when these are in two different projects than it throws error.

there is one way to do this that is if i add the reference of SECOND-APPLOICATION to FIRST-APPLICATION than it works fine but I dono wana do it, both applications may not know each other.

i hope this wud be enough information, if you need more .. plz let me know, i wud come up with more detail.

regards,
Haroon
 
If I get this right, you merely want to go to another page passing that page some info. Right? I think that the easiest way would be to use a query string.

Reponse.Redirect("2ndPageAddress?querystringhere")

Tell me if I am way off here
That'l do donkey, that'l do
[bravo] Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top