Click here to Skip to main content
15,881,812 members
Everything / Model

Model

model

Great Reads

by Ehsan.MA
Consider rigid body
by Mostafa Asaduzzaman
How to create a quick pie graph using MVC Model and CanvasJS
by Abhishek Kumar Goswami
This helps to make a visible date field in Chrome native datepicker while it will bind from the Model in ASP.NET MVC 4.
by coded007
A word about Unified Dimensional Model we use in analysis services.

Latest Articles

by Ujwal Watgule
Credit card fraud detection is an important application of machine learning techniques.
by Pete O'Hanlon
How to use arrays to manage multiple items
by Pete O'Hanlon
What is an array and how to use it to manage multiple items
by Uladzislau Baryshchyk
This series of articles consists of three articles, in which I will demonstrate step by step how to create a .NET core MVC project

All Articles

Sort by Score

Model 

31 Aug 2012 by Prasad_Kulkarni
Have a look:Solution to Error 175 The specified store provider cannot be found in the configuration or is not valid[^]
29 Nov 2018 by Ehsan.MA
Consider rigid body
28 May 2015 by Mostafa Asaduzzaman
How to create a quick pie graph using MVC Model and CanvasJS
19 Jul 2023 by PIEBALDconsult
If you have access to the code for the Address class, you can add the ability for them to compare themselves. The following is a very naïve example. Comparing addresses is a very complex topic with many pitfalls. public partial class Address...
1 May 2013 by Abhishek Kumar Goswami
This helps to make a visible date field in Chrome native datepicker while it will bind from the Model in ASP.NET MVC 4.
23 Sep 2013 by coded007
A word about Unified Dimensional Model we use in analysis services.
25 Feb 2023 by Pete O'Hanlon
How to use arrays to manage multiple items
25 Oct 2011 by Simon Bang Terkildsen
Google! I'll give you the first 2http://www.google.dk/search?gcx=w&sourceid=chrome&ie=UTF-8&q=grayscale+algorithm[^]http://www.google.dk/search?aq=f&gcx=w&sourceid=chrome&ie=UTF-8&q=Thresholding+algorithm[^]
29 Aug 2012 by Zoltán Zörgő
Yes you could take, the path you drafted. What is the goal of the project? I suppose, you want to deliver means to the customer to build it's own trailer, by choosing from predefined parameters. Right? But what do you want from us? Suggestions how to translate this business model to data model?...
30 Oct 2012 by Frederico Barbosa
The way the MVC pattern works is: you have a "model" (i.e., data) and you can show it with different "views" (e.g., table, graph...), but a particular view handles only a specific model.In your case, you may do one of the following:1) Make "Project" and "Meeting" look the same to the...
3 Oct 2013 by FoxRoot
Hello everyone,I am developing a mvc4 application. I am in trouble using models in view. Let me explain the stracture.I have a model class that operates some methods and returns something. The name is KisiBLL.csI have a Controller class. That checks the actions. KisiController.csAnd...
3 Oct 2013 by Jameel VM
You should create a viewModel. ViewModel is nothing but a csharp class which contain whatever the data's displayes in one view. For example first of all create a class which contain all the properties in the kisi model class needed in the view . public class SampleViewModel{public...
30 Apr 2014 by Dineshbabu.C
I may be asking a question that a lot of programmers might have asked but still here it goes..I have the a model User with following properties public string firstName { get; set; } public string lastName { get; set; } public string userName { get; set; } public int...
24 Jul 2014 by Yogesh Kumar Tyagi
view this article it may help youhttp://www.c-sharpcorner.com/UploadFile/3d39b4/casecading-dropdown-list-with-mvc-linq-to-sql-and-ajax/[^]
23 Dec 2014 by WaterFountain
The code for my android application is below and so far I'm happy with it. Before anyone comments, I do acknowledge it requires the addition of further validation. The android application is a login system which makes use of SQLite to store login information such as usernames and passwords for...
12 Jan 2016 by Member 10273293
i have some images and i wanted when user click any image a model popup open and display that image in that popup. but i don't know how to create model popup ?please tell me how to create model popup and use it with imagebutton ?
12 May 2016 by Dave Kreskowiak
There's really nothing to help with. It comes down to you reading up on SQL Server security and understanding how it works and how to set it up. There is no way you're going to have someone just give you a blurb in a forum post and it'll magically work.The error is pretty clear. The SQL...
26 Jan 2017 by F-ES Sitecore
That's how dropdowns work, there are two elements, the name and the value. The name is what appears in the list and the value is what is submitted with the form. Normally you'd convert the ID back to the relevant text when needed. However if you really do only want the text and you don't care...
3 Dec 2018 by Richard MacCutchan
How is it you could not find Concise Promela Reference[^]? Both (and all other statements) are clearly explained.
22 Aug 2019 by Member 14164795
How do I clear the bind on these properties so that changes I'm trying to make in an onpost method pull through? I have 6 bound properties in a ShipmentModel: [BindProperty(SupportsGet = true)] public ShipmentModel Shipment { get; set; } public class ShipmentModel { public string...
17 Feb 2022 by Pete O'Hanlon
What is an array and how to use it to manage multiple items
29 Nov 2021 by Uladzislau Baryshchyk
This series of articles consists of three articles, in which I will demonstrate step by step how to create a .NET core MVC project
27 Dec 2011 by saivijayabhaskar
I have 10 clients, all are having same schema. Now i want to implement Ad-Hoc reporting based on these schema's. My problem here is i have to devolop 10 models for all 10 clients. Instead of creating 10 models is there any way to change the database name of connection string...
1 Jul 2012 by mails4balaji
Hi,I am trying to assign a value to a model of specific index inside a list of models. However it assigns to all elements irrespective of index. tried even removeat and insert too, nothing seem to work. code snippet as below.BasketDetailsModel basketDetailsModel =...
29 Aug 2012 by deurebokkn
I'm writing a program and I could use some inspiration with the classes.The pattern is already in place (using mvp because they want to expand to both website and phone in about a year). With a data and a business layer.Background informationBut it's about making trailers for trucks.So...
7 Aug 2013 by ♥…ЯҠ…♥
I'm new to entity framework, Trying to compile one silverlight application with entity framework.Where I cleared almost 90% of errors through googling. But i could not resolve the following error,Error:Error 175: The specified store provider cannot be found in the configuration, or...
10 Oct 2012 by iceball12
I have code first models with the latest 6.6.x beta driver working.Dbmigrations seem to be working fine as wel.However there seems to be a problem with cascade settings.My models have cascade delete all over them, but the database that gets generated does not reflect these...
29 Oct 2012 by batuhan karaduman
Hello,Can you help me, how to use multiple model in one mvc view?for example i have two classes called Projects, meetings. i want to show them in one view "Here is my projects...." and "here is my meetings" but i have an error like this;"The model item passed into the dictionary is...
7 Nov 2012 by sugumaran srinuvasan
Cant upload the file more than 3 MB to SharePoint Library using Client Object model.Following is the two ways i tried.Way 1:using (FileStream fs = new FileStream(strCurrentTempPath, FileMode.Open)){ SP.File.SaveBinaryDirect(ClientContextName,ServerRelativeUrl,...
8 Nov 2012 by -Dr_X-
In you web.config, increase the maxRequestLength.
17 Dec 2012 by Neosofty
I would like to have one model (entity framework 5), but connect to two different providers, one that supports SQL and one that supports Oracle. The idea is that I have one set of entities but with a different provider or connection string. I don't want to have two entities, one for each...
27 May 2013 by kranthi1988
HI All,Im working on MVC4,We are validating the fileds in MODEL class using data annotation 'ValidationAtrtribute'.Everything is working fine as functionally but while throwing messge to the user, popup meessage window having a Header like 'Message From Webpage' and first word of the...
30 May 2013 by Vitalij Dešuk
I have made has_many through association on User, Prog and Enrollment. To be able to add Prog to User I did something like: enrollments#createdef create @prog = Prog.find(params[:id}) @enrollment = Enrollment.create(user_id: current_user.id, prog_id: @prog.id) redirect_to...
31 May 2013 by Vitalij Dešuk
I have User, Prog, Enrollment model associated has_man through. Idea is that User adds Prog to profile and Prog can accept User's request or decline.
17 Sep 2013 by Member 10279962
hi,how can i load a vrml object model wrl with java ? can you give me an example plzz help thanks
17 Sep 2013 by Richard MacCutchan
Try https://www.google.com/search?q=vrml+object+model+java[^].
20 Sep 2013 by alimohammad2011
Greeting for the day !!Dear friends I am stuck on a solution i need to provide to my clients. Describing the requirement in detail so please don't mind the length of this post.I am supposed to develop an offline model for my asp.net (4.5) web application along with SQL server as db on...
22 Sep 2013 by mohi2
When I am trying to add a new object using entity context , error occured.Please tell me any solutionusing ( var context = new rporimc2Entities()) { tbl_area_r obj = new tbl_area_r(); obj.areaFlag = "T"; obj.createdBy = 1; obj.fkPropertyId = 1; obj.areaName = "test...
22 Sep 2013 by OriginalGriff
Put a breakpoint on the first line, and follow the code through with single-step. Look at the variables as you go, comparing what you actually have before the code executes with what you expect.At some point, one of the variables will be null - it is then your problem to work out why.But...
3 Oct 2013 by mohi2
I having three tables. first one is tbl_area and another is tbl_items.the tbl_item have item record of area's.The third table tbl_map maps both the table records, tbl_item and tbl_area.There are also the foriegn key exist on the tbl_map.I am using the framework 3.5when I'm write the...
23 Oct 2013 by Nkumary
I have a MVC 4 application with razor engine. I want to add a search function to my view which show a list of teachers. The view is strongly typed view.My Models is : Teacher.csnamespace TestGrid.Models{ public class Teachers { private String _TeacherName; ...
10 Nov 2013 by Christian Graus
Throw all this out and use Entity Framework instead. That makes it even easier to write code to search your database.
30 Dec 2013 by Aaditya parcha
Hi,i have a student class like belowpublic class Student { public int stdId { set; get; } public string stdName { get; set; } public string dept { get; set; } }and my controller code is public ActionResult Student() { ...
2 Jan 2014 by rizwan muhammed khan gouri
hello i hope this works for you.. used instead thisList lstStd = new List() { new Student() { stdId = 103, stdName = "bharath", dept = "CSE" }, new Student() { stdId = 104, stdName = "Hari", dept = "IT" } };useList lstStd = new...
23 Jan 2014 by johnson10016
Hai everyone. I am new to this forum. Can anyone tell me the usage of web form model
23 Jan 2014 by Richard MacCutchan
Try https://www.google.com/search?q=web+form+model[^].
18 Feb 2014 by swetajmistry
When all tables for database were selected for database first approach for creating entity framework sample modules, certain tables were added other were not. also for one which are not visible in designer, entities were not created. Updating through DB also didnt worked. Any suggestion as to...
7 Mar 2014 by gaarapa
where to find samples using complex models and views in MVC 5?? I need samples using model with jquery and samples of CRUD using three or four models in same view.
7 Mar 2014 by Krunal Rohit
Why don't we first look at the Google[^] ? Example is given here[^]. It's not what you want, but still it is less that what you want.-KR
7 Mar 2014 by Peter Leow
Check this out: Getting Started with ASP.NET MVC 5[^]
30 Mar 2014 by ravikhoda
Hi ,all i am using HTML textbox for to show date value in the text box using model. something like this @Html.TextBoxFor(x => x.ReleaseDate)my date format is mm/dd/yyyynow when i insert a date less then or equal to 12 it works fine but as i select date greater than 12 it...
3 May 2014 by Nandlalaji Singh
I want to transfer observable array along with model to controller. I did my surfing and found custom model binding is good for my situation.But again its given i can use controllerContext.HttpContext.Form.Get("Day"); where as Day is Day
26 Jun 2014 by Bhanu Pratap Verma
Dear All,I want to display a popup message when user place the mouse on a date in the calender control.Popup is showing but is blinking very fast.Massage having hyperlink which redirect to other page.Please help me ASAP.Aspx Code:
24 Jul 2014 by brknlpr
hello everybody I am trying to get data when one of my dropdown selected index change here are my codes I couldn't get where am ı missing or doing something wrong I am very glad if you help me thank you .this is my script code$("#ddOrder").change(function (e) { alert =...
29 Aug 2014 by Vondersmith
The code below works. The controller receives the value "Test Value" when the Upload widget is executed. However, I have a key value from the model that is displayed within this view that I need to send instead of the hardcoded text. Note. This is a custom template within a grid popup...
14 Sep 2014 by Mihir_Naik
Description: When i post form with two count of puchaseordertax, i will found that but if i post with only one record (Count) it did'nt![Note:Uid is working s index and Correctly! ]My Model:class PurchaseOrder{int PurchaseOrderID {get;set;}datetime PurchaseOrderDate {get;set;}public...
8 Dec 2014 by Member 1739117
Hi,I want to list all items in a page developed in asp.net mvc with pagedlist. it is done. I want to update all or selected items. can be listed and can select only selected items but can not post the model to controller. after Update button I can post model but not with values, it is...
17 Dec 2014 by Israel Thieme
I did a multilevel bind using index:
17 Dec 2014 by Maciej Los
I'd suggest to read this: Hierarchical Data Binding in ASP.NET[^]
22 Dec 2014 by Israel Thieme
I'm having trouble to bind a 2 level nested model. Here is what I've come up so far.Model:RequestSignature Model:public class RequestSignature{ public int Id { get; set; } public string name { get; set;} public virtual ICollection Pages { get; set; } ...
26 Jan 2015 by frostcox
Hey guys, I have a strange problem when I deploy my website to my production environment. During development when I post my form back to the controller the ModelState is valid but after deploying to the production enviornment in IIS the ModelState is always invalid after entering in the exact...
26 Jan 2015 by Abhinav S
This could be because you are connecting to a different database in Production and this could be returning wrong / unexpected values while running the code.
26 Jan 2015 by E.F. Nijboer
Sounds like the old "Works on my machine" problem. Check the database of both production and your development (test/acceptance?) machines. Look at validations that could easily break due to cultural differences like dates for example. Check machine language and culture settings and make sure...
26 Jan 2015 by frostcox
Hey Guys, I figured out a way to see what properties in the model state we actually invalid. Hope this helps somebody else.... ICollection _collection = ModelState.Values; foreach (ModelState _modelState in _collection) { ...
1 Feb 2015 by Member 11162686
I want to store the data into the sql server inplace of the edmx model's default local database please provide the proper solution.
27 Feb 2015 by Mayank Engineer
Hi, I am facing problem for returning message from controller not showing on same page is redirected to other pageMy Code for view :@using (Ajax.BeginForm("Components", "Controller", new AjaxOptions { HttpMethod = "POST", ...
27 Mar 2015 by Richard MacCutchan
You already posted this question at The format of the URI could not be determined.[^]. Please do not repost, edit your originsal question.
29 Mar 2015 by Navneet k soni
Here i have a Code for a html hyper link page to redirect on a specific new page Controller Page Code public ActionResult our-services() { ViewBag.Message = "Your contact page."; ...
9 Apr 2015 by Prasad Avunoori
Hi All,How can i loop through the properties when the Model passed to view is dynamic type in asp.net MVC?Thanks, Prasad
12 Apr 2015 by Am Gayathri
How do i use two model in one view in MVC4? I want to use two different models in my form.One is for registration another for login. I want to use both models in my main view. I added one model that contains two other model for registration and login. but am unable to fetch the values in...
12 Apr 2015 by Abhinav S
This article discusses many approaches to do this - Multiple Models in a View in ASP.NET MVC 4 / MVC 5[^].Multiple Models in Single View in MVC[^] will also help you.
14 Apr 2015 by Am Gayathri
I have one view and that view contains create user and login forms. For both i have different models. When user clicks on Register button i will pass register model values and for login click i pass login model values.I have added some validation in model also (You can see it my code...
14 Apr 2015 by Yuriy Loginov
1. You could split this into two separate views each one using its respective model. So one view uses RegistrationModel only and the other view uses LoginModel model only2. On the login model you can set dummy values for fields of RegistrationModel@Html.HiddenFor(model =>...
14 May 2015 by Member 11690093
Hello,I want to start working on my 3D rendering project soon. The objectives of the project is implement a interface where user will be able to create a model of room. After that application will add a few furniture element. Is there any kind of engine that will enable me adding custom...
14 May 2015 by Afzaal Ahmad Zeeshan
All of the engines allow you to add your own custom textures and models. That is their job to allow you to create your own models, add different texturing and shading to them. I have tried 2 3D modeling tools (Maya and Unity 3D). I have loved Maya because it lets me create models using...
22 May 2015 by Duncan Edwards Jones
I am building a DSL using the Visual Studio modelling SDK and one of my model classes needs to have a domain property that I want to just be one of a selection of items from a drop-down list.(I can't override a Microsoft.VisualStudio.Modeling.ElementNameProvider class, as this property is...
27 May 2015 by Duncan Edwards Jones
It turns out that if you right-click the top level item in the DSL Explorer there is a menu "Add New Domain Enumeration" that fires a builder to help you build a new enumerated type that is known to the model and can therefore be used for domain properties.
1 Jun 2015 by Afzaal Ahmad Zeeshan
If you created the file yourself, you forgot to close the stream. If Visual Studio is using it, restart your system there are a lot of underground processes that might be using the files, and even in Task Manager you would have no idea which of the process is using it. (I have no idea of doing...
25 Jul 2015 by Gabriel Leon Leyva
Is there a way to pasa an id from url.action to an iframe? thanks in advance @foreach (var Item in Model.Items) { ...
27 Jul 2015 by Member 11866351
Hi ,I have to populate **distinct** company name in Dropdownlistfor from @model IEnumerableI tried the following way. Nothing is working. Your help is appreciated.1. @Html.DropDownListFor(Model.Select(i => i.CompanyName).Distinct().ToList(), new List(), new { @class...
27 Jul 2015 by Richard Deeming
Try something like this:@Html.DropDownListFor(model => model.CompanyName, new SelectList(Model.Select(i => i.CompanyName).Distinct()), new { @class = "input-large form-control" })
5 Aug 2015 by PriteshK
//The purpose of this code is to take the attachment from an infopath form and add it to a Sharepoint 2013 library.//I have the code below but am receiving the error "namespace Sharepoint does not exist. Even though I have added it to the references.I believe it is because I am using...
5 Aug 2015 by Richard Deeming
Your project has the target framework set to .NET 2.0; the assembly you're trying to reference requires that you change it to at least .NET 3.0.How to: Target a Version of the .NET Framework[^]
12 Aug 2015 by SujayC
Not sure if this is what you want to achieve Solution[^]
13 Sep 2015 by F-ES Sitecore
You can use the FormCollection to process the post dynamicallyGetting Data From View to Controller in MVC[^]
1 Oct 2015 by musti_276
Hi,The question I asked in the google forumhttps://groups.google.com/d/msg/angular/x-9erGOfVak/60FSrTxvAAAJ
8 Oct 2015 by Vibhav Ramcharan
Hi,I am having an issue, when a method(AdminList) is called from AdminController the correct code path is followed(*2) but thereafter it loads the _Layout(*1) which has a Partial View(*3) with a different Model(LoginModel). I get the following error -> "The model item passed into the...
8 Oct 2015 by Krunal Rohit
Error is pretty clear, View requires the AdminModel & You're passing the LoginModel.What you can do is, combine those two models in one and pass that one model only to the view.For example,public class UserViewModel{ public AdminModel adminModel; public LoginMode...
12 Nov 2015 by Raj.rcr
Dear All,I am trying to bind the model data into html table in my mvc application and able to get the data in UI in fraction of seconds. But when the records are more than 25k, it takes 15-20 seconds to bind.Below is my code :cshtml : ...
27 Oct 2015 by F-ES Sitecore
Creating large tables is always going to be slow. If a user spent 3 seconds on each of your rows it would take 20 hours to process the whole table, so you are obviously generating a lot of meaningless data the user ignores. There is no fast way to do what you want to do, instead you should...
30 Oct 2015 by Krunal Rohit
What I told you in comment, it is right here:Bootstrap Modal Dialog - Loading Content from MVC Partial View[^]ASP.NET MVC 5 List Editor with Bootstrap Modals[^]-KR
30 Oct 2015 by LeeMinhSGU
I'm have a database with 2 tables + Personal : ID (PK), Name, Code (FK), Birthdate+ Social : Code (PK), AddressI have added a ADO.NET Entity Data Model, in Model.Context.tt - SqlEntities (My Entities) there only 2 dbset is Personals and Socials so I only can choose a tablestring sql =...
30 Oct 2015 by Krunal Rohit
Use LINQ instead:using(var entity = new SqlEntities){ var personals = entity.Personals.ToList();}----------------------------------[Update]Do something like:string sql = "SELECT e.ID, e.Name FROM SqlEntities.Personals AS e"foreach (DbDataRecord rec innew...
17 Nov 2015 by metharam
Hi, I am trying to pass list of object attributes from a cshtml to Httpost that saves the info to the Database sql 2008.See the code below.I keep getting error :Input string was not in a correct format.Description: An unhandled exception occurred during the execution of the current web...
12 Nov 2015 by Wessel Beulink
paramSurveyItemCount1.Value = Convert.ToInt32("0");? lol....Just use a int with value 0 here instead of converting a null.... I also think this is your problem.Doesn't make any sence to convert a string 0 to a int 0 when you can use a int 0 direct.Just wondering why are you...
19 Nov 2015 by JagadheeshAP
Hi Everyone, I am very new to MVC-4..Previously I worked as a software developer in ASP.Net...Can anyone tell me how to learn MVC-4 Professionally...And also I need to know why we are using model,datamodel,repository.... Thanks in advance
23 Nov 2015 by Gluups
Hello,I do not know what the title has to do with it, but about your question, if you have Avast anti-virus, never spend time searching about "because it is used by another process" before trying with Avast dis-activated.
1 Dec 2015 by metharam
Solution for the above problem is:[HttpPost] public ActionResult EditSurveyBySurveyIDandCDS(IList inputitems) { try { if (ModelState.IsValid) { for (int i = 0; i