pj8_8's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 11 (0.01 per day)
- Joined:
- 09-March 09
- Profile Views:
- 588
- Last Active:
Aug 30 2012 11:40 PM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: textbox barcode reader problem
Posted 7 Jun 2012
Skydiver, on 07 June 2012 - 08:37 AM, said:The issue is that most common barcode reader drivers go for the least common denominator by emulating keyboard input. If you have control over the barcode reader driver, tell it to splat everything in one go instead of inserting text one character at a time. Or better yet, if you could interrogate the bar code reader directly so that you are not at the mercy of the user who may change the settings.
Anyway, there are two techniques:
1. Use a timer. Keep resetting the timer when there is more text coming in. When the timer eventually expires, then do your database insert.
2. Use the Validating or Validated event. This will require that user do some kind of interaction with the form to initiate the validation like changing the focus or clicking on an "Accept" button.
Thanks.
May i know the timer techniques can work for different scanner?
TQ -
In Topic: textbox barcode reader problem
Posted 7 Jun 2012
Hi this my code when i scan the barcode.
private void BarcodeTB_TextChanged(object sender, EventArgs e) { string barcode = BarcodeTB.Text; MessageBox.Show(barcode); }
TQ. -
In Topic: problem on pass object from MVC view to controller
Posted 3 Mar 2012
Hi All,
i have a problem on pass array[]/object/String[] from MVC view to controller.
From View page :
1. loop input data to array[]/object/String[]
Example (java script code in view page):
var collect = object() //declare object to store data for (int i=0; i<value.length; i++){ // loop data into object collect[i] = value[i]; alert(value[i]); // got value } var url='<%=Url.Content("~/controller/function")%>'; // pass object to MVC controller url+="?collect="+collect; $(location).attr('href', url); }
From MVC controller(Action Result):
public ActionResult ResultView(string[] collect) // receive from MVC View {......... collect[0]; // *****no value show? .............}
The Problem is Controller can not get value from View.
Any suggestion to Solve this problem?
Thanks. -
In Topic: problem on pass object from MVC view to controller
Posted 3 Mar 2012
Hi, May i know how to declare a array of string in java script ?
then pass to MVC controller? -
In Topic: problem on pass object from MVC view to controller
Posted 13 Jan 2012
Hi Alias,
Thanks for reply.
base on my code. i can store value to collect[i] and
pass to controller
Post method string[] values
but i cant pass to controller
ActionResult string[] values
var collect = object() for (int i=0; i<value.length; i++){ // no pproblem here, data can load into collect[i] collect[i] = value[i]; }
any suggestion/idea to solve this ?
pass array from view to controller ?
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Click here to e-mail me
Friends
pj8_8 hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
pj8_8 has no profile comments yet. Why not say hello?