Enable editing on SqlDataSource - insert only numbers in zip code
<p>I have a table of users that could edit their name, address, and zipcode.</p>

<p>I used "enable editing" in the "Configuring DataSource" Wizard.</p>

<p>How can I restrict the TextBox so that they can only enter numbers with a length of 4?</p>

<p>I know how to do it in a normal TextBox, but this was a little tricker with the 
<code>&lt;asp.parameter name="zipkode" type ="int"\&gt;</code>.</p>

<p>iam trying 
DetailsView1.Attributes.Add("onkeypress", "return postnrvalidator(event, this.value);");</p>

<p>with postvalitator as a javascript that only exepts numbers. But the whole Detailsveiw only accepting number. I only need 1 of them.</p>

<p>I tried DetailsView1.Rows[6].Cells[0].Attributes.Add(...).</p>
