WebVize's WebLog

An independent C# Developer in the Netherlands

Customer Service in C#

Just delivered a new Customer Service application with a load of couplings to different systems all coded in c#
By making extensive use of the tabcontrol from Microsoft you are able to really build nice and nifty management systems.
On thing to be aware of is the validators if you have all kinds of pages on the tabs that require validation.
You need to put them of if the tab hasn't got the focus.

I do make use of panels so this is how I placed it

public void disableReqValidators()
  {
   foreach(object mCont in pnlinformmeEdit.Controls)
   {
    if(mCont.GetType()==typeof(RequiredFieldValidator))
    {
     ((RequiredFieldValidator)mCont).Enabled=false;
    }
   }
   foreach(object mCont in pnlTestdriveEdit.Controls)
   {
    if(mCont.GetType()==typeof(RequiredFieldValidator))
    {
     ((RequiredFieldValidator)mCont).Enabled=false;
    }
   }
   foreach(object mCont in pnlbrochureEdit.Controls)
   {
    if(mCont.GetType()==typeof(RequiredFieldValidator))
    {
     ((RequiredFieldValidator)mCont).Enabled=false;
    }
   }

  }

 

Comments

Joey said:

Cool, I'm actually building a customer service request system now in ASP.NET/C# using SmtpMail as the primary communication method to keep users and customers notified of request statuses.

I too ran into the validators issue on a past project. What other challenges did you face on this customer service project?
# May 18, 2004 9:47 AM

Michael Hensen said:

What I found is that I needed to use some kind of controller where I could put temporary state to show certain panes based on the actions on either tabs or buttons. And to hold basic data like customer and employee data.

That way I was sure the app worked without having to load in all the data but only load what was needed to be presented
# May 18, 2004 10:47 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)