Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2005, 01:17 AM
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to pass data to user interface (.NET Setup)

Hi,

Scenario:
I want to make a setup project, which take the following input parameters during setup
-server name
-userid
-password
i hav don that, but now there's a bit issue, for the next version of my product i want to make a setup which gets the previously installed configuration (server name,userid,password) say from web.config, populate the user interface dialog boxes with the previously installed values, i searched the google but couldn't find ny thing related to it:(
I retreive the user interface dialog box values using the following syntax
string UserName = this.Context.Parameters["Username"];
but when i tried to assign using
this.Context.Parameters["Username"]="root"
in installer class's install method (override) it can't set the textbox value....
can any one help me in this regards, or propose me a good alternative solution??????
Thx in advance.

Redgs,
Saeed.




 
Old November 8th, 2005, 06:01 PM
Jul Jul is offline
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Don't you have to say, that it is the Text property you want to set?
Something like that,if Parameters["Username"] is a Text Box.:

this.Context.Parameters["Username"].Text="root";



If you are using VS, it should be quite easy to figure out the possible attributes.

Hope it helps

 
Old November 10th, 2005, 06:48 AM
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

jul the following syntax wont work, vs dont show Text attribute:(
this.Context.Parameters["Username"].Text="root";






Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass data between asp.net forms hemanshubhojak ASP.NET 1.0 and 1.1 Professional 1 August 14th, 2005 12:27 AM
how to show user interface data in crystal report sanjay_jadam Crystal Reports 1 May 26th, 2005 02:25 AM
user interface Kasia Access VBA 6 March 14th, 2005 09:52 AM
Installation User Interface snowy0 VB.NET 2002/2003 Basics 0 October 8th, 2004 08:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.