textbox not getting refreshed
Posted
by oo
on Stack Overflow
See other posts from Stack Overflow
or by oo
Published on 2010-04-13T17:47:10Z
Indexed on
2010/04/13
21:43 UTC
Read the original article
Hit count: 402
i am doing an ajax call and i refresh a partial view. Inside the partial view i have this:
<%=Html.TextBox("instance.Id", Model.Id)%>
when i put a breakpoint here over Model.Id it has a number in it but after the ajax refresh is done the textbox just shows up with a 0. When i do a full browser refresh, the correct number shows up in the textbox.
when i use firebug to look at data in my callback i see this:
<input id="instance_Id" name="instance.Id" type="text" value="0" />
Everything else in the partial view refreshes fine.
any ideas on what could be going wrong here?
© Stack Overflow or respective owner