Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: sharepoint2010
I have DID,Department Name,MID,Machinery Name in a visual web part,when submit button is pressed ..............
(i want output like)

DID,Department Name save in Department list and
MID,Machinery Name save in Machinery list.
Both Department and Machinery are present in same site.
Posted 19-Dec-12 9:31am
Rohit Shrivastava at 19-Dec-12 16:41pm
Are you developing a custom visual web part or using any existing webpart? If it is custom webpart then its your code behind which is responsible to store information from the controls into list and you could easily achieve what you are asking.
harisharepoint at 20-Dec-12 5:32am
hello Rohit,
i am developing custom visual web part,I have one more column i.e,DID in machinery list which is lookup from Department list.Can you please suggest me the code how can i save the data in both the lists with out error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 345
1 Gihan Liyanage 332
2 OriginalGriff 283
3 ClimerChinna 222
4 Zoltán Zörgő 170
0 Sergey Alexandrovich Kryukov 8,243
1 OriginalGriff 7,109
2 CPallini 2,598
3 Richard MacCutchan 1,980
4 Abhinav S 1,778

Advertise | Privacy | Mobile
Web01 | 2.8.140826.1 | Last Updated 19 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100