Code Monkey home page Code Monkey logo

Comments (3)

exyi avatar exyi commented on June 17, 2024

I'm sorry, but encrypted/signed values don't work with static commands, and I don't see a reasonable way to make it work.

We should however produce a more reasonable error, probably disallow the assignment if the object contains anything marked with the Protect attribute

from dotvvm.

MichalOberreiter avatar MichalOberreiter commented on June 17, 2024

Ok, understand.
It's necessary produce error? I would expect that signed properties will not be just assigned.
My situation:

  • I have grid where items have signed Id property.
  • I want to create infobox of focused row item somewhere in page
  • so I would like to on rowclick just assign item to some property in viewmodel to show selected data in infobox
  • and i dont want to make classic postback, because i have all data already on client and want them just show in different place in page

from dotvvm.

exyi avatar exyi commented on June 17, 2024

But then the deserialization is not possible, since the signed part of an object is missing.

You could work around this by having a property with selected row index, instead of the selected row. Or by adding Bind(ServerToClientFirstRequest) on the SelectedRow property.

from dotvvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.