-
progress bar
want to display progressbar with persantage like 10,20,...100%.
calling webservice from my aspx page and webservice will call some third party component(like vc++) and returns the multiple outputs
like 10,20,....100
how do i get multiple outputs for single call to webservice?
my task is based on output returned by the third party component i need to display the progressbar.
how can i do this? please advice me.
test.aspx
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services >
<asp:ServiceReference Path="Service1.asmx" />
</Services>
</asp:ScriptManager>
<input id="Imagebutton3" type="button" onClick="test/>
]
function test()
{
Service1.Send(str_output,Output);
}
function Output(result)
{
alert(result)// its always showing first retun value say 10 only.
}
Webservice
[WebMethod]
public string Send(String strMessage)
{
string strReturn = "";
byte[] baMessage = EncodeMessage(strMessage);
System.Net.Sockets.TcpClient tcpClient = new System.Net.Sockets.TcpClient();
tcpClient.Connect("0.0.0.0", "190");
NetworkStream networkStream = tcpClient.GetStream();
networkStream.Write(baMessage, 0, baMessage.Length);
byte[] baReturn = new byte[tcpClient.ReceiveBufferSize];
networkStream.Read(baReturn, 0, tcpClient.ReceiveBufferSize);
networkStream.Close();
tcpClient.Close();
strReturn = DecodeMessage(baReturn);
return strReturn;
}
Similar Threads
-
Replies: 4
Last Post: 01-22-2008, 02:04 PM
-
By Irfan Mirza in forum Java
Replies: 5
Last Post: 06-22-2006, 10:27 AM
-
By a7n9 in forum VB Classic
Replies: 3
Last Post: 08-30-2005, 12:34 AM
-
By Robin in forum VB Classic
Replies: 1
Last Post: 07-18-2002, 10:48 AM
-
By Jeff Aziz in forum Enterprise
Replies: 3
Last Post: 07-27-2000, 02:32 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|