By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,812 Members | 863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,812 IT Pros & Developers. It's quick & easy.

System design in .net

P: n/a
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 ~~~ ???
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
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 ~~~ ???

Nov 20 '05 #2

P: n/a
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

"The Grim Reaper" <gr*********@btopenworld.com> wrote in message
news:cc**********@hercules.btinternet.com...
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

"Agnes" <ag***@dynamictech.com.hk> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
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 ~~~ ???


Nov 20 '05 #3

P: n/a
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
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.