My goal is to create a shopping cart which, when a link is clicked, it should create a new product class containing all the product details. I'm not sure if I'm on the right track or not and after spending a week working on it I think it's time to ask for help

public class Product
{
    private int itemQuantity { get; set; }
    public string itemID { get; set; }
    public string itemName { get; set; }
    public string itemCategory { get; set; }
    public double itemPrice { get; set; }
    public string itemDescription { get; set; }
}

The add to cart link (which is dynamically created using an xslt) has a call to this function on the onclick(). I'm trying to to get the new product class to have the name of the product code which is being passed through as the argument (not sure I'm doing that part right either)

Private Sub addToCart(newProduct As Object)
    newProduct = New Product()

    newProduct.itemCategory = Request.QueryString("Category")
    newProduct.itemID = Request.QueryString("ProductCode")
    newProduct.itemName = Request.QueryString("ProductName")
    newProduct.itemPrice = Val(Request.QueryString("Price"))
    newProduct.itemDescription = Request.QueryString("Description")
End Sub

I'm then hopefully going to pass all the product classes into an Array List for the shopping cart.

TIA

When the selection of the dropdown is changed by the user, the corresponding textbox will show depends on user's selection. Let's say when user select "A" from the dropdown, the Textbox "A" will shown, while the other textbox will be invisible.

The issue is when user select "A" in the drop down, the other two text box won't disappear.

aspx

<asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
        <asp:ListItem></asp:ListItem>
        <asp:ListItem Value="A" Text="A" />
        <asp:ListItem Value="B" Text="B" />
        <asp:ListItem Value="C" Text="C" />
</asp:DropDownList>


A <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
B <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
C <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>

aspx.cs

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
    if (DropDownList1.SelectedItem.Text == "A")
    {
         TextBox2.Visible = false;
         TextBox3.Visible = false;
    }
}

I have two upload buttons in my asp.net web app. I am uploading two different excel files and call the desired class and storing the files in a list of datatable. I have two list for 2 files and 2 buttons for uploading both files. Can I have single upload button for uploading both files and call the desired class depending on input

I have a gridview that has 6 Columns and I want one of those columns to be inserted as a row(No need of Column name) after each row of the gridview.

Problem: There's a lot of text in that column and I want to reduce the number of pages of the table's final results. So, if I move that text to a seperate row, I can spread the text across the entire display and my pages count would reduce.

Any help would be greatly appreciated. Thanks!

Below is my GridView:

<asp:GridView ID="grdItems" runat="server"  Width="100%" AllowPaging="True"
            CellPadding="4" ForeColor="#333333" GridLines="Horizontal" AutoGenerateColumns="False">
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Font-Size="X-Small" />
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <pagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" Font-Size="Small" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="actionItemId" HeaderText="Item Id"  >
                    <ItemStyle Font-Size="Small" VerticalAlign="Top" />
                    <HeaderStyle Font-Bold="True" Font-Size="Small" HorizontalAlign="Left" Width="65px" />
                    <FooterStyle Font-Size="X-Small" />
                </asp:BoundField>
                <asp:BoundField DataField="dueDate" DataFormatString="{0:d}" HeaderText="Due By" HtmlEncode="False" >
                    <ItemStyle Font-Size="Small" VerticalAlign="Top" />
                    <HeaderStyle Font-Size="Small" HorizontalAlign="Left" Width="65px" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Description" >
                    <ItemStyle Font-Size="Small" VerticalAlign="Top" />
                    <HeaderStyle Font-Size="Small" HorizontalAlign="Left" Width="265px"/>
                    <ItemTemplate>
                        &nbsp;
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="closedOn" HeaderText="Closed On" DataFormatString="{0:d}" >
                    <ItemStyle Font-Size="Small" VerticalAlign="Top" />
                    <HeaderStyle Font-Bold="True" Font-Size="Small" HorizontalAlign="Left" Width="65px" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Responsibility">
                    <ItemStyle Font-Size="Small" VerticalAlign="Top" />
                    <HeaderStyle Font-Bold="True" Font-Size="Small" HorizontalAlign="Left" Width="125px" />
                    <ItemTemplate>
                        &nbsp;
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Actions Taken">
                    <ItemTemplate>
                        &nbsp;
                    </ItemTemplate>
                    <ItemStyle Font-Size="Small" VerticalAlign="Top" />
                    <HeaderStyle Font-Bold="True" Font-Size="Small" HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
            <pagerSettings Mode="NumericFirstLast" />
        </asp:GridView>

I am trying to display content in a div inside a popover using Javascript and facing some issue. Below is the code. Hope someone can help..

1) ASP.Net master page that calls the pop up vbhtml page

 window.izenda=false;
                $("#NextGenReportsLink").click(function(){
                    if(!window.izenda)
                    {
                        PleaseWaitOpen();
                        window.izenda=true;
                       $.get("/Report/NextGenReportViewer", function(data){ 
                            $("#NextGenReportSelectorNew").append(data)
                        });
                    }
                });

2) The vbhtml page that should pop up on click of #NextGenReportsLink

    <!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
      <link href="~/Scripts/EmbeddedUI/izenda-ui.css?db1ebd9b10aa86f1fd76" rel="stylesheet">
        <link href="~/Content/ReportsFiles/Css/jquery.webui-popover.css" rel="stylesheet" />
        <link href="~/Content/ReportsFiles/Css/nanoscroller.css" rel="stylesheet" />
        <link href="~/Content/ReportsFiles/Css/reports.css" rel="stylesheet" />

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

    <script src="~/Content/ReportsFiles/Js/jquery.webui-popover.js"></script>
<script src="~/Content/ReportsFiles/Js/jquery.nanoscroller.min.js"></script>
</head>

<body>

    <div class="row" id="data" >
        <div class="container" id="izenda-root"></div>   
        </div>  


    <script type="text/javascript" src="~/Scripts/EmbeddedUI/izenda_common.js?db1ebd9b10aa86f1fd76"></script>
    <script type="text/javascript" src="~/Scripts/EmbeddedUI/izenda_locales.js?db1ebd9b10aa86f1fd76"></script>
    <script type="text/javascript" src="~/Scripts/EmbeddedUI/izenda_vendors.js?db1ebd9b10aa86f1fd76"></script>
    <script type="text/javascript" src="~/Scripts/EmbeddedUI/izenda_ui.js?db1ebd9b10aa86f1fd76"></script>
    <script type="text/javascript" src="~/Scripts/izenda.integrate.js"></script>

     <script type="text/javascript">
         $(document).ready(function () {
             debugger;

             //$("#NextGenReportsLink").click();
             PleaseWaitClose();
             DoIzendaConfig();
             izendaInit();
             document.getElementById('NextGenReportSelectorNew').style.display = "block";


             var Wid = $(window).width();
             var Hei = $(window).height() - (38 + 85);

             var Per98 = parseInt(98 / 100 * Wid)
             var Per1 = parseInt((Wid - Per98) / 2);
             var options = {
                 valueNames: ['name']
             };

             $('#NextGenReportsLink').webuiPopover({

                 placement: 'vertical',
                 trigger: 'click',
                 width: Per98,
                 offsetTop: -10,
                 height: Hei,
                 arrow: true,
                 title: 'NextGenReports',
                 closeable: true,
                 animation: 'fade',
                 onHide: function () { $("#loadingDiv").hide(); },
                 onShow: function () {
                     var Wid = $(window).width();
                     var Hei = $(window).height() - (38 + 85);

                     var Per98 = parseInt(98 / 100 * Wid)
                     var Per1 = parseInt((Wid - Per98) / 2);
                     $('.webui-popover.fade').css('left', Per1);
                     var ll = $('#NextGenReportsLink').offset().left + ($('#NextGenReportsLink').width() / 2)
                     $('.webui-arrow').css('left', (ll - Per1) + 10);
                 },
                 content: $('#data').html(),
                 type: 'html'
             });



             $(window).resize(function () {

                 debugger;
                 if ($('.webui-popover').is(':visible')) {


                     var Wid = $(window).width();
                     var Hei = $(window).height() - (38 + 85);

                     var Per98 = parseInt(98 / 100 * Wid)
                     var Per1 = parseInt((Wid - Per98) / 2);
                     var ll = $('#NextGenReportsLink').offset().left + ($('#NextGenReportsLink').width() / 2)
                     $('.webui-arrow').css('left', ll - Per1 + 9);
                 }
             })
        });

    </script>    

</body>
</html>

izendaInit(); function loads a UI into the izenda-root div, however that div is not getting displayed. Instead the below div is getting displayed

The div being displayed while inspecting in the dev tools

I can see another div with the same id "izenda-root" being loaded with the data but I'm not sure how to display that div. Any help is much appreciated.. Please let me know if you need any more documentation on the js/css files referred to in the vbhtml..

The div that is getting loaded by the izendaInit() function

3) Below is the izenda.integrate.js

//This function will point the front-end at an Izenda API
var DoIzendaConfig = function () {
    var configJson = {
        "WebApiUrl": "http://x.x.x.x:yy/api/",
        "BaseUrl": "/",
        "RootPath": "Scripts/EmbeddedUI",
        "CssFile": "izenda-ui.css",
        "Routes": {
            "Settings": "settings",
            "New": "new",
            "Dashboard": "dashboard",
            "Report": "report",
            "ReportViewer": "reportviewer",
            "ReportViewerPopup": "reportviewerpopup",
            "Viewer": "viewer"
        },
        "Timeout": 3600,
    };
    IzendaSynergy.config(configJson);
};


//Error checking during token generation
function errorFunc() {
    alert('Token was not generated correctly.');
}
//DoRender will called via successFunc
var DoRender = function (successFunc) {
    $.ajax({
        type: "GET",
        url: "https://xxxx.mock.pstmn.io/GenerateToken",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: successFunc,
        error: errorFunc
    });
};



//The IzendaSynergy.render function will render the entire Izenda front-end with an independent navigation
var izendaInit = function () {
    function successFunc(data, status) {
        var currentUserContext = {
            token: data.token
        };
        IzendaSynergy.setCurrentUserContext(currentUserContext);
        IzendaSynergy.render(document.getElementById('izenda-root'));
    }
    this.DoRender(successFunc);
};

I have a asp.net web forms site and I need if possible to be able to "embed" my google analytics into an asp.net page (e.g stats.aspx).

I have read many articles and all seem really complicated or just don't work.

For example:- https://www.mikesdotnetting.com/article/119/displaying-google-analytics-data-in-asp-net

Does anyone have (if there is such a thing) a really simple example to embed bar bones google analytics data to my page?

I'm using web forms and have same text in two different blocks. HTML:

<div class="div1">
    <p>My text</p>
</div>
<div class="div2">
    <p>My text</p>
</div>

I have to use asp.net controls. The code I'm using

<asp:Literal runat="server" ID="lblText"></asp:Literal>

Is there any way to re-use this control for second text block instead of creating a clone of this control with another ID?

I can't use tags like <%= for this page.

How can we concat two video files (with same format/different format) into one file using C# ASP.NET?

I would like to upload multiple video files using file upload control and would like to merge two video files to single video file.

I'm having an issue where the user logs in:

Dim manager = Context.GetOwinContext().GetUserManager(Of ApplicationUserManager)()
Dim signinManager = Context.GetOwinContext().GetUserManager(Of ApplicationSignInManager)()

'this session is for the whole issue of browser not getting the cookies'
HttpContext.Current.Session("RunSession") = "1"
Dim result = signinManager.PasswordSignIn(Email.Text, Password.Text, RememberMe.Checked, shouldLockout:=False)

and then in my master page's Init I run the following command:

If HttpContext.Current.User.Identity.IsAuthenticated Then
'run my code'
Else
'redirect to login'
End If

For some reason the user keeps getting redirected to the login screen after every successful login attempt. IsAuthenticated needs to be replaced with something else?

browser download file with this url ok, but webClient return 404

 string url = "http://zakupki.gov.ru/44fz/filestore/public/1.0/download/priz/file.html?uid=19CC93BEA67C4650B51D69CAA28CB27D";      
 using (var webClient = new WebClient())
        {                          
            webClient.DownloadFile(url , "name");
        }

I have a list of the following class:

public class SiloRelationship
{
    public int RelationshipType { get; set; }
    public string MasterKey { get; set; }
    public string SlaveKey { get; set; }
    public int QueryId { get; set; }
}

I have a second list of the following class:

public class SiloNode
{
    public string Key { get; private set; }
    public string Url { get; private set; }

    public List<NodeQuery> Queries { get; private set; }
}

Which has a sub-class:

public class NodeQuery
{
    public string Query { get; private set; }
    public int Seq { get; private set; }
}

Lists:

  • LandingSilo.Relationships is a list of SiloRelationship
  • LandingSilo.Nodes is a list of SiloNode.

Here's my query - there is a simple join, after which I need to return the Url and Query properties - the filter should result in a single QueryNode from the list.

What we have is:

SiloRelationship => 1 to 1 SiloNode => 1 to many QueryNode 

A Kvp would be adequate for the purpose of the exercise but I can't see the Query property with the code I've got so far.

var query =
    from r in LandingSilo.Relationships
    join n in LandingSilo.Nodes on r.SlaveKey equals n.Key
    where r.RelationshipType == 1 &&
    n.Queries.Select(y => y.Seq).Contains(r.QueryId)

Any help appreciated.

I couldn't find anything that explains this -- for some reason my .NET Core 2.0 ASP.NET application does not run as a DLL via:

dotnet MyProject.Web.dll

And instead I get the exception:

Unhandled Exception: System.MissingMethodException: Entry point not found in assembly 'MyProject.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

namespace MyProject.Web
{
public class Program
{
    public static void Main(string[] args)
    {
        LoadDependencies();

        var host = new WebHostBuilder()
            .UseKestrel()
            .UseContentRoot(Directory.GetCurrentDirectory())
            .UseIISIntegration()
            .UseStartup<Startup>()
            .Build();

        host.Run();
    } 

    private static void LoadDependencies()
    {
        DependencyLocator.Instance.DefineIfUndefined<IDataProvider, DataProvider>();
    }
}
}

It runs fine as a standalone, but now that I'm trying to deploy to a server that needs it to run via dotnet (as a DLL), it seems to be having issues. I get this issue on both my development machine AND the server.

I'm kind of blown away that it cannot locate the Main method -- it's declared as static and in Program.cs. Am I missing something? Is there a way to get a more verbose output about what's going on (i.e. could it throw this error if it's missing references, etc)?

I have ajax calling my web api to get a xlsx file that is generated when it is called. The xlsx file is in a memory stream that I know is correct because I downloaded it straight from the server and had no issue. However when I try to download the file through the browser it says that the file is invalid. I'm using downloadjs to download the data.

How I return the Stream

 public HttpResponseMessage Function_Name() {
        var stream = getStream();

        HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK);

        result.Content = new StreamContent(stream);
        result.Content.Headers.ContentType =
            new MediaTypeHeaderValue("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
        return result;
    }

How I get the Stream

$.ajax({ url: "urlToData", headers: {
                'Authorization': 'Authorization'
            },
         complete: function (xhr, status) { download(xhr.responseText, "test.xlsx"); } 
});

I have an ASP.NET MVC web application hosted inside an ASP.NET WebForms application on Azure App Service. I have two problems:

  1. I can't define the MVC application's connection string with the same name as that of WebForms application. It shows the same connection string name exception. I don't have much problem with this but if anyone could please tell me the reason then I can avoid any such conflicts in the future?
  2. This one is the major problem. All of my routes are added to the WebForms application's host instead of the WebForms application's host + the folder of MVC web application.

I tried changing the default route in RouteConfig.cs like this:

MVCAPP/{controller}/{action}/{id}

But it's not working and showing access denied error. Although, opening the view directly from the browser address bar is working correctly.

I get the following when trying to Cast to my class: Unable to cast object of type 'System.Data.DataRowView' to type 'QuestionBuilder'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Line 204:            else  if(e.Row.RowType== DataControlRowType.DataRow)
Line 205:            {
Line 206:                QuestionBuilder drv = (QuestionBuilder)e.Row.DataItem;
Line 207:
Line 208:            }

MY CLASS:

===================================================

 [Serializable]
        public class QuestionBuilder
        {
            /// Field for connection string
            /// </summary>
            private string connectionstring = Connection.GetConnecionString();

            public string QuestionText
            {
                get;
                set;
            }


            public string DataTypeId
            {
                get;
                set;
            }

            public string DynamicAttributeId
            {
                get;
                set;
            }

            public object DynamicValue
            {
                get;
                set;
            }

            public string SortOrder
            {
                get;
                set;
            }

            public string ProjectID
            {
                get;
                set;
            }

            public string DataTypeName
            {
                get;
                set;
            }

            public bool QuestionID
            {
                get;
                set;
            }


            public int surveyID
            {
                get;
                set;
            }

            public string ID
            {
                get;
                set;
            }

            public string dateteupdated
            {
                get;
                set;
            }

            public string recordstatus
            {
                get;
                set;
            }



            public string modifiedby
            {
                get;
                set;
            }


            public string changereason
            {
                get;
                set;
            }

            public bool Required
            {
                get;
                set;
            }
            public string SectionName
            {
                get;
                set;
            }

            public int SectionID
            {
                get;
                set;
            }

            public string FormType
            {
                get;
                set;
            }
            public int DecisionsetID
            {
                get;
                set;
            }

            public int SurveyID
            {
                get;
                set;
            }
    =========================================================

      if (e.Row.RowType == DataControlRowType.Header)
                {
                    foreach (TableCell tc in e.Row.Cells)
                    {
                        tc.CssClass = "casetableheaderstudyList";
                    }
                }
                else  if(e.Row.RowType== DataControlRowType.DataRow)
                {
                    QuestionBuilder drv = QuestionBuilder)e.Row.DataItem;

                }
                else
                {
                    foreach (TableCell tc in e.Row.Cells)
                    {
                        tc.BorderStyle = BorderStyle.None;
                        tc.BorderWidth = 0;
                        //tc.BorderColor = System.Drawing.Color.Transparent;
                        tc.CssClass = "casetableColumsStudyList";
                    }
                }

I have a website in ASP.NET and I have a textbox that the user type in text. I want to save this into a SQL Server database that saves all other data from site. I have tried several ways and got to the code below. It throws up the error below Any help as I'm lost on this now....

Error:

The name 'txtName' does not exist in the current context Step9.aspx.cs 67

Page markup:

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Step9.aspx.cs" Inherits="Step1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="question" id="question">
        <table border="1" style="border-collapse: collapse">
            <tr>
                <td style="width: 150px">
                Name:<br />
                <asp:TextBox ID="txtName" runat="server" Width="140" />
                </td>
                <td style="width: 100px">
                    <asp:Button ID="btnAdd" runat="server" Text="Add" OnClick="Insert" />
                </td>
            </tr>
        </table> 
    </div>
</asp:Content>

C# codebehind:

protected void Insert(object sender, EventArgs e)
{
    string name = txtName.Text;
    string constr = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;

    using (SqlConnection con = new SqlConnection(constr))
    {
        using (SqlCommand cmd = new SqlCommand("INSERT INTO learners (stickTwistBefore) VALUES (@stickTwistBefore)"))
        {
             using (SqlDataAdapter sda = new SqlDataAdapter())
             {
                 cmd.Parameters.AddWithValue("@stickTwistBefore", name);
                 cmd.Connection = con;

                 con.Open();
                 cmd.ExecuteNonQuery();
                 con.Close();
             }
        }
    }

    // this.BindGrid();
}

My client just sent me a delphi ddl to be consumed for my asp.net app, and bellow is the dll's signature:

function GerarChave(pChave: ShortString; pData: ShortString; pAcao: ShortString): PAnsiChar; stdcall;

How should i call it? I've triend everything like

[DllImport("CEIINT.dll", CallingConvention = CallingConvention.StdCall, EntryPoint = "GerarChave")]
    public static extern string GerarChave([MarshalAs(UnmanagedType.BStr)]string pChave, [MarshalAs(UnmanagedType.BStr)]string pData, [MarshalAs(UnmanagedType.BStr)]string pAcao);

string chave = "ABC123";
string data = "19/09/2019";
string acao = "0";
GerarChave(chave, data, acao);

but i always get a System.AccessViolationException error wich says: System.AccessViolationException... Attempted to read or write protected memory. This is often an indication that other memory is corrupt

Could anybody help me please? Thanks in advance!

I am trying to return a JSON for the Web API I am building. The API returns the JSON with \ slashes that makes difficult for my other application to consume this API.

 "   {\"@odata.context\":\"https://science.com/odata/$metadata#EMPLOYEE\",\"value\":[{\"Id\":5000004,\"Name\":\"Account\"}]}"

But I am expecting a response like

{
"@odata.context": "https://science.com/odata/$metadata#EMPLOYEE",
"value": [
    {
        "Id": 5000004,
        "Name": "Account"
    }]}

Below is the code for my Web API

 public async Task<string> GetEmployee(string instance)
 {
   .....
    EmployeeDTO.RootObject returnObj = new EmployeeDTO.RootObject();
    var responsedata = "";
    try
    {
    using (var client_Core = new HttpClient())
        {
           ....
            string core_URL = BaseURL_Core+URL_instance;
            var response = client_Core.GetAsync(core_URL).Result;

            responsedata = await response.Content.ReadAsStringAsync();
          }
    }
    catch (Exception ex)
    {
        throw ex;
    }
    return responsedata;

I have also added the Content type in the WebAPIConfig file like below

        var appXmlType = config.Formatters.XmlFormatter.SupportedMediaTypes.FirstOrDefault(t => t.MediaType == "application/xml");

      config.Formatters.XmlFormatter.SupportedMediaTypes.Remove(appXmlType);

But still I am getting the JSON with the slashes

I wrote the following code:

private string makeMailContents(Klant klant, Mail mail)
{
    var builder = new BodyBuilder();
    var path = Path.Combine("wwwroot/trackers/track_open.png");
    var img = builder.LinkedResources.Add(path);
    byte[] data = Convert.FromBase64String(mail.Content);
    string decoded = Encoding.UTF8.GetString(data);
    string code;
    string final = "";
    Regex regReplace = new Regex(@"\[([^]]*)\]");

    img.ContentId = MimeUtils.GenerateMessageId();

    var splitContent = decoded.Split(' ');

    foreach(string word in splitContent) { // something }
}

Whenever I run this code on my local machine and my test server it executes the code like it should without any exceptions.

But whenever I host this on my current live server it throws the following exception:

InvalidOperationException: Sequence contains no elements

And this exceptions keeps pointing towards the splitContent and it tells me that it doesn't contain elements. And yes, the mail.Content is filled with a valid base64 string, I checked both with fiddler and postman.

Does anyone have the slightest clue of what's going on here? I'm also not sure if it's the IIS settings or somehow my code. I normally have a colleague who manages the IIS but he is on vacation right now. Can someone help me out with this?

This is the data the mail receives when called:

 {      
    "Onderwerp":"Dit is een test campagne",
    "afzender":1,
    "campagne":1,
    "Content":"PHA+RGl0IGlzIGVlbiB0ZXN0IG1hYXQ8L3A+Cg==",
    "docs":"['kamer2.jpg']",
    "template":null,
    "verzenddat":"8/17/18, 3:55 PM"
}

UPDATE Whenever I run this code in my values controller to test the decoded.split(' ') it actually works. When I return the decoded.split(' ') I actually get an array of strings.

So now I know that the problem only occurs within the method, which is located in a Sender class and being called in the MailerController, and it also only occurs in the current server.

I have a SQL Server table with 250+ columns, each row can be an exact duplicate of any other row (apart from date and one other value).

My problem is I need to design a front end which allows me to compare 2 rows and highlight / display any differences. I had started a VB.net app which displays all rows in a DataGridView, the user selects a row and clicks a button which adds a tab containing the data of the selected row, once there are 2 or more tabs then the user can click a button which searches for and displays the differences only.

Not sure this is the best way but I have ZERO experience with any tools apart from VB.NET, VBA, SQL and a small amount of C# so trying to get into ASP.NET, Python web dev or any of that stuff is melting my tiny mind... Also, believe it or not but learning Access is taking far too long.

I need advice as to the best way to go, all i need to do is display the columns which have changed and the values of them.