开发者

Partial View Rendering with ASP.NET MVC 2.0

I have a partial View which contains a TextArea. When i Render this parital view in my main view page the Text Area is coming disabled (but it not graying out) and not allowing any entry to be typed there.

//---Here are the code segement from my partial view---

<div id="AddComment" style="display:none">
      <fieldset>
          <legend>Add Comment</legend> 
          <p><label> Comment for:</label>- <select id="Station"></select></p>
          **<%=Html.TextArea("UserComment", new { rows = 5, cols = 65})%>**** (this text area is  the problem)
          <p><input type="button" id="addComment" onclick="SaveComment()" value="Save" /></p>
      </fieldset&g开发者_高级运维t; 
 </div>
//-----end of code segment -----------------------

Please help

Thanks in advance.


I got the probem resolved. its was not the fault of the partial view Rendering.it was basically the script written on the main page to block the backspace keypress.

//--------------------below line of code prevents the browser to raise a backspace key press outside the editor---// //document.attachEvent('onkeydown', function(evt) { evt.returnValue = false; }); //-----------------------------------------------------------------------------------//...

once i removed this line thing started working. thanks you all for helping me

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜