惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
H
Hackread – Cybersecurity News, Data Breaches, AI and More
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Simon Willison's Weblog
Simon Willison's Weblog
F
Fortinet All Blogs
美团技术团队
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
V
Vulnerabilities – Threatpost
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
PCI Perspectives
PCI Perspectives
P
Privacy & Cybersecurity Law Blog
V2EX - 技术
V2EX - 技术
博客园 - Franky
Forbes - Security
Forbes - Security
P
Privacy International News Feed
罗磊的独立博客
博客园 - 聂微东
V
Visual Studio Blog
V
V2EX
aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
S
Securelist
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 叶小钗
小众软件
小众软件
T
Tenable Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
B
Blog RSS Feed
M
MIT News - Artificial intelligence
L
LangChain Blog
N
Netflix TechBlog - Medium
S
Security Affairs
H
Heimdal Security Blog
H
Help Net Security
A
Arctic Wolf
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
月光博客
月光博客
C
Cisco Blogs
Martin Fowler
Martin Fowler

博客园 - ★金★

导出EXCEL table变宽格式 IE11兼容性设定 DIV左右行 Jquery绑定Select下拉菜单 SQL中多项合并时请加ISNULL Repeater中绑定下拉菜单的2种方法 WebForm设置URL路由后要照顾好之前的连接 Repeater中获取HTML select 值 NPOI生成Excel 博文阅读密码验证 - 博客园 Firefox中不支持parentElement用parentNode取代 jquery给span赋值的时候出现firefox不兼容 jquery表单验证增加确认及可选不需要验证的方法 javascript可用数组取代case格式化字符 display和visibility的区别 SQL中Replace替换引号 javascript动态添加删除行后行内计算及取值 取代RadioButtonList及RadioButton方法
C#获取多个相同name值
★金★ · 2011-08-19 · via 博客园 - ★金★

本来用Request.Form["txtnote"]就可以了,可是里面如果有逗号怎么办,这种方式是自动以逗号分开的。
string[] nameParts = Request.Params.GetValues("txtnote")可满足要求。
然后合并即可,可用FOR,据说foreach性能更佳。

            string a = "";
           // for( int i = 0; i < nameParts.Length; i++ )
            foreach (string s in nameParts)
            {
                //a +=nameParts[i].ToString() + "@";
                a += s + "@";
            }

posted on 2011-08-19 13:38  ★金★  阅读(317)  评论(0)    收藏  举报

刷新页面返回顶部