我的回答有什么问题?

编程入门 行业动态 更新时间:2024-10-26 00:27:56
本文介绍了我的回答有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经使用CodeProject了一段时间,但今天我决定第一次回答一个问题。我试着亲切,彻底,准确。我并不感到不高兴我的答案没有被选中。但我很困惑为什么我被投了票。如果我发现了技术错误,我想理解它,所以我在编码时不再重复。如果这是礼仪错误我想知道,所以我不会继续疏远其他程序员。 我的回答: 什么时候为空而不是空?

解决方案

这是我的问题和我决定投票解决方案。 公平地回顾我给出的例子。我应该在我的例子中使用Session而不是QueryString。 Session返回一个Object,它是使用Convert.ToString转换一个Object,返回空字符串。 br /> 您的结论和测试是正确的,所以我会回去更改分数。 : - )

I've used CodeProject for a while but today I decided to respond to a question for the first time. I tried to be cordial, thorough, and accurate. I'm not upset that my answer wasn't chosen. But I'm confused as to why I was down voted. If I made a technical error, I would like to understand it so I don't make it again when coding. If it is an error in etiquette I would like to know so that I don't continue to alienate fellow programmers. My Answer: When is null not a null?

解决方案

Hi, it was my question and my decision to vote the solution down. In fairness, looking back at the example I gave. I should of used Session and not QueryString in my example. Session returns an Object and it's the conversion of an Object using Convert.ToString which returns the empty string. Your conclusion and test was correct so I'll go back change the score. :-)

更多推荐

我的回答有什么问题?

本文发布于:2023-10-22 22:57:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1518980.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有什么

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!