开发者

ASP.NET make number of lines editable

I have a number of lines of开发者_如何学运维 text on an .aspx page that I want a user to be able to edit, I am not storing this text/information anywhere in the database. I just want it to be information that is displayed to the user but can be editable, so the user can view the text and if there is a mistake or want to make a change they can do this by editing it.

I have seen that if you display data in a label and put a textbox beside it then, the textbox can move into the place of the label - I have done this for other text on the page however that method would not fit for this purpose because I require this edit of text to be for a number of lines.

Are there any suggestions to how this can be done?

Thank you


Just display it in another multi-line textbox by setting its TextMode property to multiline, and maybe styling it differently with CSS.


or if you want to do slick in-place editing use jeditable

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜