Questions tagged [helper]

Additional functionality not defined in a class that the helper operates on.

A helper is a method commonly used in object-oriented programming to provide additional functionality to classes that not directly associated with the class. This is known as an Inversion of Responsibility.

Helper methods are typically grouped into a single helper class through the delegation pattern.

2672 questions
22
votes
5 answers

System.Web.Helpers not found in VS2015

I'm trying to add some JSON parsing to the C# code in VS2015 but I can't find: System.Web.Helpers as the MS documentation suggests. I've looked at other people's questions of a similar nature (almost all on earlier versions) and the answers all say…
DaveEP
  • 1,426
  • 4
  • 13
  • 27
22
votes
3 answers

Wildfly 9 http to https

I want to redirect the request from HTTP to HTTPS. I am using wildfly 9. After a google search I found the following, but it is not working. I hope somebody
phil
  • 221
  • 1
  • 2
  • 4
22
votes
5 answers

Extension Method vs. Helper Class

Possible Duplicate: Extension Methods vs Static Utility Class I am building an API of general functions which perform actions based upon objects in .NET. For example; I have created a function that checks a string to see if it is an email…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
21
votes
3 answers

E_ACCESSDENIED when creating a host-only interface on virtualbox via vagrant

When attempting to run vagrant up after upgrading to VirtualBox 6.1.28, the following error message is received There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown…
knahdiya
  • 211
  • 1
  • 2
  • 4
21
votes
2 answers

Using the textarea helper in Rails forms

Why does this code show an error in text area? <%= form_for(:ad, :url => {:action => 'create'}) do |f| %> <%= f.text_field(:name) %> <%= f.text_area_tag(:text, "", :size => "50x10") %> <%= submit_tag("Submit") %> <% end %>
maria
  • 213
  • 1
  • 2
  • 4
21
votes
2 answers

Check if Model is valid outside of Controller

I have a helper class that is passed an array of values that is then passed to a new class from my Model. How do I verify that all the values given to this class are valid? In other words, how do I use the functionality of ModelState within a…
James Santiago
  • 2,883
  • 4
  • 22
  • 29
21
votes
4 answers

Can I have a global razor @helper outside of App_Code?

The question is simple as stated in the title: Is there a way of having razor helpers outside of 'App_Code'? Example ( HtmlEx.cshtml file ): @helper Script(string fileName, UrlHelper url) {