1

I`m working on ASP .NET MVC 5 app which will be used with older people too. I have two questions:

1.: Is in ASP .NET some way to call controller method on background? This method cause some changes in CSS file. I have a button there and after click I need to call this method and refresh a site. The only problem is that I can`t use JavaScript - if JS is turned off in browser this function should still works.

2.: Is possible to implement functionality for simple increasing or decreasing of font size for whole page with storing this info in some session cookies - like we know it using JavaScript but as I said in previous question - it should work even if JS is turned off.

Many thanks for any advice.

12
  • There is no reason why not to use JS in today's technology, most of the browser if not all are JS turned on by default. Commented Mar 11, 2016 at 15:30
  • You can do this in web forms. Have you considered using it ? Commented Mar 11, 2016 at 15:30
  • If you can't (won't) use JavaScript then everything will have to be done via page requests to server-side code. There's no other universal in-browser language/platform available. For doing this with server-side code, what have you tried? Commented Mar 11, 2016 at 15:32
  • There are some law rules - everything should be working even if JS is disabled. I´ve tried to call this method when user clicks on button, it calls method but not on background - return value (boolean) was shown in view. Commented Mar 11, 2016 at 15:37
  • 1
    For 2 - Press: control + and control - or pinch for mobile - there's no need for you to code this, it's built-in Commented Mar 11, 2016 at 15:59

1 Answer 1

2

One ASP.Net integrates WebForms, MVC and WebApi. I would suggest going down this route for your project as webforms can be used to make all of you page controls server controls which can be managed and manipulated from the server side. Take a look

http://www.asp.net/aspnet/overview/whats-new-in-visual-studio-2013/one-aspnet-integrating-aspnet-web-forms-mvc-and-web-api

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.