Data dodania Pytanie
2017-11-14 12:11 ASP.Net MVC Usage confusion »
I'm in a situation where I would like to take a value from a page using JQuery, update the model with that value, call a method to update a different ...
(1) odpowiedzi
2017-11-13 21:11 Modal Bootstrap on ASP.NET MVC »
I trying to do a responsive async page with Modal bootstrap, it´s things all right, although when a save object on modal form, is did a update, but t...
(0) odpowiedzi
2017-11-13 18:11 How do I add default (Default to browser country) country code before the mobile number in MVC ASP.NET? »
I have got a Textbox accepting mobile number. How do I add default (Default to browser country) country code before the mobile number? I am using MVC...
(1) odpowiedzi
2017-11-13 13:11 view a PDF without downloading it »
Now my controller returns the file in this way: [HttpGet] public IActionResult document(int id) { var byteArray = db.instances.Where(c => c....
(1) odpowiedzi
2017-11-12 23:11 How to add claims to the HttpContext User on sign in »
This post may be long, but will have all the pertinent detail required for an answer. I have been searching, and found that many others have as well...
(1) odpowiedzi
2017-11-12 20:11 MVC, post partial model »
I have object A which has a List<ObjectB> ObjectB has several properties. Id, Mandatory, Name etc. So I return a viewmodel (ObjectA) and have t...
(1) odpowiedzi
2017-11-12 17:11 Tinymce is not returning HTML but just text »
I'm struggeling with this problem. I'm very new to javascript i had tinymce v3 for my website working, but i wanted to update it also looked way to co...
(1) odpowiedzi
2017-11-11 08:11 Retrieve varchar as url link from SQL Server to Razor »
I'm trying to retrieve a varchar from SQL Server to create an Url.Action in Razor asp.net. The SQL cell looks like this: "Index","Contact" The cod...
(0) odpowiedzi
2017-11-11 03:11 MVC .Net Core Entity Framework how to pass EditorForModel form data thru Ajax »
I'm trying to use Ajax to pass my form data for creating a database object to the create action. I am doing this because I want to update a partial w...
(1) odpowiedzi
2017-11-10 23:11 TextBoxFor: INumber type but with default value = "" »
I'm using Asp.net Core 2.0 and I have the following code: @Html.TextBoxFor(model => model.personalData.sonsNumber, null, new { type = "number", va...
(1) odpowiedzi
2017-11-10 22:11 ASP.NET MVC Select Option Value of SelectList »
I am rendering a dropdown list. ViewBag.Categories = new SelectList(db.HelpCategories, "ID", "Name"); In my view I call it like this: Categories:...
(1) odpowiedzi
2017-11-10 17:11 Razor pages action tag helper does not generate query parameter »
I am following this msdn example Add Column Sort Links to the Students Index Page And exactly like the example am trying to add links to my current p...
(0) odpowiedzi
2017-11-09 22:11 Uncaught TypeError: $(...).autocomplete is not a function in ASP.MVC application »
I have simple ASP.NET MVC Index page where I want to include autocomplete search textbox. I have included reference also. But still its showing the sa...
(1) odpowiedzi
2017-11-09 20:11 Mvc section not rendered in head but in body »
I encountered a strange behavior for @RenderSection in the head section of _Layout. @section AddToHead{ <meta name="test" /> <open-...
(1) odpowiedzi
2017-11-09 14:11 MVC Razor EditorFor Display Field help when hover over field aka tooltip »
For a data entry field I want to display a hint for the user when they hover over the field. The field name is INACT and indicates if the record ha...
(2) odpowiedzi
2017-11-08 21:11 Get rid of Visual Studio warning which in reality would never happen »
I have a <span> which the value is depended upon a condition: @{ if(Session["Status1"]!=null){ <span id="currentStatus">...
(1) odpowiedzi
2017-11-08 13:11 quotation marks unmatched when "->" is on the second line »
I a writing data-content for bootstrap popover and I want to preserve line breaks in formatting. so I used .popover { white-space: pre-wrap; ...
(1) odpowiedzi
2017-11-08 11:11 Passing a ViewModel to a Partial View call in the Layout.cshtml »
BACKGROUND I am trying to make use of Dashboard template on an MVC application I'm working on. I am not sure how I can pass a ViewModel to the top...
(1) odpowiedzi
2017-11-07 21:11 Why my MVC view passes null but not the value it has? »
View shows proper value (OrderId = 3): // GET: public ActionResult ConfirmOrder() { //simplified code here var model = new ConfirmOrderVie...
(1) odpowiedzi
2017-11-07 19:11 Location the anchor tag for Home, About and contact buttons »
I am new to ASP.net MVC web development. I created the default MVC application! In the top of the Home page You find Home,About and contact buttons. ...
(3) odpowiedzi
2017-11-07 09:11 Umbraco 7 foreach loops through same image »
Having a bit of difficulty displaying images correctly in a foreach loop in Umbraco, am noob in C# and Umbraco. It loops through the articles just fi...
(1) odpowiedzi
2017-11-06 20:11 How can I compare the session value to current user id »
How can I compare the session value with the current user id. To display only the record of that user who is login. Here I join three tables to make ...
(2) odpowiedzi
2017-11-06 18:11 Visual Studio Razor background highlighting not working »
I have a weird problem and I just cant seem to make this work. Razor background highlighting is not working for me: But weirdly it does works fine...
(0) odpowiedzi
2017-11-06 02:11 how to pass a knockout model to jsonresult parameter »
I was trying to pass a whole object to the jsonresult method. but there are errors that occur. It might be the way I bound it but I'm not sure. I'm ne...
(1) odpowiedzi
2017-11-05 22:11 Unable to pass parameters from view to controller in MVC5 »
I am trying to use an ActionLink to pass an instance of a ViewModel from my view to a controller. However, the ViewModel is always null when it reache...
(0) odpowiedzi
2017-11-05 20:11 uploading image asp.net Core »
i am new to ASP.net COre and i would like to upload a file ( an image) and store it in a secific Folder. ihave been following this tuto https://docs.m...
(2) odpowiedzi
2017-11-05 19:11 Is it possible to pass ModelExpression to a TagHelper? »
We can get a ModelExpression using this property in a TagHelper: [HtmlAttributeName("asp-for")] public ModelExpression For { get; set; } I somehow ...
(0) odpowiedzi
2017-11-04 16:11 New CSS Classes made are not been applied »
I'm having a strange issue with my CSS new classes I've made haven't been applying the style to the elements The elements I'm trying to apply a style ...
(1) odpowiedzi
2017-11-04 10:11 How to remove duplicate entries from model list in razor view »
I have Registration list which has duplicate entries in it for student then how can i remove these duplicate entries in razor view. I know that i can ...
(1) odpowiedzi
2017-11-04 03:11 How to run a list of a class in cshtml »
I'm working on asp.net core 2.0, in an mvc project. I have a class called Compra with a list of Combos. My question is, how can I list all combos and ...
(3) odpowiedzi
2017-11-03 23:11 C# - Use WebImage.GetImageFromRequest() with multiple uploads »
I am trying to upload multiple images from a form. And then grab the images using WebImage.GetImageFromRequest(). This works fine with a single upload...
(1) odpowiedzi
2017-11-03 23:11 RedirectToAction after ajax form submit in Asp.net Core »
I have a view named Index and a PartialView named '_Addbook' that shown as a bootstrap modal. In the partialView insert data into database using ajax ...
(1) odpowiedzi
2017-11-03 21:11 MVC - show or hide (div) field dependent on drop down list »
we have a drop down list that if you choose "Unsatisfactory" then a Retention field should show up. We are using MVC 5 It is not working here is what ...
(2) odpowiedzi
2017-11-02 16:11 ASP.NET MVC Razor is printing local inline if statement result when it should only set local Razor variable »
I have some Razor code which uses a custom attribute to basically see if I should display a link. I'm using two local Razor variables (Edit and Delet...
(1) odpowiedzi
2017-11-02 13:11 My array is not summing the elements of the array »
I have an array being populated with doubles(DataType) that are the result of calculations using data from SQL. The array has the numbers I need and i...
(2) odpowiedzi