.net

SCRIBEFIREzRn3trPlhDSCRIBEFIRE

SCRIBEFIRETpNbgSvESCRIBEFIRE

ASP.NET Client-side Validation & Confirmation Popup

The other day I was working on a project for our client. They wanted some client-side validation to be done on the page to avoid postbacks, since postbacks could take REALLY long on a slow connection. They also wanted a javascript confirmation popup before processing the form.

In the page, I had a few RequiredFieldValidators, as well as some RegularExpressionValidators. Initially, I modified the submit button to include the confirmation message, and check whether the page is valid or not. Below is a snippet of the ASP.NET button that I had in my page.

 

Request Filtering module is configured to deny a request that exceeds request content length

It's been a while since I last wrote on this blog. Been busy with work + real life. Anyway, here's what I encountered a couple of days ago.

We were working on a module that would allow users to upload files to the server (the file is stored in SQL Server as VARBINARY). The maximum allowed file size to be uploaded was made configurable through web.config file. We set those to be 50mb. When we tried to upload a 36mb file, IIS7 gave us this error:

An error occurred while parsing EntityName. Line X, position Y.

So today I was at client's site providing Technical Support and finalizing Enhancement Project that was done for the past few months. One of the task was for me to develop a Windows Service, which will grab the user's updated profile from a table in SQL Server 2000 and submit them to a Web Service developed by another vendor. I am using SOAP in my Windows Service to communicate with the Web Service on the other side. Since SOAP is using an XML format in their request and response, I had to grab the data from the SQL Server and build a SOAP Request XML before sending it to the Web Service.

Syndicate content