This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.
Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.
Before posting questions here you might want to review the developer documentation.
Hi,
I'm currently working on a small project where I need to communicate between two custom controls placed on two different pages. CC1 sits on page one. It has a button that redirects to page two where CC2 is placed. I need to transfer data from CC1 to CC2 and I'm a little unsure how the reccomended pattern is for doing stuff like that. I've tried using url arguments, but they seem to be stripped somewhere deep in the engine room.. Anyone tried to do this?
Kind regards,
Aquaboy
Hi Joe,
I think I'll try to be a little more elaborate regarding my problem. Communicating between a custom control and a page using the Url works perfectly. My issue is that I want to be able to communicate with a control on the receiving page.
I would like to build a small wizard where people can type in data and get a result on the last page. Now normally you would create the 4 aspx pages in the same general way that the searchresult.aspx page looks. The problem with doing it that way, is that you are not able to modify the content of the page from inside the portal (putting custom controls, web parts etc. on the page), but have to fire up VS.net to do any modifications.
So my solution to that problem is to create the pages inside the portal, putting custom controls on the pages. These custom controls needs to be able to communicate with each other. When I try to do this, it seems that the receiving custom control is not able to read the Url arguments. Somehow the HttpContext contains a request to default.aspx and not my newly created page. And the Request.Params collection doesn't contain my send arguments An obvious way would be to write data to the database between each page, but the reason I don't want to go that way is that the data gathered on each page isn't really anything that fits my model, rather it's the calculation on the last page I want to store in the database. Come to think of it, the data gathered on each page would be something that would fit very well in some sort of session store, and thrown away when the user is not around anymore.. Maybe what I'm looking for is something like the page viewstate or the session object..
Hope you get my problem..
Peter