Click here to Skip to main content
11,494,851 members (52,557 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MVC3 Razor
Hi,

How do I clean for the past values ​​of TexBoxFor?
Posted 31-Aug-12 11:27am
Comments
Wes Aday at 31-Aug-12 16:28pm
   
Very very unclear.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If I understood the question correctly, consider using ModelState.Clear. For example, have a look at this post: http://blogs.msdn.com/b/simonince/archive/2010/05/05/asp-net-mvc-s-html-helpers-render-the-wrong-value.aspx[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

@Html.TextBoxFor(model => model.desc_goods, new {autocomplete="off", onkeyup = "GetDescName(this.value);", style = "width: 615px" }
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 Sergey Alexandrovich Kryukov 350
2 CHill60 318
3 Sascha Lefèvre 280
4 Nakul Chaudhari 236
0 Sergey Alexandrovich Kryukov 10,297
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,864
3 Maciej Los 3,412
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 31 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100