Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding Woes.....
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Binding Woes.....
Miscellaneous
Thread ID:
00904176
Message ID:
00904176
Views:
48
Hi everyone,
I now have a bizobject registered, but i get the following error. I know it is registerd. because i am able to use the ".." buttons on the property sheet and it select s the right business object. I then can select the filed using the "..." buttons as well. That seems to tell me it is registerd.

I am using security, so the login form prompts me first, i know i have databases sonnectivielty because login allows me in using the SQl server connectivity.
Can't bind txtClientDescription to ClientBusiness.clients.ClientName 
code for the Register of Business Object.
private void Page_Load(object sender, System.EventArgs e)
{
	// Put user code to initialize the page here
	this.oClients = (ClientBusiness)this.RegisterBizObj(new ClientBusiness());
	// Get the Order ID
	int iClientID = int.Parse(Request.QueryString["ClientID"]);

	if (!IsPostBack)
	{
		DataSet ds = this.oClients.GetClientsByClientID(iClientID);
	}

}
Code for ClientBusiness
using System;
using System.Data;
using OakLeaf.MM.Main.Data;
using OakLeaf.MM.Main.Business;

namespace A4U.Internal.Business
{
	/// <summary>
	/// Summary description for ClientsBusiness.
	/// </summary>
	public class ClientBusiness : ABusinessObject
	{
		
		/// <summary>
		/// Main Stub that sets the Business Object Up
		/// </summary>
		public ClientBusiness()
		{

		}

		/// <summary>
		/// gets a new data access thread
		/// </summary>
		/// <param name="dataAccessClassName"></param>
		/// <returns></returns>
		protected override mmDataAccessBase	CreateDataAccessObject(string dataAccessClassName)
		{
			return new ClientDataAccessSql();
		}

		/// <summary>
		/// Creates a business rule object
		/// </summary>
		/// <returns>Reference to the business rule object</returns>
		protected override mmBusinessRule CreateBusinessRuleObject()
		{
			return new ClientRules(this);
		}

		public DataSet GetClientsByClientID(int piClientID)
		{
			// Get a reference to the data access object
			mmDataAccessBase dao = this.GetDataAccessObject();

			// Create and configure two parameter objects
			IDbDataParameter sqlparClientID = dao.CreateParameter("@ClientID", piClientID);
			

			// Get a DataSet filled with the result set
			return this.GetDataSet("SELECT * FROM clients WHERE clientid = @ClientID ", sqlparClientID);
		}


	}
}
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Next
Reply
Map
View

Click here to load this message in the networking platform