Quantcast
Channel: port135.com
Browsing all 306 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How does HTTP Redirection in IIS work?

If you are hosting a web site in IIS and want to redirect it to an URL without much effort, “HTTP Redirect” is the feature you’re looking for. HTTP Redirect module in IIS   It’s pretty straightforward....

View Article


Image may be NSFW.
Clik here to view.

A summary of IIS versions

A little summary table for IIS versions and operating systems in which they are included. Please note that there is no IIS 9. Microsoft has skipped the number 9 just like jumping on Windows 10 from...

View Article


Image may be NSFW.
Clik here to view.

How to show detailed error messages on client browser (Classic ASP)

If you are (still) developing with Classic ASP, you might have noticed how hard it is to debug your applications. Classic ASP has its own settings which are different than the ones .NET has. A generic...

View Article

Image may be NSFW.
Clik here to view.

Solved: “This item cannot be added because its destination path is cloaked.”

You may run into this error message while trying to add a project to Team Foundation Server: This item cannot be added because its destination path is cloaked. Resolution The reason you are getting...

View Article

Image may be NSFW.
Clik here to view.

Solved: “Cannot execute a program. The command being executed was...

When you publish your ASP.NET project to a hosting account such as GoDaddy, you may run into the issue below. This issue may occur even though your code works fine in localhost. Server Error in ‘/’...

View Article


Image may be NSFW.
Clik here to view.

These two operators can make your life easier: null-coalescing and ternary...

Null-coalescing operator (??) The ?? operator is called the null-coalescing operator. It returns the left-hand operand if the operand is not null; otherwise it returns the right hand operand....

View Article

Image may be NSFW.
Clik here to view.

How to encrypt query strings in Classic ASP (VBScript) and JavaScript

Sending variables via URLs can be very dangerous if some sensitive data needs to be transferred between your pages. You may want to encrypt your variables and their values. By using these simple...

View Article

Image may be NSFW.
Clik here to view.

How to clear all text fields in an ASP.NET page using JavaScript

Let’s say you have 3 textboxes in your page. You want to remove their contents by clicking a button. Here is your front-end code: <asp:TextBox ID="txtOldPassword" MaxLength="30" runat="server"...

View Article


Image may be NSFW.
Clik here to view.

How to disable caching in ASP.NET

You may want to disable caching in your web application for different reasons. One reason could be preventing sensitive data to be stored in client machine. Another reason is that giving users the...

View Article


Image may be NSFW.
Clik here to view.

How to protect your ASP.NET WebForms application against CSRF (Cross-Site...

It’s important to defend your ASP.NET application against CSRF attacks. Otherwise, your users may perform unwanted data changes in their accounts without even knowing it. This data change could be a...

View Article

Image may be NSFW.
Clik here to view.

How to remove server data from response headers of your ASP.NET application?

The less you give to hackers, the safer your web application is. Hiding the product, technology, and version information of your server is one big step towards narrowing the attack surface of your...

View Article

Image may be NSFW.
Clik here to view.

Best practices for session state and cookies in ASP.NET application

Session state best practices: Reconfigure the default session id name in order to obfuscate the true meaning of the cookie value. In the case of ASP.NET, the default name is ASP.NET_SessionId. This...

View Article

Image may be NSFW.
Clik here to view.

Stolen laptop: Toshiba Satellite E45-B (Serial 6E096766S)

This laptop was stolen on March 12, 2016 from a car in Washington DC. If anyone has any information about the thief, please contact reportlaptopthief@gmail.com. Accurate information that leads...

View Article


Image may be NSFW.
Clik here to view.

How to validate user input by using RegularExpressionValidator in ASP.NET

Here is an easy way to check user inputs in ASP.NET: RegularExpressionValidator control. You can compare the input with the regular expression you provide and show users corresponding validation...

View Article

Image may be NSFW.
Clik here to view.

How to prevent XSS (Cross Site Scripting) attacks in ASP.NET applications

Thanks to built-in features of .NET Framework, it’s easier than ever to protect your applications against XSS attacks. I’m explaining simple steps to avoid this vulnerability. What is XSS (Cross Site...

View Article


Image may be NSFW.
Clik here to view.

How to backup all files from your Windows Phone to your computer?

OneDrive or other cloud solutions sync your Camera Roll. That’s great but how about other folders such as WhatsApp photos or Saved Pictures? Connecting the USB cable and using Photos application to...

View Article

Image may be NSFW.
Clik here to view.

Solved: “The resource object with key ‘X’ was not found”

You may run into the error below when you use a WebResource file in your ASP.NET project. . Server Error in ‘/UMregistration’ Application. Parser Error Description: An error occurred during the parsing...

View Article


Image may be NSFW.
Clik here to view.

Solved: Eclipse error “Target runtime Apache Tomcat v7.0 is not defined”

You may run into this issue when you try to compile your JSP project: Target runtime Apache Tomcat v7.0 is not defined Faceted Project Problem Solution Make sure to install correct Apache Tomcat...

View Article

Image may be NSFW.
Clik here to view.

Solved: Exception in thread “main” java.lang.NoClassDefFoundError:...

A missing Java class may cause the issue below when you try to compile your project in Eclipse. A Java Exception has occured Exception in thread “main” java.lang.NoClassDefFoundError:...

View Article

Image may be NSFW.
Clik here to view.

Solved: “Telerik.Web.UI. GridGroupByException: Expression cannot be null or...

This issue may come out when you try to group table by a certain column in Telerik RadGrid: Server Error in ‘/’ Application. Expression cannot be null or empty Description: An unhandled exception...

View Article
Browsing all 306 articles
Browse latest View live