aspx code
<
<
<
<
$
},
alert(a + '<br/>' + b + '<br/>' + c);
},
}
});
}
</
</
<
<
<
</
<
<
<
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
<
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</
</
</
</
</
C# code
{
}
[WebMethod]
{
_default abc = new _default( );
{
}
}
{
{
}
}
{
Thread. Sleep( 3000);
// lets modify the data!
arg1 = "Modify Value for param1";
arg2 = 200;
}
{
// create the args to pass to the function
ArrayList list = new ArrayList( );
// create the delegate
// call the beginInvoke function!
// normally control is returned right away,
// so you can do other work here...
// calling end invoke notice that intValue and list are passed
// as arguments because they might be updated within the function.
// write down the args :
Label1.Text += "arg1: " + strArg1;
Label1.Text +=" arg2: " + intValue ;
Label1.Text += " ArrayList count: " + list. Count;
Label1.Text += " return value: " + strResult+"<br />";
}
}
No comments:
Post a Comment