我需要格式化一个asp.net文本框,使它只接受用户输入的形式
### - ### - ### (#:仅限数字).
建议或答案请.
我在字符串(varchar)中的Db列,我需要将它分配给一个int值.我正在使用linq进行查询.虽然代码编译在运行时遇到错误.提前致谢.
PFB我的查询:
var vlauesCap = from plan in entities.PA_RTM_CAP_Group
select new Business.PartnerProfile.LookUp
{
Id =Convert.ToInt32(plan.cap_group_code),
//(Int32)plan.cap_group_code,
Value = plan.cap_group_name
};
return vlauesCap.ToList();
Run Code Online (Sandbox Code Playgroud) 我有一个"123456789"形式的字符串.在屏幕上显示时我想将其显示为123-456-789.请告诉我如何为每3个数字添加" - ".提前致谢.