使用asp.net在数据库表中存储手机号码? [英] store mobile number in database table using asp.net?

查看:75
本文介绍了使用asp.net在数据库表中存储手机号码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我创建了一个页面包含的网页:categories(textbox1),title(textbox2),description(textbox3),location(textbox4) ,移动(textbox5)





一旦填写如下:类别:工作,职位:会计,描述:Sr.accountant,location:孟买,手机:1234567890



在数据库表中输入这些商店但这里没有输入手机号码意味着:工作,会计,sr.accountant,mumbai,没有号码(可选)意思是:1234567890 /没有数字)存储在数据库表中



i想要这样的输出意味着:job,accountant,sr.accountant,mumbai,这个数据存储在数据库中没有数字表格请回复我任何逻辑或示例

解决方案

它非常简单..

声明为html,如

手机号码

如果你发布没有任何价值它的默认值没有数字将存储在数据库中

尝试这个..

这应该可以帮助你

Dear All,

I created one web page that page contain : categories(textbox1),title(textbox2),description(textbox3),location(textbox4), mobile(textbox5)


once fill these like: categories:jobs,title:accountant,description:Sr.accountant,location:mumbai, mobile:1234567890

after enter these store in database table but here without enter mobile number means: jobs, accountant, sr.accountant,mumbai,no number(optional means: 1234567890/no number) store in database table

i want like this output means : jobs, accountant, sr.accountant,mumbai,no number this data store in database table please reply me any logic or examples

解决方案

its very simple..
declare as in html like
Mobile number
if you post without any value its default value No number will store in database
try this..
this should helps you


这篇关于使用asp.net在数据库表中存储手机号码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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