Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to save the connection string in a class library pro
Message
From
16/10/2007 09:14:21
 
 
To
15/10/2007 18:47:09
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01261098
Message ID:
01261219
Views:
13
Hello Bonnie,

I have followed your advice about n-tier and I have the following question.

I have a winform that calls a business class that return a dataset(dsData).

How do I bind my textboxes on my form to this dataset???.

Below is the code of my form
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using UPCI.WinUI;
using UPCI.Atlas.Business.MyBiz;

namespace UPCI.Atlas.WinUI.MyUI
{
    public partial class Policy : UPCIForm  
    {
        private string PolicyNumber;
        private DataSet dsData;
        private PolicyBiz oBiz;
        
        // Need to save the polid so  later I can get related info
        public string PolID;
        
        public Policy(string pn)
        {

            this.PolicyNumber = pn;
            InitializeComponent();

            this.FillData();
        }
        public void FillData()
        { 
            // I'm directly calling a Biz class. In reality, a Web Service
            // should be here which calls the Biz class
            oBiz = new PolicyBiz();
            dsData = oBiz.GetPolicy(this.PolicyNumber);
          

            
        }

        private void Policy_Load(object sender, EventArgs e)
        {

        }

        private void Policy_Layout(object sender, LayoutEventArgs e)
        {
            //this.tabControl1.Dock = DockStyle.Fill;
        }


    }
}
Thanks,
Sergio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform