Change mode of FormView client-side with javascript

Last post 07-09-2007 11:25 AM by Yani Dzhurov. 1 replies.

Sort Posts:

  • Change mode of FormView client-side with javascript

    07-08-2007, 6:17 PM
    • Loading...
    • Scheinin
    • Joined on 04-03-2007, 9:25 PM
    • Seattle, WA
    • Posts 65

    Is it possible to change the mode of a FormView (say from ReadOnly to Edit) client-side using Javascript or is this only possible server-side?

    Filed under: ,
  • Re: Change mode of FormView client-side with javascript

    07-09-2007, 11:25 AM
    Answer
    • Loading...
    • Yani Dzhurov
    • Joined on 11-23-2006, 9:02 AM
    • Sofia, Bulgaria
    • Posts 516

    Basically, changing the mode of a FormView reflects what controls (html) are rendered to the page.

    Moving from read-only to edit for example would require rendering some text - boxes(inputs, instead of spans).

    So I'm afraid this could not happen purely on client-side. You could use an update panel , so only an asyn post back is done and only

    the form view html is refreshed.

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter