Tagged Questions
2
votes
4answers
767 views
How to call a method at specific interval of time in .NET MVC
I have an web application in MVC 3 and C#.
I need run a method every 1 hour for an unlimited time. I would like to know how to implemented it.
Thansk.
Related
Call MVC Controller from Windows task ...
0
votes
0answers
87 views
Mixing javascript and C#
I have @model IEnumerable<HotelWithRating> - some hotels.
At the view I have 5 checkboxes - stars of the hotel.
<table>
<tr>
<td>1</td>
...
0
votes
1answer
32 views
Connecting to and viewing data from Active Directory with Razor/MVC 3
I'm pretty new to Razor/MVC (and StackOverflow!), but I recently started a project at an internship and could use some advice. Basically, I am responsible for making web forms that users can fill out, ...
1
vote
1answer
34 views
How to avoid string corruption on formatting razor views
In Visual Studio Express For Web 2012 if razor view is formatted, formatter adds extra spaces to end
of javascript string. This causes invalid data to be passed.
Before formatting:
@if ...
0
votes
1answer
22 views
Twitch TV OAuth Login In C#
I am trying to connect a twitch TV account to a user profile on my website and I am getting a 403 Forbidden error. I am trying to use the Authorization Code Flow specified here: ...
0
votes
1answer
30 views
How to add a Value to Model State while there is already a key for that? MVC3
Good Morning, Evening or night
I was wondering how I can add a value to an existing key in ModelState. Here is what I have done yet:
[HttpPost]
public ActionResult Create(VM_RoleGroup ...
16
votes
2answers
5k views
MVC HTML Helpers and Lambda Expressions
I understand Lambda queries for the most part, but when I am trying to learn MVC, and I see the default Scaffolding templates, they use Lambda expressions for so many components.
One for example is ...
1
vote
1answer
38 views
How to call a hash algorithm in an ActionResult
Currently I'm seeking for the possibility for hashing a password in an ActionResult.
To be specific, I want to call my SHA512 method in the public ActionResult Edit(User user) to hash the password if ...
0
votes
1answer
18 views
Set the min date of Telerik Datepicker on onChange event of another Telerik datepicker in javascript
I am doing project in ASP.NET MVC3 with C#.
I am using telerik Datepicker.
On change event of One datepicker, I want to set minDate of another datepicker.
and wants to do this in javascript.
I ...
1
vote
1answer
52 views
How to pass values from View to a Controller Action parameter? MVC3
I apologize if asking some questions these days. But appreciate for all kind helps. Actually, I need to pass data from View to Controller using MVC3 Razor.
Here is the View Code:
...
0
votes
2answers
40 views
Asp Mvc Redirect Controller
I am beginner in asp.net mvc. I have in the view Home.cshtml
<a href="" style="color:blue; margin-top : 30px;">Créer un nouveau compte</a>
I'd like to associate this link to this action ...
6
votes
3answers
1k views
@Html.ActionLink in ASP.NET MVC 3
My action link in .cshtml is like this:
@Html.ActionLink("Reply", "Post_Reply", new { item.ID, item.Post_ID, item.Reply_ID })
and my method in controller is like this:
[Authorize]
public ...
-1
votes
0answers
20 views
MVC3 config RouteCollection a request to a error page [closed]
I have some zip and rar file in my iis server root,I do not want any body to visit it and I can not manage the iis config ,how can I config my RouteCollection a request to a error page in my code; ...
1
vote
1answer
33 views
Radio Button Group in ASP.NET MVC3
I am having a field of Boolean in Model named Child_With_Bed .
Now, I want radio button group in which yes = true and no = false. So when I select it Child_With_Bed's value is set.
I tried below ...
0
votes
2answers
37 views
MVC3 asp.net error: Value cannot be null. Parameter name: items on dropdownlist
I am getting a dump ONLY in the server and not in my local system when trying to post the data. There is a page which submits some value to the database. I have also modeled the dropdown in the page ...