Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding Combobox that's populated by Web Service
Message
 
To
07/07/2009 12:14:37
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01409942
Message ID:
01410601
Views:
21
Right. The final error I was getting before I switched things around was that cboFees had no value, which it didn't. cboFees was the combobox that got manually by javascript.

Eric

>Eric,
>
>Are you getting the error on the Save method? What field is a string that is supposed to be an int?
>Tim
>
>
>>public partial class MMWebBusinessForm : mmBusinessWebPage
>>{
>>    protected Reg_Golf oOrder;
>>    protected Fee oFee;
>>    protected int iOrderId;
>>    protected int iContactId;
>>
>>    protected void Page_Load(object sender, EventArgs e)
>>    {
>>        this.oOrder = (Reg_Golf)this.RegisterBizObj(new Reg_Golf());
>>        this.oFee = (Fee)this.RegisterBizObj(new Fee());
>>        this.iContactId = int.Parse(String.IsNullOrEmpty(Request.QueryString["ContactId"]) ? "0" : Request.QueryString["ContactId"]);
>>
>>        this.iOrderId = int.Parse(String.IsNullOrEmpty(Request.QueryString["OrderId"]) ? "0" : Request.QueryString["OrderId"]);
>>        
>>        // Retrieve the specified order and detail
>>        if (! this.oOrder.getOrderById(this.iOrderId))
>>        {
>>            // Set default contact ID to the value sent in
>>            this.oOrder.NewEntity();
>>            this.oOrder.Entity.numIndID = this.iContactId;
>>        }
>>        if (IsPostBack)
>>        {
>>            this.oOrder.DataSet = (DataSet)Session["dsOrder"];
>>        }
>>        else { Session["dsOrder"] = this.oOrder.DataSet; }
>>    }
>>
>>    protected void btnSave_Click(object sender, System.EventArgs e)
>>    {
>>        DataSet dsOrder = (DataSet)Session["dsOrder"];
>>        // Convert the date string to a datetime for sql
>>        // this.oOrder.Entity.dtRegDate = Convert.ToDateTime(this.oOrder.Entity.dtRegDate);
>>
>>        if (this.Save(this.oOrder, dsOrder, this.oOrder.TableName) ==
>>           mmSaveDataResult.RulesPassed)
>>        {
>>            Response.Redirect("Contact.aspx?Id=" + this.iContactId);
>>        }
>>    }
>>}
>>
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform