on 04-20-2005 9:28 AM
Im using VB .Net 2003 and SAP .Net Connector 2.0.
Im able to connect to SAP and displaying data on datagrid. Now, im creating my own logon screen where user key-in their client no, user, password.
My problem is how to validate the user. How to check whether the user, client and password being entered correctly?
Thank you.
regards.
Construct a Connection object using the connection parameters entered and call method Open().
Regards,
Guangwei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Reiner n Guangwei.
What is the difference with Connection and proxy?
I open the connection and dispose it later and Im still able to display data through the sapproxy.
I dont get it. I thought by disposing the connection, the sapproxy should not be working.
Anybody can explain it to me.
Thank you.
Regards.
The connection maintains the connection state, while the proxy maintains the functional aspect. Indeed a proxy without an open connection wouldn't work:
Connection conn = Connection.GetConnection(myDestination);
conn.Open(); // This would throw if connection data in myDestination is bad
...
SAPProxy1 proxy = new SAPProxy1();
proxy.Connection = conn;
proxy.Method1(...);
conn.Dispose(); // Closes connection
proxy.Method1(...); // Will fail
proxy.Connection = null;
proxy.Dispose(); // Doesn't have an effect here. It would also Dispose the assigned connection.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.