tag:blogger.com,1999:blog-2705677810452718752.post6247986894831277534..comments2024-03-03T14:09:44.179+00:00Comments on Pure Dot Net Coder: Automatically trim html controls in a asp.net mvc projectRippohttp://www.blogger.com/profile/10427021389808024817noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-2705677810452718752.post-25940825464169217752024-02-14T08:50:47.936+00:002024-02-14T08:50:47.936+00:00what about the case, when the property is list of ...what about the case, when the property is list of stringsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2705677810452718752.post-13057483727414111682018-07-04T00:00:22.891+01:002018-07-04T00:00:22.891+01:00Thanks for sharing this, but I have a problem usin...Thanks for sharing this, but I have a problem using this code: On SetProperty I have this message: "No suitable method found to override". Do you know how fix this? <br /><br />Thanks!Leonardo Bruno Limahttps://www.blogger.com/profile/04082533461255346837noreply@blogger.comtag:blogger.com,1999:blog-2705677810452718752.post-21882198945556389902016-07-19T15:28:57.266+01:002016-07-19T15:28:57.266+01:002 options:-
1. live with it, when user enters pa...2 options:- <br /><br />1. live with it, when user enters password into registration or login space is ALWAYS removed hence user never need to know<br /><br />2. move it so each model (class) has a data attribute that trims<br /><br />It may be possible to have a data attribute on the password property that the trim ignores.<br /><br />HTH but you point is outside this post<br /><br />Rippohttps://www.blogger.com/profile/10427021389808024817noreply@blogger.comtag:blogger.com,1999:blog-2705677810452718752.post-59945426027481117452016-07-19T13:08:09.508+01:002016-07-19T13:08:09.508+01:00I agree with you however this is helpful for ideal...I agree with you however this is helpful for ideal scenario where password field is not present but such application are rare or limited. So how we can take this to next level where password field can eliminate .....My Experiencehttps://www.blogger.com/profile/15585538274530641910noreply@blogger.comtag:blogger.com,1999:blog-2705677810452718752.post-79886186287259753902016-07-19T13:03:46.185+01:002016-07-19T13:03:46.185+01:00hi did you read my last point. "The only ins...hi did you read my last point. "The only instance where this may be a problem is when a user has a leading or trailing space on their password."Rippohttps://www.blogger.com/profile/10427021389808024817noreply@blogger.comtag:blogger.com,1999:blog-2705677810452718752.post-37628078434705543672016-07-19T12:57:26.822+01:002016-07-19T12:57:26.822+01:00What about Password type string Property ? How we ...What about Password type string Property ? How we bifurcate with other string ? My Experiencehttps://www.blogger.com/profile/15585538274530641910noreply@blogger.comtag:blogger.com,1999:blog-2705677810452718752.post-28177894086711733872015-08-27T15:08:36.216+01:002015-08-27T15:08:36.216+01:00Sorry was a bit hasty with that comment. Simply ch...Sorry was a bit hasty with that comment. Simply changed line 12 to:<br />val = value.ToString().Trim();<br />and all is well.<br /><br />Thanks for the article!Anonymoushttps://www.blogger.com/profile/08660058422402258774noreply@blogger.comtag:blogger.com,1999:blog-2705677810452718752.post-53085260983924716282015-08-27T15:04:29.744+01:002015-08-27T15:04:29.744+01:00On line 12, what is stringValue? Undefined variabl...On line 12, what is stringValue? Undefined variable.Anonymoushttps://www.blogger.com/profile/08660058422402258774noreply@blogger.comtag:blogger.com,1999:blog-2705677810452718752.post-52184286878977175362012-05-10T06:05:35.745+01:002012-05-10T06:05:35.745+01:00Excellent, glad it helps you out. Thanks for your ...Excellent, glad it helps you out. Thanks for your commentRippohttps://www.blogger.com/profile/10427021389808024817noreply@blogger.comtag:blogger.com,1999:blog-2705677810452718752.post-88397099758592901522012-05-10T05:23:18.769+01:002012-05-10T05:23:18.769+01:00Nice job! It works very fine.
Thanks a lot.Nice job! It works very fine.<br />Thanks a lot.Silvio Delgadohttps://www.blogger.com/profile/07419539587504976860noreply@blogger.com