Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Avid Listener
Posts: 17
Registered: ‎04-03-2009

How to pass values beetween 2 web forms?

How do you inkove and pass values to a specific form (Smart Part)? Anyone has an example?

Bronze Super Contributor
Posts: 195
Registered: ‎03-17-2009

Re: How to pass values beetween 2 web forms?

There are a few ways to do that. First, the PageWorkItem has a built in State where you can easily pass values from SmartPart to SmartPart on the same page.

 

// add myvalue
this.PageWorkItem.State["MySavedValue"] = myvalue;

// then later to retrieve
string myvalue = this.PageWorkItem.State["MySavedValue"].ToString();

// to remove
this.PageWorkItem.State.Remove("MySavedValue");

 

 

Another way is to use the Session to store values there. Kris Halsrud from CFX just posted about that this week: http://customerfx.com/pages/integrationblog/2009/10/09/using-page-session-to-store-values-in-the-sal...


Ryan Farley - Customer FX Corporation / Director of Development


customerfx.com
| slxdeveloper.com | My SalesLogix Development Blog
Highlighted
Copper Contributor
Posts: 94
Registered: ‎04-15-2009

Re: How to pass values beetween 2 web forms?

You can also look at campaign -> add response screen. It is passing few info using dialogwindow methods.

May be that would helpful.

 

Thanks and Regards

Sandeep Gaykhe

Thanks and Regards
Sandeep Gaykhe
Providian Global Solutions