System design in .net

A

Agnes

For my company's vfp application. I need to perform same event in .net
1) E.g the user inputs the companycode, system check the companycode,
setfocus to that field if the code is invalid, HOWEVER, user can press
'Unsave' button to cancel this invoice or press 'upper arrow' to pass away
that field.
Question, in .net if i set .focus .the cursor must stay on that field until
I input valid companycode.
2) In my vfp, every textbox's valid event will call the method
"FieldValidation" and pass its type to that method e.g
"FieldValidation('txtCompanyCode')', e.g
"FieldValidation('txtInvoiceDate')'. if the user press "SAVE", it will pass
"ALL" as parameter

For this method , the following code is
PARAMETER pField

If pField = "txtCompanyCode" .OR. pField = "ALL"
'check........
endif
If pField = "txtDate" .OR. pField = "ALL"
'check........
endif

So, I will do twice field validation. Now, for .net new design. I am wonder
is this a good design to do that ???
Someone suggest that I should do' field validation' as the user press 'save'
only. <-- However, it is rejectable by my boss. MY BOSS insist the back-end
design must according to the vfp design or should better than b4.
I am headache about it ~~~
Any Suggestion ~~~ ???
 
T

The Grim Reaper

How come everyone in the world seems to be struggling to build .NET
applications, and no offence, but an awful lot of them are newbies and
asking very basic questions. How come I'm spending 3 hours a day trying to
apply for jobs as a VB programmer, which I've been doing professionally for
years (on and off).

S'not fair :(
__________________________
The Very Grim Reaper
 
C

Cablewizard

I feel your pain. I really enjoy helping people out, but so many times
I have wanted to make the same comment.
Especially when I read things like:
"Full xxx application needed with source code for FREE!!!"
"My company has tasked me with xxx and I'm still trying to figure out how to
install VS."

I'm constantly amazed how some clearly excellent programmers do actually provide
things for free. Kudos to them.
However, I haven't been able to find a steady job or paycheck for almost a year.

Sorry Agnes, I know this doesn't answer your question in any way.
I sure one of the very helpful people here will provide you an answer.
Tell your boss to hire a programmer with experience.
There are a lot of us out of work at the moment.

Will work for food.
Gerald
 
C

Cor Ligthert

Hi Agnes,

What your boss has to do is not so important for us, I do not completly
understand your message.

However did you already look at the e.cancel in the validate event?

When this does not answer your question, reply your answer?
Howevr (some) code will be fine to give us an idea.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top