How to split Entered in textboxes data stored in a table using MVC with LinqToSQL

Posted by Mandlaa under ASP.NET MVC on 10/15/2013 | Points: 10 | Views : 973 | Status : [Member] | Replies : 1
I have a textbox,I can enter data like this(1.20.1000),I want to split this one into 3 parts Stored in another table in 3 columns and also store same(1.20.1000) values in another table 1 column,

How can i do this perform this 2 operations at a time using MVC with LinqToSql


Posted by: Vuyiswamb on: 10/15/2013 [Member] [MVP] [Administrator] NotApplicable | Points: 25

in your controller before you save , Split them

var str = "1.20.1000";

var spl = str.Split('.');

Thank you for posting at Dotnetfunda

Mandlaa, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response