Riddhi Valecha

Riddhi Valecha

  • 427
  • 3.2k
  • 396.4k

URGENT - COMMA SEPRATED VALUES EXCEL TO SQL FROM ASPX PAGE.

Oct 20 2014 2:32 AM
Hi..

Please help me out in the following -
I have a table as-
ID
Asset_Code
Asset_Name
AssignedTo
1
A1
Keyboard
ABC
2
A2
Keyboard
DEF
3
A3
Mouse
GHI
4
A4
Monitor
JKL

Now, ID is unique (Primary Key).
Step-1
-------
Now, there is a text area in the front-end i.e. aspx page.
THe user will type the name as "Abc". Here, I want the system to load all the names starting from A.
Just like in outlook, we type name and the name and email appears in the search list.
Then, the user selects the name "ABC".
The user should be able to select multiple values i.e. "ABC; DEF;".
----------------
Step-2
------
There is a button on aspx page.
When the user clicks on this button, an update query should be fired.
i.e
update tablename set AssignedTo = null where assinedTo = "ABC; DEF" and AssetCode = "A1; A2"
---------
Please help.
Its Dam Urgent.