function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ZitizonXZitizonX 

ASP.Net

Hi all,
 
I am pretty new out here. Have a quick question.
 

void function1()

{

//execute the login placing the results
//in a LoginResult object
sforce.LoginResult loginResult = binding.login(userName,password);

//set the session id header for subsequent calls
binding.SessionHeaderValue = new sforce.SessionHeader();
binding.SessionHeaderValue.sessionId = loginResult.sessionId;

//reset the endpoint url to that returned from login
binding.Url = loginResult.serverUrl;

}

 

void function2()

{

    

}