I need to have some data members get some values when I create an instance of the DataContract on the client. This is not happening using constructors. I have searched throu
make Proxy class in your client side:
public class AccountProxy: Account
{
public AccountProxy()
{
mAccountId = 5;
mAccountName = "ABC";
}
}
and use your proxy class, not generated client class:
namespace TestClient
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
AccountProxy acc = new AccountProxy();
}
}
}