Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > How do you pass arguments from previous wizard pages
 

How do you pass arguments from previous wizard pages

I want to display a grid that uses the connection string from a previous page.

I'm getting the following error:

Microsoft.Practices.WizardFramework.WizardExecutionException: The wizard failed to execute. The error was:
The argument ConnectionSettings is already collected by the step Define DataMembers. It cannot be added to step Enter database connection information.

[RecipeArgument]

public ConnectionStringSettings ConnectionSettings

{

set

{

connectionSettings = value;

}

}

TIA

Jay

JayUrb  Wednesday, May 17, 2006 5:58 PM
You can get argument values by using the IDictionaryService:

IDictionaryService dictionary = (IDictionaryService) GetService(typeof(IDictionaryService));
object value = dictionary.GetValue("ConnectionString");

HTH
kzu  Saturday, May 20, 2006 12:57 PM
You can get argument values by using the IDictionaryService:

IDictionaryService dictionary = (IDictionaryService) GetService(typeof(IDictionaryService));
object value = dictionary.GetValue("ConnectionString");

HTH
kzu  Saturday, May 20, 2006 12:57 PM

You can use google to search for other answers

Custom Search

More Threads

• Future Roadmap for GAT
• Service Factory ( Data Access ) - Handling with transactions
• Adding a solution to source control during CreateSolution Recipe
• Including a Web Deployment Project Template in a Guidance Package Solution Template
• Error using Project template - Package templates may not be properly registered.
• Unable to uninstall or reinstall SCSF
• Clarius SFT June 2007 CTP released issues
• Error while unfolding template with empty projectItem file
• "Toolkit is already installed" but it's not
• Guidance Automation Toolkit ( febrruary 2008 ) not able to install