Questions tagged [dotvvm]

DotVVM is an ASP.NET Core framework that can build line-of-business applications and SPAs without writing tons of Javascript code. You only have to write a viewmodel in C# and a view in HTML and DotVVM will generate the rest for you.

http://www.dotvvm.com

DotVVM is an OWIN-based ASP.NET framework that can build line-of-business applications and SPAs without writing tons of Javascript code. You only have to write a viewmodel in C# and a view in HTML and DotVVM will generate the rest for you.

89 questions
5
votes
2 answers

How do I create a session variable in DotVVM viewmodel?

I am building a site in DotVVM and when I try the following line of code but I get error: NullReferenceException HttpContext.Current.Session.Add ("Value", Item3);
4
votes
2 answers

DotVVM Redirection

Hi I would like to ask what is the correct way for redirection from a command in dotVVM framework. I am trying to redirect to another page via Context.Redirect() function that actually works but I get an exception…
Andrej Dobeš
  • 233
  • 1
  • 4
  • 12
3
votes
1 answer

DotVVM Change CssStyle property from a Panel component in runtime doesn't work

I'm trying to change a CssStyle property, 'background-color', from a Panel component programmatically through a Button click Command, but nothing happen. If I set the property on ViewModel Load() method, works. After page loads…
3
votes
1 answer

dotvvm: Auto play video list (presentation)

I like to build a Video presentation website with dotvvm. when nothing happens it has to start every time a new video from a list. with the bootstrap/MediaObject i can't find the event 'video ready playing' so we can start the next video. what is…
basdroid
  • 43
  • 3
2
votes
1 answer

How do I tell a Javascript method to wait until after binding values to execute in DotVVM?

I use a value binding () to generate some of my page content based on a number of variables. I also need to run some javascript on the generated HTML to fix a few minor niggles, like…
user7858150
2
votes
1 answer

How to implement MVVM Light INavigationService in a DotVVM project

I want to implement the MVVM Light INavigationService interface in a DotVVM project; but I don't know how to do that. The most important method that I need to implement is NavigateTo(string pageKey) method. I am using a SpaContentPlaceHolder in my…
2
votes
0 answers

DotVVM - CommandBinding with dynamic input parameter

how I can create CommandBinding to Button with dynamic input parameter in code-only component code? In example: var btn = new Button(); btn.SetBinding(ButtonBase.ClickProperty, GetCommandBinding(SubCategoryLoaderProperty)); Now I want to…
2
votes
2 answers

asp.net core 2.0 dotvvm vs razor pages - which one is more powerful for an interactive web app?

With the latest release of ASP.NET CORE version 2.0 we now have Razor Pages which I really like because it shows a MVVM way of developing which I am already familiar because I've used it in UWP. I was searching to develop web apps without js because…
2
votes
1 answer

DotVVM: Steps for wrapping 3rd Party JavaScript controls, which have builtin, custom binding handlers for KnockoutJS

I would like to use some JavaScript controls, which have KnockoutJS binding handlers already implemented. After reviewing the DotVVM tutorials, such as "Code-only Controls" and also the controls from the DotVVM source code, I am confused on what…
M Star
  • 23
  • 3
2
votes
1 answer

dotvvm and Telerik mvc

Hi all I did search to see for answer but nothing. My question is related to dotvvm framework. I have installed dotvvm into a existing mvc 5 application and work correctly but becouse the dotvvm does not know razor markup I can't use telerik ui for…
Gioking
  • 21
  • 3
1
vote
0 answers

Dotvvm image classification Accuracy Problem

I am trying to image classification with Dotvvm and I made everything true but my model accuracy is 0% and results are NaN%. What should I do? Does anyone know how to fix the problem?
ilayda
  • 11
  • 1
1
vote
1 answer

DotVVM: Auto-update based on timer

We have a dotvvm app that displays real-time data. We would like to have this updated every 5 seconds. It is loaded in the InitializeAsync Method: public override async Task PreRender() { if (!Context.IsPostBack) await…
bjscharf
  • 61
  • 10
1
vote
1 answer

There is a problem parsing oldVersion attribute DotVVM.Core

In Visual Studio 2022, I have created a new DotVVM project, including Bootstrap 3 and jQuery. As I am evaluating the pros/cons of DotVVM I check the create sample pages options. The issue I have is that when building the project I get the following…
1
vote
1 answer

Rendering an ITemplate in custom markup control in DotVVM

I'm trying to create a custom control that renders a calendar in which days can be selected. I need the ability to pass an ITemplate to the control which will be rendered for each day. The days are rendered by a Repeater. As there is currently no…
OronDF343
  • 528
  • 1
  • 3
  • 14
1
vote
1 answer

How to correctly view pdf in browser using DotVVM?

I'm trying to view PDF in a browser tab using DotVVM. I've tried to use ReturnFile() method described here https://www.dotvvm.com/docs/tutorials/advanced-returning-files/1-1 with additionalHeaders but it haven't worked. var additionalHeaders = new…
1
2 3 4 5 6