<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET Dynamic Data</title><link>http://forums.asp.net/1145.aspx</link><description>Discussions regarding the new scaffolding framework in ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3179977.aspx</link><pubDate>Fri, 22 May 2009 04:52:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3179977</guid><dc:creator>venkatesh.g2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3179977.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3179977</wfw:commentRss><description>&lt;p&gt;Thanks Steve,&lt;/p&gt;
&lt;p&gt;Its working fine now.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Venkatesh G&lt;/p&gt;</description></item><item><title>Re: How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3177722.aspx</link><pubDate>Thu, 21 May 2009 09:01:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3177722</guid><dc:creator>sjnaughton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3177722.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3177722</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;venkatesh.g2:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;2. If you click on update hyperlink from edit mode (without making any changes to the data displayed), the &amp;quot;Password&amp;quot; is stored as null in database. I think this is because there is no data in the field displayed&amp;nbsp;and this should not be the normal behaviour.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Fixed here &lt;a href="http://csharpbits.notaclue.net/2009/05/password-fieldtemplates-for-dynamic.html"&gt;Password FieldTemplates for Dynamic Data (UPDATED)&lt;/a&gt;&amp;nbsp;just added a simple test to check if the TextBox.Text was not empty before returning it&amp;#39;s value.&lt;/p&gt;</description></item><item><title>Re: How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3177596.aspx</link><pubDate>Thu, 21 May 2009 08:11:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3177596</guid><dc:creator>sjnaughton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3177596.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3177596</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;venkatesh.g2:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;2. If you click on update hyperlink from edit mode (without making any changes to the data displayed), the &amp;quot;Password&amp;quot; is stored as null in database. I think this is because there is no data in the field displayed&amp;nbsp;and this should not be the normal behaviour.&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Duh! sorry I should have fixed that I&amp;#39;ll update the article.&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;venkatesh.g2:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;3. Is it normal&amp;nbsp;not to give option to change password in Edit Mode?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;That depends on the situationif you wanted it read only you could have the Edit version being the same as the normal and the have what is currently the Edit as the insert i.e. Password_Insert.ascx.&lt;/p&gt;</description></item><item><title>Re: How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3177211.aspx</link><pubDate>Thu, 21 May 2009 05:28:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3177211</guid><dc:creator>venkatesh.g2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3177211.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3177211</wfw:commentRss><description>&lt;p&gt;Hi Steve,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The new control is also having the same problem in the EDIT mode. &lt;/p&gt;
&lt;p&gt;1. It show no text in edit mode (As you mentioned, may be this is normal behaviour. Ok I shall accept this)&lt;/p&gt;
&lt;p&gt;2. If you click on update hyperlink from edit mode (without making any changes to the data displayed), the &amp;quot;Password&amp;quot; is stored as null in database. I think this is because there is no data in the field displayed&amp;nbsp;and this should not be the normal behaviour.&lt;/p&gt;
&lt;p&gt;3. Is it normal&amp;nbsp;not to give option to change password in Edit Mode?&lt;/p&gt;
&lt;p&gt;Kindly reply&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Venkatesh G&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3176417.aspx</link><pubDate>Wed, 20 May 2009 19:03:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3176417</guid><dc:creator>sjnaughton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3176417.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3176417</wfw:commentRss><description>&lt;p&gt;Just did a quick article here: &lt;a href="http://csharpbits.notaclue.net/2009/05/password-fieldtemplates-for-dynamic.html"&gt;Password FieldTemplates for Dynamic Data&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3176239.aspx</link><pubDate>Wed, 20 May 2009 17:16:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3176239</guid><dc:creator>sjnaughton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3176239.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3176239</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;venkatesh.g2:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; It should show ***** &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;I&amp;#39;ve tested a standard textbox set to password mode and is show no text in edit mode &lt;img src="http://forums.asp.net/emoticons/emotion-6.gif" alt="Sad" /&gt; this seems to be normal behaviour.</description></item><item><title>Re: How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3176125.aspx</link><pubDate>Wed, 20 May 2009 16:24:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3176125</guid><dc:creator>sjnaughton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3176125.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3176125</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;venkatesh.g2:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;It should show ***** and if I update the old values should not change&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;surely if you change the value in edit mode and save the value should change?</description></item><item><title>Re: How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3175601.aspx</link><pubDate>Wed, 20 May 2009 13:12:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3175601</guid><dc:creator>venkatesh.g2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3175601.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3175601</wfw:commentRss><description>&lt;p&gt;This works correctly while inserting new records but while editing, the existing value is empty. It should show ***** and if I update the old values should not change.&lt;/p&gt;</description></item><item><title>Re: How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3175225.aspx</link><pubDate>Wed, 20 May 2009 11:14:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3175225</guid><dc:creator>sjnaughton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3175225.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3175225</wfw:commentRss><description>&lt;p&gt;Well here you go for Edit/Insert mode try this:&amp;nbsp;&lt;pre class="coloredcode"&gt;[MetadataType(&lt;span class="kwd"&gt;typeof&lt;/span&gt;(EmployeeMD))]
&lt;span class="kwd"&gt;public&lt;/span&gt; partial &lt;span class="kwd"&gt;class&lt;/span&gt; Employee
{
    &lt;span class="kwd"&gt;public class&lt;/span&gt; EmployeeMD
    {
        &lt;span class="kwd"&gt;public object&lt;/span&gt; EmployeeID { &lt;span class="kwd"&gt;get&lt;/span&gt;; &lt;span class="kwd"&gt;set&lt;/span&gt;; }
        &lt;span class="kwd"&gt;public object&lt;/span&gt; Name { &lt;span class="kwd"&gt;get&lt;/span&gt;; &lt;span class="kwd"&gt;set&lt;/span&gt;; }
        [DisplayName(&lt;span class="st"&gt;&amp;quot;Password&amp;quot;&lt;/span&gt;)] &lt;span class="cmt"&gt;//makes column title not split&lt;/span&gt;
        [DataType(DataType.Password)]
        &lt;span class="kwd"&gt;public object&lt;/span&gt; password { &lt;span class="kwd"&gt;get&lt;/span&gt;; &lt;span class="kwd"&gt;set&lt;/span&gt;; }
    }
}&lt;/pre&gt;and in Text_Edit.aspx.cs add this to the Page_Load:&amp;nbsp;&lt;pre class="coloredcode"&gt;var password = Column.Attributes.OfType&amp;lt;DataTypeAttribute&amp;gt;().FirstOrDefault();
&lt;span class="kwd"&gt;if&lt;/span&gt; (password != &lt;span class="kwd"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; password.DataType == DataType.Password)
{
    TextBox1.TextMode = TextBoxMode.Password;
}&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;You will need to do something a bit more in the Text.ascx FieldTemplate.&lt;/p&gt;</description></item><item><title>How to set Displayformat for a password field?</title><link>http://forums.asp.net/thread/3175027.aspx</link><pubDate>Wed, 20 May 2009 10:12:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3175027</guid><dc:creator>venkatesh.g2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3175027.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1145&amp;PostID=3175027</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a password field in the user table. While Insert/Edit the password should display&amp;nbsp;stars (*****). May I know how to set the password field so that it displays only Stars (****) in Insert/edit/list. &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Venkatesh G&lt;/p&gt;</description></item></channel></rss>