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
shan876shan876 

write s-Control in VB.NET???

hi all:
   I am new to .NET environment but wanted to know in salesforce.com what exactly do you need to write .NET code.. like I try to do a simple query in S-Control in VB.NET and yet the only thing that came up was the code itself...something like this
<html>
<head>

<script>
Public function hrresult()
Dim lead as sforce.Object
dim i as Integer
Dim qr as sforce.QueryResult = binding.query("select name from account")
Do
For i =0 to qr.records.Length
lead=qr.records(i)
Console.writeline(lead.Any(0).InnerText)
Next
if qr.done then Exit Do
qr=binding.queryMore(qr.queryLocator)
Loop
End Function
</script>
</head>

<body onload="hrresult">
</body>

</html>

 
werewolfwerewolf
You can't write .net code in an Scontrol; think of Scontrols as web pages, so the only thing that will consistently work on them is Javascript.  You can write standalone .net apps that connect to Salesforce's web services API and do all kinds of interesting things.
razzazrazzaz
Thank you for the response... Is there a guide book on the linking to salesforce api's on when one writes the .NET app to connect to it?
Can someone provide me a link?
Thanks
Shan
SuperfellSuperfell
http://wiki.apexdevnet.com/index.php/Web_Services_API