The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

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

Sign up to Post

Best method of changing Display Name of fields in ASP.NET application?
I have a  large app that need display name changes.
Free Tool: IP Lookup
LVL 12
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I am using Microsoft Visual Studios 2017 and trying to use  Core 2.0=1 but in the dropdown it just shows 1.1 (even though I went to the microsoft sight and downloaded 2.1). So my question is. How do I get Core 2.0 to show in the dropdown template
I have in issue in that I need help with. My Datagrid is using an ODBC connection to a Sybase DB and my query has 4 parameters, two of which are in a LIKE clause:
	AND (vhs.SALESDATE >= ? AND vhs.SALESDATE <= ?) 
	AND (vhs.MAKE LIKE ?) AND (vhs.Model LIKE ?)"

    <asp:ControlParameter Name="FromDate" 
      Type="DateTime" PropertyName="SelectedDate"/>
    <asp:ControlParameter Name="ToDate" 
      Type="DateTime" PropertyName="SelectedDate"/>
    <asp:ControlParameter Name="Make" 
      Type="string" PropertyName="Text"/>
    <asp:ControlParameter Name="Model" 
      Type="string" PropertyName="Text"/>

Open in new window

I cant figure out how to pass the text variables in the query by appending for example '%" + rtMake + "%'  or similar to make the LIKE function work correctly. Everything I do results in a "Server Tag not Well Formed".

Any ideas? Thanks in advance
I want to "IssueCaseRefund" using ebay post-order API

i have used these Api Url for "IssueCaseRefund" details using post method

API Url is: POST{caseId}/issue_refund

i have also ebay auth token as Authorization in header.

When it run into postman by using above details then Api throws "Page not responding"

I also developed Api call in C#

My code details

/ Set issue to return url string returnUrl = "" + CaseId + "/issue_refund"; HttpWebRequest returnRequest = (HttpWebRequest)WebRequest.Create(returnUrl); returnRequest.Method = "POST"; // Set EbayToken returnRequest.Headers.Add("authorization", eBayToken); //returnRequest.Headers.Add("authorization", eBayToken); using (HttpWebResponse returnResponse = (HttpWebResponse)returnRequest.GetResponse()) { using (Stream returnStream = returnResponse.GetResponseStream()) { using (StreamReader returnReader = new StreamReader(returnStream)) { // Get Api Response string returnResponseText = returnReader.ReadToEnd(); } } } Please guide me how to "IssueCaseRefund" using ebay post order Api

Open in new window

I want to show the results on a details page that matches what shows in the dropdown list that I have on the create page. I was able to create different text for values in the dropdown. I am struggling with showing the text on the details page that is redirected after creating the customer. The details page shows the values 0, 1, 2, or 3.

For example, the Create view has a dropdown for Prospect Status with different values. I defined those in SelectListItem in the CustomersController. The value for Prospect Status in the database is actually a 0, 1, 2, or 3.

Customers/Create in CustomersController

        // GET: Customers/Create
        public ActionResult Create(CustomerModel model)
            if (model.Confidence == null)
                model.Confidence = new SelectList(new List<SelectListItem>(){

                    new SelectListItem(){Text="", Value="0"},
                    new SelectListItem(){Text="1 - Very Stable", Value="1"},
                    new SelectListItem(){Text="2 - Stable", Value="2"},
                    new SelectListItem(){Text="3 - At Risk", Value="3"},
                }, "Value", "Text");
            if (model.ProspectStatus == null)
                model.ProspectStatus = new SelectList(new List<SelectListItem>(){

                    new SelectListItem(){Text="Prospective Customer", Value="0"},
                    new SelectListItem(){Text="Existing Customer", Value="1"},

Open in new window

can someone recommend a good ComboBox that I can use in my ASP.NET Webform project. It should be Free and be as feature rich as possible. Currently using AjaxControlToolkit.ComboBox but find that it is very limited. For instance I am unable to programmatically set the Dropdown list to droppedDown or Closed.  

I'm trying to update a SQL database(2008R2), with values from my GridView

I am getting the following as soon as I click on the 'UPDATE' link on my GridView

Object reference not set to an instance of an object.
  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.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:
Line 38:         cmd.Parameters.AddWithValue("@supplierID", GridView1.SelectedRow.Cells(0).Text)

Here's my form section of ASPX:
  <form id="form1" runat="server">
            <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="SupplierID" DataSourceID="SqlDataSource1" Height="494px" Width="479px" AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" BackColor="#DBDBDB" OnRowUpdating="GridView1_RowUpdating">
                    <asp:BoundField DataField="SupplierID" HeaderText="SupplierID" ReadOnly="True" SortExpression="SupplierID" />
                    <asp:BoundField DataField="Supplier" HeaderText="Supplier" SortExpression="Supplier" ItemStyle-Wrap="False">
                        <ItemStyle Width="50px" />
                    <asp:BoundField DataField="Col1" HeaderText="Col1" 

Open in new window


In my GridView is it possible to make the checks in check boxes clearer by making them darker or bolder?

i have xyz.aspx page and have a button SHOW MODEL POP UP on it. On click of this

button the grid view is getting displayed with list of Countries. I have added up the

checkbox to every Country. If you select the Country and click on button ADD which is

present on popup box then it should display the checked Countries on the

xyz.aspx page below the button.

Below is the attached code which i have implemented using javascript


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="xyz.aspx.cs" Inherits="" %>

<!DOCTYPE html>

<html xmlns="">
<head runat="server">
    <link href="" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
$(function () {
$('#btnclick').click(function () {
title: "jQuery Show Gridview in Popup",
width: 500,
height: 500,
modal: true,
buttons: {
Close: function () {
<style type="text/css">
.GridviewDiv {font-size: 100%; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helevetica, sans-serif; color: #303933;}
I have an ASP.NET MVC app that is a SharePoint provider-hosted app hosted in Azure.

I am using Excel interop to create an Excel document that I am trying to download.

The code to generate the Excel document works fine, however I am not able to retrieve the file bytes directly from the Excel app. The workbook needs to first be saved to a file.

I tried using io.Path.GetTempFileName(); to save the file to a temp folder, but when the file is read back from that location, it reads 0 bytes[]. Another thing I tried is using Azure Storage, but I was still unable to get the file bytes.

using System.Web;
using Excel = Microsoft.Office.Interop.Excel;
using io = System.IO;

namespace Intervate.SharePointAppDemoWeb.Models
    public class ExcelOperations
        public byte[] GetATB()
            var excelApp = new Excel.Application
                Visible = true
            Excel._Worksheet workSheet = excelApp.ActiveSheet;
            workSheet.Name = "Test Worksheet";
            workSheet.Cells[1, "A"] = "Test";

            //string AccountName = ConfigurationManager.AppSettings["AccountName"].ToString();
            //string AccountKey = ConfigurationManager.AppSettings["AccountKey"].ToString();

            //CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=" + AccountName + ";AccountKey=" + AccountKey + "");

Open in new window

7 new features that'll make your work life better
7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.


I am looking at creating a webform page that contains an iframe. The iframe content is from another web domain that will contain a combination of images, JavaScript and html.

My question is how to ensure this will work with CORS and also ensure this is safe.

Any help is appreciated.
I have a Linq in VB that I need to display in a gridview:
Dim myLnq = From x In Db.tbl
                                  Where x.field = "foobar" 

Open in new window

I have tried following the link below but don't quite understand what needs doing:
Hello there,
Please help me resolving this DLL linking issue.

Here's the Solution setup:
  • App1 (ASP.NET MVC 5 Project)
  • App2 (ASP.NET MVC 5 Project)
  • Common ( Shared Library Project)

The Common library is shared between the two projects. When I add reference in App1/App2, I chose Common Project and works in localhost.

But when I publish App1 or App2 to TEST IIS server, the DLL points to the directory from development machine, which in turn throws error.

Any idea how to resolve this problem?

I am trying to change the port I am using to send emails from my website, website is coded in ASP.NET.

I have the following code:
SmtpClient smtp = new SmtpClient("");
smtp.Port = Convert.ToInt32("25");
smtp.UseDefaultCredentials = false;
smtp.EnableSsl = false;
NetworkCredential Credentials = new NetworkCredential("", "tttttt");
smtp.Credentials = Credentials;

This code works, but I encounter the following issues:...
Port 465, SSL true - no email received
Port 587, SSL true - no email received
Port 465, SSL false - no email received
Port 587, SSL false - no email received
Port 25, SSL true - EMAIL received
Port 25, SSL true- EMAIL received

When using outlook 2016 I have to use the STARTTLS setting to get the emails to receive, how does this look in when coding the website, I have google this and there doesn't seem to be a clear answer?

The reason I wish to change is that the 25 port takes forever to send the form and the 587 and 465 seem almost instant!

Thanks in advance
I have xml and I want to use xsl to capture
All of the value from xml to populate the field in PDF

How can I do that in c#?

This is a follow up question of

The typical example only shows the date range with no icons:
My current requirements are:
 - Responsive (must work Real Ipad and mobile galaxy)
 - When day is selected the date picker must close.
 - When picker is shown, it must open down the picker location.
 - Date range must work with icons and have similar behaviour as per current sample link.
 - It supports IE11 onwards, Chrome (latest and previous 3 releases) and Safari.
 - It supports Iphone 7 and up and Galaxy S5 and up.

 We are currently using Bootstrap latest 3.x version and Jquery 1.12.x
dear all
i have a gridvie win asp where i am adding a new row via javascript below is my code
<asp:GridView ID="grvResourcesDetails" runat="server"
                    AllowSorting="true" AutoGenerateColumns="False"
                    BorderColor="#999999" BorderStyle="None"
                    BorderWidth="1px" CellPadding="4" CssClass="labelsStyle_N"
                    Font-Size="Medium" GridLines="None" ShowHeaderWhenEmpty="true" 
                    HorizontalAlign="Center" OnRowDataBound="grvResourcesDetails_RowDataBound"
                    Style="z-index: 1; cursor: pointer;" Width="99%" PagerSettings-Mode="NumericFirstLast">
                    <RowStyle  CssClass="GridRowStyle"  />
                    <AlternatingRowStyle CssClass="GridRowStyle"  />
                        <%--Child Order Column:Column 0:2%--%>
                        <asp:TemplateField HeaderStyle-CssClass="labelsStyle_N" HeaderStyle-HorizontalAlign="Center"
                            HeaderText="ChildOrder" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="2%"
                             <asp:Label ID="Lbl_ChildOrder" runat="server" 

Open in new window


Really new, and just trying to learn here.

MVC project.  I simply want to naviate to a page FTPUpload.  A developer created this project for me, and I'm simply trying to add a new page.  I added the highlighted folder FileShare and the file FTPUpload.cshtml.  Below is the structure of the solution.  I have a link in the _LoginPartial.cshtml
 <a class="btn" href="/FileShare/FtpUpload">Share Files</a>

Open in new window

The link appears to naviate to the correct page but I alway get a "The resource cannot be found. Description: HTTP 404." error.  Like I said I'm new, so I've wasted the last couple of hours trying to figure it out.  

Within the FTPUpload.cshtml file I have the following code
 @using Solution.PowerBIEmbedded.Controllers
@using Solution.PowerBIEmbedded.Models
@model EmbedReportViewModel
    ViewBag.Title = "FileShare";
    <title>Download and Upload Files</title>
    (ViewContext.Controller as BaseController).CurrentUser.ftp_site

Open in new window

I am using in and I am trying to work on a file that i have just copied but it stays locked:

I have used the below two methods but it still stays locked and give the error:
The process cannot access the file ... because it is being used by another process.

Method 1:
File.Copy(sourceName, DestinationPath, True)

Open in new window


Method 2:
 If File.Exists(DestinationPath) Then
                    End If
                    My.Computer.FileSystem.CopyFile(sourceName, DestinationPath)

Open in new window

I need to be able to recopy and overwrite as many times as the user wants.
The new generation of project management tools
The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Hello every 1.

To finish a cost analysis for a concept, i want to make an list for an IT server Infrastructure / Architecture for a e-commerce website. For days now I am surfing the internet to find a small pieces of information.

The idea?
It is for a sales platform together with a portal for customers and for clients.
Furthermore, the software comes together with an app with cloud based functions.
A writer/photographer has access to the database to create a catalogue. After approval the item(s) will be shown on the internet.

What is this software built on?
Microsoft .Net Core 2.0 and C # language. entity framework core 2.0.
Front end
HTML5, CSS3. Twitter Bootsrap, Angular JS.
Development tools
Visual studio, Xamarin, SQL server management.
Nunit, Thinkecture identity server, Phonegap, Unity, Net 4.0, redis cache.
Amazon S3

Hyper Converged Infrastructure / hardware for server
Below a list of what I have found so far on the internet for the composition of a hyperscale computing environment setup on which everything should run.
This server system must function with open source technologies and support open innovation.
HPE GL380 (enterprise-grade servers with built-in resiliency).

Usable Servers
Fileserver (FTP) -
Mailserver (Microsoft exchange)
Log In server Printserver
Media |Server (videos + Photographs), HPE StoreEasy 1640 - 32TB $ 13.000
Application server (software developed locally)
I am having a devil of a time aligning my webgrid on the page as I would like it. My web grid has a 4 inch left margin and a 1 inch margin on the left.

I have a css on the page:

 .webGrid {
        margin: 4px;
        border-collapse: collapse;
        width: 200px;
        background-color: #B4CFC3;

Open in new window

but this does not seem to adjust the left margin. I would love to see the web grid as close tot he left side of the browser window as possible. Is there a some css i am missing to allow my webgrid to move fully to the left? align-items and align-content does not seem to be what i am looking for.

Thank you for any help
How do I build a page that retrieves a the URL (using LINQ) and display that in the page.

I have parameter that I can pass in Request.QueryString("MyParam") and using this I can get the URL out:
Dim db As New DatabaseDataContext
Dim MyParam As String = Request.QueryString("MyParam")
Dim MyURL As myTable = (From x In db.myTable Where x.field = MyParam).FirstOrDefault

Open in new window

Now that I have the URL I will need to fetch it and display this. The Images are NOT in the ~Image folder (outside application folder).
These images are of file types "TIFF".

I have used the Image control and various solution from the web but could not really make it work.

What is the correct method to achieve this? May be I need to use some other control?

Your help will be appreciated.
jQGrid datetime server side filter not working with specific date format

We have used Trirand.Web.UI.WebControls.JQGrid in our Asp.Net application, We have also enabled server side filtering setting LoadOnce = false. We have also implemented localization for Date format for that we are using below code

JQGridColumn jc = new JQGridColumn();
jc.DataFormatString = "{0:" + UserDateDisplayFormat + "}";

CustomFormatter jcformatter = new CustomFormatter();
jcformatter.FormatFunction = "FormatNullDateCellValue";

Open in new window

Where "FormatNullDateCellValue" JavaScript function is converting datetime format for display in grid.

Now we are facing issue with specific date format "dd-MM-yyyy" when date is lower then 12 (e.g. 10-02-2018).

For server side in Asp.Net we have jqGrid_DataRequesting method where we got filtered result with 1 record count.

But from there when code reaches to loadComplete(data) JavaScript method we found record count 1 but not row data.

This is strange from we have got so far but this is not helping us.

Thanks in Advance.
dear all

i have an asp gridview that contains literal control , buttons and textbox
i would like to fil this gridview from a dataset using javascript
how to do that??
I have a VB.Net page where I have implemented Impersonation using help from the following post:
"go to the post on impersonation using VB.Net"

Although it seems to be working when I access the page from the IIS server (not local) but when other users try to access it then they get the following error message:

An error occurred while attempting to impersonate.  Execution of this request cannot continue.
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.

Exception Details: System.Web.HttpException: An error occurred while attempting to impersonate.  Execution of this request cannot continue.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): An error occurred while attempting to impersonate.  Execution of this request cannot continue.]
   System.Web.ImpersonationContext.get_CurrentThreadTokenExists() +227
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +12491258






The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

Vendor Experts

monday.comMonday Learn more about Monday