Hello, please someone help me how to do this exercise step by step.
Exercise – ASP.NET MVC Web Application
Create an ASP.NET MVC web application to display customer orders.
You must use the Model-View-Controller design pattern using Visual Studio 20115 and C# .NET.
For the UI, create two Views and the necessary Controllers that return the Views; one View for showing customer information and the other for showing the orders.
The orders View should be the default View that displays all the fields related to the customer order, see the order table below but remember to show the customer name rather than the CustomerId.
For the customer Views, create 4 Views to Create, Read, Update and Delete all fields for a customer.
The model must contain the following two entities, whose data is persisted to a SQL Server database or file. CustomerId is the filed that links to order table with the Id field of the customer table
SCREEN HOW TABLES MUST BE:
I want to develop an ASP.Net Application (Financial and Accounting System), and this application must connect to many devices that connected to the client PC such as Cash-Drawer, POS Printer, Checks Reader, Scanners, and any device that can be used for this system.
My Question is: is it possible to deal and connect with all of this devices using the asp.net classic web form application.
Or to do the best I must create the application as a windows Forms Application.
You have already posted this question in ASPNET forum.
You have applied regular expression validator to validate CARD Number which looks to be working. When you check did you input correct card number satisfying your regular expression? If not you will get the error even though you input 'Anything' not satisfying regular expression.
I tried something random number as ='9656385485477444' and did not get any issue
when we develop report with ssrs then we can bind ssrs with sql server store procedure or c# data set. suppose sql server store procedure return 10,00,000 data and configure ssrs to show 50 data at a time in page. so my question is ssrs will fetch 10,00,000 data and store in memory but display 50 data at a time ?
if this is true then report performance will be slower and huge memory will be required and block due to large data stored. so please tell me if anyone know how ssrs handle large data.
how developer should develop ssrs when large data will be there. thanks
I have a global.asax file, namespace being the project name, and I did check the spelling
in the Global.asax, I have a function called GetWebsiteName(), and in the view I call it.
I did some large project changes yesterday, and I broke things in the program, but have fixed all but this issue.
I'm just scratching my head on this one! I tried searching for anwsers but haven't found anything similar.
In most cases, I would love to migrate this code to the Controller part, because a View should only be working with a Model, or ViewModel that is gets passed with. This approach is wrong in the first place, the following might be good,
Then in the View, you can use the helper and write it in the HTML content like,
<p>The name of the website is @ViewBag.websiteName.</p>
This would help you out in many ways, as you would be migrating the long running tasks — as well as functions, on the controller and the View would only be generating the HTML for those values.
Although, as for your problem, I could try adding,
ViewBag.Title = "My Page";
<h4>Content</h4><p>Some random stuff</p>
This would work as well, but it is not my recommendation. You should always use the controller for this work, and leave the View to only generate the HTML and not request for anything else — you should also look into the ViewModel or Model-View-ViewModel pattern.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
I thought about that when I wrote it about a year ago.
But I only use it on layout pages for the footer, and on form pages for the website name.
I'll change it.
But I did figure the problem.
The namespace was not listed in the Web.Config file in the views folder
I am looking for a PDF control that displays the PDF and adds a "submit" button, that send that entire pdf back the server. I want to save the entire pdf as a BLOB on the database. I see a bunch of viewers, but looking for the other half.
This is for a website that I'm building for my neighbor, and for future builds.
I don't want to use a database in this project, or XML unless I have to.
I thought I might be able to get away with using a binary file with multiple records to store contact us info.
So I have 1 record written so far. I'm trying to read the whole file and just add a record to it.
When I loop through the records, I get an error;
Unable to cast object of type 'System.Collections.Generic.List`1[genericMVC.Models.serialized_contactUs]' to type 'genericMVC.Models.serialized_contactUs'.
I thought I had casted it correctly, but this is the first test of the code, having to fix the issue of opening the file first.
The model is a typical model like in MVC, only I added serialized to the top of the class.
I haven't tried anything yet because I'm not sure if I'm on the right track here; or if my thought is even close to being possible.
string folderPath = HostingEnvironment.MapPath("~/App_Data/Database");
if (Directory.Exists(folderPath) == false)
string binaryPath = folderPath += "\\contactUs_messages.bin";
using (var fs = new FileStream(binaryPath, FileMode.Open))
if (fs != null)
// Read all the records and enter them into a generic collection
List<serialized_contactUs> data = new List<serialized_contactUs>();
var bf = new BinaryFormatter();
while (fs.Position < fs.Length)
serialized_contactUs contact = (serialized_contactUs)bf.Deserialize(fs);
Name = contact.Name,
CompanyName = contact.CompanyName,
EmailAddress = contact.EmailAddress,
Phone_Number = contact.Phone_Number,
Phone_Ext = contact.Phone_Ext,
Phone_Mobile = contact.Phone_Mobile,
MessageContent = contact.MessageContent,
Time_Stamp = contact.Time_Stamp,
Time_Zone = contact.Time_Zone,
RememberMe = contact.RememberMe,
MailingList = contact.MailingList
I have this model and view, in which instead of the model just being a list of items, it's order information and a list of orders.
So I used StaticPagedList to make a PagedList of the Orders which seems to work fine, and the paginator works as well.
It's the list of Orders in the view, which list all 13 orders instead of the first 5 orders.
I look at the model in the controller and I see the PagedListItems, and a object called "Results View" that has all 13 items.
This is my first time using StaticPagedList, not sure if I'm missing something here or not,
But my question is how do I get orders 1 - 5 and not the whole list.
My Controller Code in which I make the list
// Manually generate the X.PagedList.Mvc because the paged model is a child of the model.
model.Orders_PagedList = new StaticPagedList<model_account_order>(model.Orders, pI, sI, model.Orders_Count);
I've gotta stop figuring this stuff out after I post. I really did work it for an hour and did research as well.
I tried using the intellisense to get "ToPagedList" but nothing showed up until after I hard typed FirstItemOnPage LastItemOnPage and it bombed. Then it showed up in intellisense and I used it.
foreach (var order in Model.Orders_PagedList.ToPagedList(Model.Orders_PagedList.PageNumber, Model.Orders_PagedList.PageSize))
i am using a CR10 i have already draw a line chart with displaying a data labels with 2 decimals points.
my problem is that i have to change a color of last value(data labels) that a point of line chart.
please help me..
I have been trying to build a webhook receiver and I can't find a single page that takes you through all the steps of creating and configuring a receiver webhook. First, I want to use my own website to be the receiving site (URI) - not Azure. I found what looked like something I could use as a starting point in a tutorial that shows how to set up a webhook using MS ASP.Net Receiver found in NuGet. I decided to use Bitbucket assuming that the receiving logic would be the same no matter what application to get it from. In my case I am receiving from JIRA and all I want is just the body JSON package returned - I will parse it myself. I have used Requestb.In to look at the message and I know it is being sent properly.
So I created the Bitbucket solution and published it to my website. I believe I set up all of the code and URL/URI data within that so I could try to receive it. In the tutorial, they put a breakpoint into the solution and magically it breaks when the trigger is set.
I thought I had done the same, but mine never breaks. I have to assume that my receiver isn't listening. I have no idea what I need to configure within IIS or the server to make it listen. I also don't know how to make the debugger point to my server instead of Azure.
If I am going about this all wrong please let me know. I am sure I am missing the important part of how to get the server to receive the hook message.
I know I am probably leaving out detail, but since I am at a loss as to what to do you can assume I need to start from scratch and I am in fact a complete novice when it comes to webhooks (and a lot of web stuff).
Last Visit: 31-Dec-99 19:00 Last Update: 24-Feb-24 20:05