|
Hello All, I have the construct as follows: m_AS400 = new AS400(HostName, sUsername, sPassword); m_AS400.setGuiAvailable(false); return m_AS400.validateSignon(); The sUserName and sPassword are retrieved from a configuration store. However when I execute the 1st statement, it pops up the sign-on dialog, I would like to get an exception if the logon failed, and then I can trap that and give a suitable warning to my clients. My problem is that I am running server code and it would not be nice for this pop up to start and user not being aware of it. I guess one of the solutions mentioned on the internet was to use the m_AS400.setGuiAvailable(false) but, I need to tell the AS400 constructor to give me an exception if the log on failed without popping the sign-on dialog. Does anyone have a sollution to this? - Regards Prashant SSA Global The Netherlands.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.