.NET Programming





The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

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

Sign up to Post

Is it possible to use SSRS 2016 reports in a ASP.Net Core Web Application?

If so anyone have a link to an example?
Please help me understand why C# throws this error when there's already a return statement there? I can add another return to fix it but why does it do that?

This is how I can fix it

public decimal CashBonusBalance
			set {this.label_CashBonusBalance.Text = string.Format("{0:C}",value);}
                if (label_CashBonusBalance != null)
                    return decimal.Parse(label_CashBonusBalance.Text);
                return 0; //**** adding an extra return

Open in new window

I started using telerik controls and cannt find enough examples for the starter...

Im using unbound radListView control and need to convert this code from vb6:
  If ListView2.Items.Item(i).Name <> ListView2.FocusedItem.Name

what is the equivalent of radlistview for FocusedItem ?
Hi, I have requirement to use Kerberos authentication for ASP.NET WebAPI application deployed in Docker Swarm .NET Core linux containers. WebApi will be used by web clients with Kerberos support. Application also should be connected to active directory to subscribe and get list of all users from AD. Docker Swarm deployed on premises in the organization network. Anyone have experience with such configuration?
- What should be done to enable Kerberos authentication in the ASP.NET and its Docker linux image? Will this require 3rd party kerberos tools or it can be handled by .NET Core?
- To enable such configuration what should be configured in the SWARM cluster?
- What should be used as service principal names (SPN)? And how to get user AD Identity inside ASP.NET?
- Is it possible to use multiple container instances of the same application?
- How I could use background worker service inside SWARM cluster to sync users list with the AD database?
From my website. I need to allow user to be able to delete files from a shared folders.  How do I impersonate a non-windows account? I need to connect to a multiple Linux shared folder. so I do not want to map a drive letter. I currently use the below command, but I do not want to show my user name and password. I'm able to get the command below to work with impersonate with my windows account but .net impersonate does not work on non-windows accounts.  I need a solution that will let me connect to a shared folder using a non-windows account.

Example: I'm using the .Net ProcessStartInfo.Arguments Property

startInfo.FileName = "net";
startInfo.Arguments = "use \\\\Servername\serverPath serverPassword /user:serverUsername";
Hello EE community,

We host over 600 sites in a farm of 6 servers and on a monthly basis we do a deployment that will overwrite the DLLs in a folder called \BIN which is a centralize point for the binaries of all the site folders. We have a symbolic link to the \BIN folder under each site folder. During the deployment, we run a script on all 6 servers, that will stop IIS, overwrite the DLLs in the \BIN directory then start IIS. The minute this happens, the CPU spikes to a steady 100% which could last up to 3-4hours on all the servers once the first request comes in for each site. I understand that it goes through a "warm-up" process on the first hit x 650 w3wp.exe processes running = CPU spike. The way we get around this is by restarting the servers.This happens on every deployment. Is this normal?  If not, how could I troubleshoot this issue to find out what is causing this.

Antivirus has the necessary exclusions.
4.jpghi expert

the update service references operation in visual studio
how to do delphi (rad studio )?

how to update service references operation  in delphi?

We host over 600 IIS sites and after a framework deployment by the Web Developers, the CPU goes through the roof after IIS is started. What we would like to do is start IIS, stop all the sites, then start them up in batches (for example, 50 at a time) to see if it helps with controlling the CPU usage. Could someone assist with a powershell script that will start up sites in batches?

Import-Module WebAdministration
Get-ChildItem -Path IIS:\Sites | foreach { Stop-WebSite $_.Name; } "Stops all sites"
I need to get Certificate Info from a PDF Form.  Not sure how to do this with iTextSharp.

Here is some sample code:

        public ActionResult Upload(HttpPostedFileBase file, string Name)

            if (file != null && file.ContentLength > 0)
                    string pdfTemplate = "NewRequest.pdf";
                    byte[] pdfbytes = null;

                    BinaryReader rdr = new BinaryReader(file.InputStream);
                    pdfbytes = rdr.ReadBytes((int)file.ContentLength);
                    PdfReader reader = new PdfReader(pdfbytes);
                    //PdfReader _reader = new PdfReader((byte[])file).ToArray();

                    string t = Name.Trim().Length == 0 ? null : Name;
                    var fields = reader.AcroFields.Fields;
                    var RequestID = reader.AcroFields.GetField("requestId");
                    CultureInfo MyCultureInfo = new CultureInfo("en-US");
                    var OpenDate = reader.AcroFields.GetField("openDate");
                    DateTime? OpenDate2 = null;
                        OpenDate2 = DateTime.ParseExact(OpenDate, "d/M/yyyy h:mm", MyCultureInfo);
                        OpenDate2 = null;
                    var Org = reader.AcroFields.GetField("organization");
                    DateTime? NeedDate = 

Open in new window

I read this article that says the release date of asp.net core 3.0 would be announced at the Microsoft Build conference.

I did not attend the conference.

Anyone know the release date?
What tools are needed for .net mobile device development and where can I find some really good tutorials?

I'm thinking Xamarin, since it's write once, and C#. Does it also allow VB.NET?

Is there a way to force a Control+F5 on a user? We publish our code and the style sheets look horrible until they do a control+F5, but other than putting a message on the screen, how do we trigger the style sheets to update?


I need to install Microsoft .NET Framework 3.5 on all Windows servers and I noted that there are some Windows 2003 are missing that version, they have Microsoft .NET Framework 2.0.

The reason why I need to install it is because a monitoring application required that to work.

My question is: Is there any impact to install it? I mean can this affect the applications already installed in the servers?

I recently upgraded from jQuery 1.11.1 to jQuery 3.0.0 and now  a simple change on a couple of radio buttons no longer works. How can I get this back to working as it should?

    <script type="text/javascript">
       jQuery(document).ready(function () {
            j$('#cmdCreateNewEvent').prop('disabled', 'disabled');

            $('#rdoSameDonor').change(function () {
            $('#rdoDifferentDonor').change(function () {

        function EnableCreateButton() {

Open in new window

We need to convert part of our MS Access DB to a web app.  ASPX or .net.  No experience in web apps.  Ideas?
I am try to take a 1 dimensional array of data and transform it to display in X number of columns each with X number of rows for each page into a datatable to easily display as the sample below shows. I am not sure the best way to do this.

Just to test the example I want 3 columns per page, and each column will contain 3 rows with the sample data below there should be 2 pages with 3 columns and a 4 page will have only 1 col and 1 row of data remaining.

samplearray= "{"100","110","120","130","140","150","160","170","180","190","200","210","220","230","240","250","260","270","280"}"

Example Output:

[Page #1]

[Column #1]     [Column #2]     [Column #3]
100                     130                    160
110                     140                    170
120                     150                    180

[Page #2]

[Column #1]     [Column #2]     [Column #3]
190                     220                     250                    
200                     230                     260                    
210                     240                     270                    

[Page #3]

[Column #1]     [Column #2]     [Column #3]

I have the following code. How can I avoid foreach using linq?

foreach(var number in phoneNumbers)
	foreach(var i in number.key)
		if(students[i].phone == null)
			students[i] = new People { phone = number.Value };
			students[i].phone = number.Value;

Open in new window

please note
Dictionary<string[], string> phoneNumbers
List<People> students
Hi Experts,

I am running on dot net 4.6.1

I have the same problem described in the following question


Please help ASAP,

I'm looking for a bit of hand-holding on setting up, what I thought would be a simple project.
I am using Visual Studio 2017 .Net 4.7.
I've done some coding in c# long ago, but am more comfortable in vb.net.
I had previously done quite a bit of winform development, and only ever dabbled in web dev.  Since it's been so incredibly long ago, I would like to have some guidance on starting this from scratch.

I plan to have multiple progression questions on this and I'll attempt to keep it limited to simple steps throughout.
For the first question on this, however, I need to describe what I'm envisioning:

I will have a user visit this single web page. There would be a title with a button/link to click for more info (detailed instructions located elsewhere in our intranet).
Page load would read a sql database to pull down a list of memberships for this specific user (I do have the working code to accomplish this).
Those results are then placed into a list box (I thought a checkedlistbox would be best).  

The user is then given the following options:
A button, always available, to CREATE.
A button, only available if one, and only one item is selected, to MODIFY.
A button only available if one or more items are selected.  This button should present a confirmation, since this would be a delete process to occur.

I'd like to use bootstrap because I did spend a bit of time learning a bit about it, but I have very little knowledge on how to implement it into my code.
I recently had a pen test and one of the findings was our OWA (exchange 2013) is vulnerable to "Possible SQL Injection". Our pen tester recommends us to download the latest login dialog applet from Microsoft or recompile the web code against the v4.5 or later .NET framework. I am not able to find any download in Microsoft nor can I find any information regarding vulnerability or how to remediate it.

Has anyone encounter this issue before or know how to secure the OWA's logon page from SQL Injection? I read somewhere that it is not recommended to edit Microsoft's code.
Using Framework...
     ASP.NET Regular Web Form

Using Code Behind...
     VB.net & JavaScript & JQuery

My Issue...
I Need VB.code replacement for the following JavaScript Function --
(JavaScript Function may not be Syntactically Correct Since I Slightly modified its structure)
function myFunc(RBG) {
   var rbGrp = RBG; 
   var myVal;
   var radioButtons = document.getElementsByName(rbGrp);
      for (var x = 0; x < radioButtons.length; x ++) {
        if (radioButtons[x].checked) {
	     myVal = radioButtons[x].id);
             return myVal;

Open in new window

This JavaScript Function is PASSED the GROUPNAME of a group of Radio buttons...

It loops thru all the individual radio buttons of that Group of buttons via that GROUPNAME...

and ihen it should return the one radio button that was selected...

I need this in Server Side vb.net code instead of client side JavaScript code...

I have already laid out 35 Groups of Radio buttons each with 2, 3 or 5 individual choices -- already built in my ASP.net form so doing Radio Button List is now past as option

Any Experts have or can create this vb.net code equal to the JS code ??

thanks... CJ
I need the best practices on securing patients records inside the electronic medical record app I am developing. Ground from the database tier up to the presentation tier.
I currently have a getresults() function which returns a dataset . I bind that result to a datagrid . all of this works fine ( see sample below) .

DataSet dataset = getResults(); //retruns a data set

MyDataGrid.DataSource = dataset.Tables[0].DefaultView;

I want to filter the results that is returned from getresults function before I bind it to the DataGrid, and was thinking to use linq ,

var result = getResults();

var filteredResults = from x in result.Tables[0].AsEnumerable()
                                   orderby x.Field<DateTime>("lastUpdated") ascending
                                   select x;

this query works and I get the filteredResults as desired, but now how do I bind this to the DataGrid. Also, how do I take the first 20 , from the result?
This kind of code delete all files in directory if cheked

          If chkDeleteSourceFiles.Checked Then
                For i As Integer = 0 To oFiles.Length - 1
                    Dim sFromFilePath As String = oFiles(i)
                    If IO.File.Exists(sFromFilePath) Then
                        Catch ex As Exception
                            txtOutput.Text += "No se puede borrar " & sFromFilePath &
                             ", " & ex.Message & vbCrLf
                        End Try
                    End If
            End If

Open in new window

That is a mess...
I need if is cheked only delete PDF files.
could you help me ?

I am a lab instructor at my university doing Data modeling and programming languages classes.

I need a roadmap for my students who want to learn .net programming using c# from zero to hero.

Topics, Curriculum, Frameworks, ....

Please help me and my students!

.NET Programming





The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.