提取每个电子邮件并在mvc中 [英] Extract each Email and In mvc

查看:70
本文介绍了提取每个电子邮件并在mvc中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


在我的项目视图页面中,我创建了一个文本区域的emailid.Irican在其中放置了多个用逗号分隔的emailid.如果我单击Save,所有的emailid将保存为数据库中的每条记录.我使用了mvc.我将在控制器中写入什么内容用于检索textarea值并保存在数据库中

谢谢所有提前

Hi all,


In my project in view page for create i have taken a textarea foe emailid.Where Irican put multiple emailid separated by commas.if i click on save all emailid are save in database as each record.I used mvc.What will i write in controller for retrieve the textarea value and save in database

thanks All in Advance

推荐答案

hi
您可以使用 Request.Form["your textarea name"] 获取textArea文本.拆分后,这些邮件ID会将这些值传递给适当的模型/存储库类,并调用update方法.最好有有助于这些操作的存储库类.请尝试,如果无法实现,则回发评论.会尝试帮助
hi
you can get the textArea text using Request.Form["your textarea name"] . Once split those mail ids pass those values to the appropriate model/repository class and call the update method. Better have repository classes which aids these operations. Try and if can''t achieve then post back comments. Will try to help


这篇关于提取每个电子邮件并在mvc中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆