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


I have an ASP.NET error and I am unsure what is causing it...  Please see.. Error
I am hoping someone will be able to help me.
Cloud Class® Course: Microsoft Windows 7 Basic
LVL 12
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

This is a related question to this
Related question

Since Google API has a limit per day, is there other APIs that I can use to get 1,000,000+  addresses? If not, then my work has to pay for it, if they want the map coded and working.

Thanks for any input.
I have a repeater that displays records in a card panel with a few details and i have a click button that i added. i want the full details of that single idea to show on a different page:

Heres the front end code
<asp:Repeater ID="Repeater2" runat="server" OnItemCommand="Repeater2_ItemCommand">
<div class="" >
  <div class="container border-margin">
       <div class="row">
           <div class="col-lg-12">
  <div class="card-body "> 
                  <h1 class="text-center">
        <asp:Label  ID="Label2"  runat="server"
             Text='<%#Eval("IdeaTitle") %>'>
      <p class="text-center">
        <asp:Label ID="Label3"  runat="server"
             Text='<%#Eval("Category") %>'>
           <p class="text-center">
<asp:Label  ID="Label5"  runat="server"
             Text='<%#Eval("Date") %>'>
      <div class="container">
          <div class="row">
              <div class="col-lg-12">
                   <asp:Button ID="Button1" class="btn btn-danger"   runat="server" EnableViewState="false"  
                       Text="View Idea" CommandName="view"  CommandArgument='<%#Eval("IdeaTitle") %>' />

and here is the code behind …
Hello Folks,

I've an ASP.NET website that is consuming more RAM on IIS worker process. Please see below points.

1. The website comprised with around 700 aspx pages along with 100 user controls.
2. The website takes around 1 GB RAM once worker process starts.

Could you assist below points?
1. How to diagnose, what are the problems with either memory leaks, unnecessary data loaded or other factors?
2. How to resolve it?

Best Regards

I have this json coming from an REST api. I now want to make a representaion of it in my site (I use for the moment). But I don't fully get it to work when I create the classes representing the json and deserialize it. This is how the json looks like when I copy it form Postman:
    "data": {
        "type": "vehicle",
        "attributes": {
            "regno": "HCA015",
            "vin": "WF0MXXGBWMDP17671"
        "links": [
                "rel": "self",
                "uri": "vehicle/vin/WF0MXXGBWMDP17671"
                "rel": "biluppgifter",
                "uri": ""
        "basic": {
            "data": {
                "make": "Ford",
                "model": "GALAXY 2.0 TDCi",
                "status": 2,
                "color": "Svart",
                "type": "PB",
                "vehicle_year": 2013,
                "model_year": 2013
        "inspection": {
            "data": {
                "latest_inspection": "2016-09-19T00:00:00+02:00",
                "inspection_valid_until": "2018-09-30T00:00:00+02:00",
                "meter": 38650,
                "next_inspection_range": [
        "status": {
            "data": {

Open in new window

Hello Experts,
I am trying to run a set of DOS commands from C# program, which need to be executed in a Windows Service.  It runs fine in Development machine and Test Server.  But when I deploy that in Production, it does not run.  When I say it does not run, only DOS portion does run.  The C# part runs just fine.  Any idea, what is going on?  Is there a way I can capture any exception?  Any help is highly appreciated.

Thank you very much in advance.
I have been developing with ASP.NET web forms for years and had decided to learn MVC and Entity Framework model as I am becoming irrelevant in skill set. But in discussions with some of my peers they indicated I should start with ASP.NET Core Razor environment. Since I have had limited exposure to both, I need suggestions on where to get started, kind of like a step one learn this, step two learn that. I am kind of at a loss of where to begin as it all looks so foreign to what I am used to.
Asp.Net project - .Net Framework 4.6.1
I need to implement Distributed Caching in SQL.
When googled, there are lots of helps for Asp.Net core, very little for a 'non-core' application.

This is a tutorial for Asp.Net core

Can you help me to do Distributed Caching using SQL in Asp.Net 'non-core' project ?

Architectural and best practices question request.  

I am rewriting an application from web forms to ASP.NET CORE 2.0 MVC using Visual Studio 2017.

I have a create view (input form) that has a drop down  and based on the selection in the drop down I would like to alter what is displayed in the create view (input form)

For example:

By default I would like to display some default input fields such as as Name, Date, Reason, Contact Phone number.

Some sample entries in the drop down are Engineering, Mechanical, Maintenance.
and if the user selects "Engineering" I would like the create view / input form to displayinput fields
Engineering Area and Engineering  Region, Engineering priority in addition to the above default fields.

If the user selects "Mechanical" I would like the create view / input form to display input fields.
Mechanical Problem and Mechanical Estimate, Mechanical Resourses in addition to the above mentioned default fields.

If the user selects "Maintenance" I would like the create view / input form to display input fields.
Maintenance Assignment and Maintenance Severity,   in addition to the above mentioned default fields.

I was wondering what the best practices (JavaScript framework?, intrinsic .NET CORE functionality?) were to achieve the above results.  Any online blogs or online tutorials would be of help also.
dear all

i Have a UWP Sideload application , not to  be published on the store,

how can i deploy it without certification  or how to use -SelfSignedCertificate.

Thank you
Cloud Class® Course: MCSA MCSE Windows Server 2012
LVL 12
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

I'm getting the following error after upgrading to SSL.  Not sure what portion of the I need to change.  Any help is appreciated.

During Login into site I get the error.
The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.

The Stack Trace is:
[HttpException (0x80004005): The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.]
   System.Web.Security.FormsAuthentication.SetAuthCookie(String userName, Boolean createPersistentCookie, String strCookiePath) +9811908
   System.Web.UI.WebControls.Login.AttemptLogin() +192
   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +75
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +114
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +260
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
   System.Web.UI.Page.ProcessRequestMain(Boolean …
Hi, I've got a website where various users ,at the same time,can be connected  and perform actions such updates or select queries.
I'm getting a deadlock error from the database (using MS SQL). I think this is happening since I added some non-clustered indexes to some columns. The lock is happening between an update and a select statement.

Transaction (Process ID xxx) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Open in new window

This is sending an error to my website and dispaying and error page when this happens. I was thinking of trapping the deadlock error in code (1205) and ignore it.

catch (SqlException ex)
    if (ex.Number == 1205)
        // Deadlock 
        // Rerun query??

Open in new window

Is this a good solution?? I'm afraid I cannot alter the table and its indexes as this would cause some problems.
Any ideas how to solve this??
Dear experts:
Our need textbox with filter which include value and text search
<div id="multiple-datasets">
    <input class="typeahead" type="text">
Furthermore, when the user has focus on the textbox nothing will be displayed as user starts typing the filtered results will be displayed.

The current data looks like:
Value      Text
ABC             My Academy big company
DEF,GHI  Sample company with multiple associated values
XYZ             Zoombie

The ideal solution should use typeahead, bootstrap and jquery. The following link seems close to what is needed but it does not have a complete solution:

For example if I  click on the text box nothing is displayed as I type "a" then first two company Text show up. Notice that the value is hidden.
Note: We already tried a drop down with search (bootstrap select) but the issue we have is that we can not restrict the all descriptions display when the drop down have focus.

Hi I was using VB Script to create Oracle backup every day and I was using windows server 2003,  Now I have been switched to windows server 2008 then I tried to run same vb script to create backups but it's not working, Please show below script, Do i need to replace it with other command. please help, I am using Oracle 11G database.
 Public systemuser
 Public systempwd
 Public DumpFile
 Public LogFile	
 Public FolderName
 public tnsname
 Public Str1
 Public Str2
 Public Str3

 Dim retval
 Dim objWShell

 systemuser = "system"
 systempwd = "XXXXXX"
 tnsname = "Database1" 
 DumpFile = "DB1"
 LogFile = "DB1Log"	
 FolderName = "H:\Archive7\Dumps"

' INI file search containt *****************************

   Set objWShell = CreateObject("WScript.Shell")
  ' FilePath = objWShell.CurrentDirectory

   Set fso = CreateObject("Scripting.FileSystemObject")
 Dim myDateString
	myDate=replace(replace(replace(myDateString," ","_"),":","_"),"/","-")
If (fso.FolderExists(FolderName )) Then
set fol=fso.CreateFolder(FolderName )
End If
'msgbox myDateString
'msgbox myDate

Str1 = "exp " & systemuser & "/" & systempwd & "@" & tnsname &" file=" & DumpFile & ".dmp  log=" & LogFile & ".log full=Y"
'msgbox Str1

	On Error Resume Next
	Dim oShell
	Set oShell = CreateObject("WScript.Shell")
	retval = oShell.Run( Str1, 1, True)
	Set oShell = Nothing

Open in new window

I am displaying content from different sources, such as database , web service call and so forth, in my website.
 There is no guarantee that the content  i get are in any particular character encoding, some may be in UTF-8 or UTF-16 or something else.

I am getting the content and displaying it as. can I change it to  a particular encoding before , I display it to my web page. at

I am setting the text content inside a div to whatever is returned from a web service call, in code behind page in website. I'm using C#.
I am currently experiencing something strange with one of my routes' responses and haven't been able to find any information elsewhere.

So, let's say I make a call to a route in my controller with JQuery, like this. It's a POST action and I expect JSON data.

// Send the data
                type: "POST",
                enctype: 'multipart/form-data', //'application/json',  
                url: "/Claims/Application/SaveCurrentFormData",
                data: data,
                dataType: 'json', // we're expecting back a json
                processData: false,
                contentType: 'application/json',
                cache: false,
                timeout: 600000,
                success: function (result) {                      
                    for (var formCode in result.forms) {
                        var selector = "[data-formcode='" + formCode + "']";
                        $(selector + " [name='TicketDocumentId']").val(result.forms[formCode]);

                    for (var documentName in result.documents) {
                        var selector = "input[name='" + documentName + "']";
                        $(selector).data("ticketdocumentid", result.documents[documentName]);

                error: function (e) {
                    // Debug
                    console.log("Error saving form data: ", e.message, e);


Open in new window

i have a piece of code where i check to see if a datetime is greater than another datetime but the problem is the value i am checking against is in 24 hr format and comes from gridview so i get an error saying '24.00' is not a valid datetime and that is perfectly right because it is greater than 12:00 how to i overcome this issue.

DateTime start3 = Convert.ToDateTime(start);
DateTime stop3 = Convert.ToDateTime(stop);
DateTime start4 = Convert.ToDateTime(start2);
DateTime stop4 = Convert.ToDateTime(stop2);
DateTime starttime1 = Convert.ToDateTime(starttime);   -> 24 hr format      '12:00'   comes into the  method as string this passes because of 12
DateTime stoptime1 = Convert.ToDateTime(stoptime);->   24 hr format             '24:00' this fails because of time being 24

if (starttime1 < start3 || stoptime1 > stop3)
                        string script = "alert(" + "You have a production time < 0 minutes.Please check your Start and Stop times." + "\");";
                        ScriptManager.RegisterStartupScript(this, GetType(),
                                              "ServerControlScript", script, true);
                        thirdcheck = false;
                        thirdcheck = true;

Open in new window

i tried doing this
DateTime stoptime1 = Convert.ToDateTime(stoptime);
string twelveHour1 = stoptime("h:mm tt");

but fails because i need to convert the stoptime into datetime first in order to get the 12 hr time.

any possible workaround you can think of that can help me will be appreciated.
I'm also facing same issue in CKEditor 4
When I paste some content using the toolbar, its shows the below message instead of the previous pop-up

"Your browser doesn't allow you to paste this way. Press ⌘+V to paste."

Please let us know how to fix this?
Hi, I found a little issue with an input checkbox on its 'onchange' event when it's inside a bootstrap popup panel.

I've have the following

<label ><input type="checkbox" onchange="Changed(this)" > 

Open in new window

and a javascript function  that triggers when the user clicks on the label or the check box

  function Changed(element) {

Open in new window

This is all fine until the user holds the mouse for a bit (a couple of seconds) when clicking the checkbox. This makes the pop up to close but the event 'onchange' is not triggered.

Any ideas how to solve this?? Thanks!
Upgrade your Question Security!
LVL 12
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

While loading a legacy ASP.NET 1.1 project I am receiving the attached error. Please advice.

Ultra short overview; my user controls parameter does not function the same as a labels text, as for example I have to databind for my parameter to even be activated/bind/passed, but when paging, it loses the bind data, but the label does not - the Gridview1.Databind in load does not fix it and throws a classic 'Object reference not set to an instance of an object.'.)

I have attached here a little project that has the issue; there is a mdf database included so it's just compile and you'll see the problem when you suse the paging control where the usercontrol fails but the normal components(label/text boxes,  etc) work fine. it's packaged as a zip.

Please just see the problem, I cant be the only one having this problem - Would love some help, I am unable to get this to work, been stuck for a week now.

Thank you in advance

In Razor pages, the url structure on lage "language" will be.
Where 100 is a id.

Then I can request 100 by UrlData[1]

But in Core, it asumes that there is a page named 100. How can I change this?
I've spent quite a bit of time attempting to create a simple example using Ajax.BeginForm (via ASP.NET MVC & EntityFramework), but can't get it working for some reason. The example I'm trying to create looks something like:

1. Initial page displays a list of employees (e.g.,  EmployeeId, FirstName, LastName, EmailAddress) in a grid-like format (table, nested divs, etc), with an Edit link at the end of each row
2. When the Edit link is clicked, a modal form displays on top of the initial page with the above fields, allowing the user to update the data. EmployeeId should not be editable.

I was able to get this working using custom javascript to display the list of employees with the edit button next to each record using document.ready(), but Ajax.BeginForm is giving me a hard time for some reason. When the edit button is clicked it displays a modal update view and submits a post request upon clicking a save button to an ASP.NET MVC JsonResult controller method to update the database.

Any examples to help me work through this would be greatly appreciated!
Hi Experts,

I'm in the process of creating a questionnaire in an webform. The questions will be database records which I'd then use to create the questionnaire. I think I'll need to use a datagrid to show the questions and then I'd like to have a dropdownlist or radio buttons for the answers. Is this the correct/best approach and if so, does anyone have any examples of the best way to do this?

Many thanks in advance for the help,
Below code is working in web form. But I convert into mvc so I have <select id="htmlList"></select>
so how can i use Helper.DynamicsCRM.GetOptionSetItems("lead", "new_rv_type") binding with "htmlList"?

Web Form
ddlTitle.DataSource = Helper.DynamicsCRM.GetOptionSetItems("lead", "new_rv_type");
<asp:DropDownList runat="server" ID="ddlTitle" DataTextField="text" DataValueField="value"></asp:DropDownList>






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