3
Answers

How enter Multiple values in a single Textbox and how to Spl

Photo of Paul Rajs

Paul Rajs

8y
361
1
hi Developers
How enter Multiple values in a single Textbox and how to Split it and How to Calculate it on both Running time and C#.
i have a Textbox named txtDetails i should enter Many values or More than one value .
i want to Split it by + or - or * and perform the calculation.
if i entered values like this 10+20-10 the result will be =20.
else
if i entered values like this 20 the result will be =20. thats all
this is my requirement still i have no idea about this . if anyone of know how to do this please guide me to i am done this task.
thanking you
Paul.S
Prayer throw, Impossible becomes Possible.

Answers (3)

0
Photo of mohan517
NA 7 0 20y
Hi, Thanks for reply. Actually I am trying to develop an application with central database ( Ms SQL). And users connect to this database. Whenever user connects to the central database for first time I application needs to copy all the tables needed by this particular user on his local machine database. So that he can access his local copy when he is offline. And some periodical synchronization to be carried out to keep all copies consistent. I need ur help to know what to use for this kind of application may be ADO.net or SQLDMO or SQL Server CE 2.0. What will be the good one to start with. Thanks, mohan
0
Photo of miker
NA 340 0 20y
... 3. Create DTS package and execute it using dtsrun command line utility. Mike
0
Photo of Andrzej Wegierski
NA 705 0 20y
1. Use Microsoft tool named DTS (Start->Programs->Microsoft SQL Server->Import and Export Data), not c# 2. If You must use C# (see help): - use ExecuteNonQuery() method to create new table in database2 - read data from database1 into datatable1 of dataset (rows status will be unchanged) - create datatable2 and import rows from datatable1 into it to get row status=inserted (may be someone know about better trick ???) - update table created in database2 with data from datatable2