[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More







Microsoft’s ASP.NET MVC is a web application framework that implements the model–view–controller (MVC) pattern. As an open-source software, it’s set apart from the ASP.NET Web Forms component, which is proprietary.

Share tech news, updates, or what's on your mind.

Sign up to Post


one of my developers suggest to use this esign api for our company we are heatlh insurance broker in FL.

we all know docsign and they are just so expensive to us
and we don't compare this esign form with docsign.

just want to hear all experts what you think about this product from security, performance, and development sides
Acronis True Image 2019 just released!
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

In web forms, I know how to create master page.  Is it possible to create a master page in ASP. Net core MVC? Please show an example and link.
I have very rare website that allow owner and renter to get motorhome similar to turo but now I am looking for insurance companies that partner with us so we can get insurance for each rental

I hope to know what I can do to get start it.
I'm new to MVC, so struggling to understand if this is possible

I have a bit of code which I call in the homeController.cs
public ActionResult PlotGraph()

Open in new window

I would like to be able to call this on click of a UI item and pass in a different groupId.....i.e.
public ActionResult PlotGraph(string GroupId)

Open in new window

Then on first load of the page it would need to just load the default group, so i was trying to call it using this from cshtml page:

Open in new window

I've added the comma and zero, however it fails when it hits this line
Am i doing this totally wrong, or should this be possible, if so how do i make it work?

I want to search in four other dropdown lists and list it in another place. Mvc.Net
I am very new on using json and I want to have very simple code in c# to request docsign signature with json format.

can you show me ? thanks

I have most of the set up like api key and etc already

it works if I use four models but it doesn't work if I use 5 or more

For example;

My Problem İs mvc asp.net viewbag.title erorr

please help me
Is there a way in ASP.NET MVC (c#) to create html markup and save to database and then of course to be able to edit it in a html editor in a view.

Here is the issue.

This control below will only take in text at the moment but i need to add in formatted text. Do i need to add in an editor or is there anything within visual studio/c# mvc that will enable me to add formatted text. If not, please recommend the best html editor for this purpose. Thanks in advance.

    <div class="form-group">
                @Html.LabelFor(model => model.FullDescription, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @*@Html.TextAreaFor(model => model.FullDescription, new { htmlAttributes = new { @class = "form-control" } })*@
                    @Html.TextAreaFor(model => model.FullDescription, 10,40, htmlAttributes: new {style="width: 100%; max-width: 100%;" })
                    @Html.ValidationMessageFor(model => model.FullDescription, "", new { @class = "text-danger" })
I need a help sample code to connect to ZenDesk API using basic authentication, User Email and Token written in C#. Please advise.
KuppingerCole Reviews AlgoSec in Executive Report
KuppingerCole Reviews AlgoSec in Executive Report

Leading analyst firm, KuppingerCole reviews AlgoSec's Security Policy Management Solution, and the security challenges faced by companies today in their Executive View report.

Currently I have built an application (using Visual Studio .Net MVC Web Application in C#) which opens up specific views in Sage 300, which I then use to pull specific table information. I am currently trying to get Quantity on Hand data (the number) from Sage 300's IC0290 ROTO ID View. The code I have will only bring back "0". It does bring back other information from the same table as long as the values for that information are strings. The value type for QTYONHAND is BCD*10.4 . I am trying to use Decimal in C# but it brings back a 0. I have the code listed below. If anyone has any ideas on how I can get the actual data to come through, I would greatly appreciate it.

private void OpenSessionDBandView()
        // Create, initialize and open a session.
        session = new Session();
        session.Init("", "XY", "XY1000", "62A");
        session.Open("ADMIN", "ADMIN", "SAMINC", DateTime.Today, 0);

        // Open a database link.
        mDBLinkOpen = session.OpenDBLink(DBLinkType.Company, DBLinkFlags.ReadWrite);

        // Open the I/C Items View - "IC0310"
        icItemView = mDBLinkOpen.OpenView("IC0310");

        // Open the I/C Items View (Quantities on Hand) - "IC0290"
        icLocationDetailsView = mDBLinkOpen.OpenView("IC0290");
    public string DoIt()
        string returnHTML;


        decimal itemQoH;
        // "itemNumber" is a value derived from a form created. User submits …
Hi All,
Am following  this link to create we signature. It is working for one display and one editor. How to have 2 display and 2 editors respectively.

please find the screen shot. i need to capture WLM signature and editor image.

Kind regards,
For any new Product development which technology is best - Angular / MVC Core / React ?
i just take over a mvc with entity framework project and the developer is gone.
Now I added a column in the database table, and how can i refresh the entity framework so I can continue to code with linq...?

I am not expert with any projects that using entity framework. hope you can help out.

i have mvc web form and create  localStorage.getItem("member-id") after the login/password is checked and valided.
how can i drop  localStorage.getItem("member-id") value to mvc controller?

public PartialViewResult RenderDashboardLeadList()
    string currentStage = Request.QueryString["Stage"];
    if (currentStage == null)
        currentStage = "Open";
    return PartialView(mh.EventLeadList(currentStage,"localstorage?"));

Open in new window

I need some helps to learn how to switch src from embed html. When alert("Success:" + result); I want to switch documentlink's src to http://www.google.com.
so i try to use document.getelementid("").src = 'http://www.google.com' and it does not seem working. and I got one help in the past using localstorage but
it does not work with the codes. So I hope to get some helps.

    string documentLink = Request.QueryString["link"].ToString();
    string hreflink = documentLink;     
    Uri uri = new Uri(hreflink);
    var filename = uri.Segments.Last();        
    string documentId = Request.QueryString["documentId"];
    string quoteId = Request.Url.Segments[3];
    string signingStage = "Signing";

       $(document).ready(function () {
               saveButton.addEventListener('click', function (event) {
               var dataPng = pad.toDataURL('image/png');
                   url: "/Home/CreateSignatureOnDocument",
                   datatype: "json",
                       'quoteId': '@quoteId',
                       'documentId': '@documentId',
                       'fullname': document.getElementById("fullname").value,
                       'phoneno': document.getElementById("phoneno").value,
                       'emailList': document.getElementById("email").value,

Open in new window

The c#/code below: how to find x,y position of 'text' for example 'signature'. and after it is found, I hope to drop the png image there.
I just need help how to find the x, y position and I already created the code dropping the png image.


  public static string AddSignature(string originalPdf, string outputPdf, string signature, int pdfPositionX, int pdfPositionY)
            string path = @"C:\Users\Documents\Workspaces\";
            string pathSignature = @"C:\Users\Documents\signature\";
            using (Stream inputPdfStream = new FileStream(path + originalPdf, FileMode.Open, FileAccess.Read, FileShare.Read))
            using (Stream inputImageStream = new FileStream(pathSignature + signature, FileMode.Open, FileAccess.Read, FileShare.Read))
            using (Stream outputPdfStream = new FileStream(path + outputPdf, FileMode.Create, FileAccess.Write, FileShare.None))
                var reader = new PdfReader(inputPdfStream);
                var stamper = new PdfStamper(reader, outputPdfStream);
                var pdfContentByte = stamper.GetOverContent(1);
                iTextSharp.text.Image image = iTextSharp.text.Image.GetInstance(inputImageStream);

                //begin: need logics to find keyword
                PdfReader pdfReader = new PdfReader(path + outputPdf);
                for (int page = 1; page <= pdfReader.NumberOfPages; page++)
                    ITextExtractionStrategy strategy 

Open in new window

I'm trying to add RedirectToCanonicalUrlAttribute filter in MVC 5 app.

For example: https://www.droidafrica.net/Compare/Infinix-Note-5-Pro-vs-Infinix-Hot-S3X

Should redirect conically to


Got the code below from another site. It is

GlobalFilters.Filters.Add(new RedirectToCanonicalUrlAttribute(

But I don't know how or the specific place to add it on my server. Please any help?
I have a database called cars and had fields make and model

And I also have a pdf with two fields make and model

And I want to use itextsharp to map the fields and fields value in a loop meaning that while reading table i just want to loop all of fields. Because the table has over 200 fields when we expand. I don’t want to code the field name one by one.

And the field name on database and pdf are the same

I use mvc c#
Become a Leader in Data Analytics
Become a Leader in Data Analytics

Gain the power to turn raw data into better business decisions and outcomes in your industry. Transform your career future by earning your MS in Data Analytics. WGU’s MSDA program curriculum features IT certifications from Oracle and SAS.  

I use google map and marker to display many locations on the map. However, many location like apartments 1,2,3 to 20 has the same locations and it is very hard on UI experience. Do u know anyway to resolve this map?

On each marker, I also have small detail box to show details info.

I use mvc 4 with razor engine

i have static class called SendGrid.SendEmail

how can I pass this class inside of SearchEvent? The .net code alerts that it does not allow static class inside of the controller. (alert: can't use like a method).
Can you help me to fix it?
            public JsonResult SearchEvent(string pickupDate, string dropoffDate, string eventId)
            Domain.Event e = new Domain.Event();
            List<Domain.Fleet> getEventNameFromFleetObject = EventSingleList(eventId);
            foreach(var i in getEventNameFromFleetObject)
                e.name = i.eventName;
            return Json(e, JsonRequestBehavior.AllowGet);

public static class SendGrid
        public static string SendEmail(string subject, string body, string fromEmail, string toEmail)
                MailMessage MessageInfo = new MailMessage(fromEmail, toEmail, subject, body);
                MessageInfo.Body = body;
                MessageInfo.IsBodyHtml = true;

                SmtpClient EmailClient = new SmtpClient("smtp.sendgrid.net");
                System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential("", "");
                //EmailClient.UseDefaultCredentials = false;
                EmailClient.Credentials = SMTPUserInfo;

Open in new window


do you know how to get text's location just like (x, y coordinate)? for example, i have pdf with 2 pages and I want to look for text called 'esign'
if the esign is found, i want to drop the image just next to esign on the right.
Hi everyone,

I have to do for static areas with Resource File.

For example Its changing menu name but I wanna change url name. How can I do.

<a href="@Url.Action(@dil.Resource.Home, "Index","Home")">@dil.Resource.Home</a>

When I click english change url for example www.sitename.com/en/aboutus 

when I click turkish change url www.sitename.com/tr/hakkimizda 

Route Config

  name: "Contact",
  url: "{language}/contactus",
defaults: new { language = lang, controller = "Contact", action = "Contact" }); 
          name: "Default",
          url: "{language}/{controller}/{action}/{id}",
          defaults: new { controller = "Home", action = "Index", language = lang, id = UrlParameter.Optional },
          namespaces: new string[] { ".Controllers" }

Open in new window

The codes below is extracted from mvc/razor view. but this is more like javascript questions.
Can you take a look the codes and tell me why sometime the total value is calculated wrong in

<div class="col-md-6">
                                <table width="100%" cellpadding="3" cellspacing="3"> 
                                    <tr style="font-weight:900;">
                                        <td>Fee Description</td>
                                        <td>Unit Price</td>
                                        <td>Total Cost</td>
                                    //public List<Domain.FleetFee> FleetFeeList
                                    foreach (Domain.FleetFee item in mh.FleetFeeList("9", "Active"))
                                           <td><input type="text" style="text-align:left;font-weight:900;"   readonly id="valueFeeDescription_@item.feeId" value="@item.feeDescription"   /></td>
                                           <td><input type="text" style="text-align:right;font-weight:900;"  readonly id="valueFeeCost_@item.feeId" value="@item.cost" /></td>   
                                           <td><input type="text" 

Open in new window

I have mvc app with one index.cshtml and one layout.cshtml.

On index.cshtml I have for loop to call the model and get information like address and etc. It works fine.
However, I want to get information like address and etc. into javascript on layout cshtml., and I don know what to do.
Basically, the end goal is to add fleet icons on the google map.

on the javascript codes, you just have to focus on this below:
    [locationData('listings-single-page.html', 'http://localhost:29792/images/listing-item-01.jpg', 'Tom Restaurant', '964 School Street, New York', '3.5', '12'), '40.94401669296697', '-74.16938781738281', '1', '<i class="im im-icon-Chef-Hat"></i>'],

I try to drop the list of fleet information into javascript.

and I do not know how to do that.


@model List<Domain.Fleet>     
@for (var i = 0; i < Model.Count; i++)
 @Html.DisplayFor(x => x[i].data) //try to drop the data from addresss to long/latitude to javascript like below
[locationData('listings-single-page.html', 'http://localhost:29792/images/listing-item-01.jpg', 'Tom Restaurant', '964 School Street, New York', '3.5', '12'), '40.94401669296697', '-74.16938781738281', '1', '<i class="im im-icon-Chef-Hat"></i>'],

<div id="map" data-map-zoom="9" data-map-scroll="true">
<!-- map goes here -->

Open in new window

<script type="text/javascript">
        // Default infoBox Rating Type

Open in new window







Microsoft’s ASP.NET MVC is a web application framework that implements the model–view–controller (MVC) pattern. As an open-source software, it’s set apart from the ASP.NET Web Forms component, which is proprietary.

Top Experts In