Browse by Tags
All Tags »
Miscellaneous »
DEV »
ASP.NET (
RSS)
Web Platform Installer – Web Installation on Steroids One of the most annoying things that I’m sometimes get stuck with is to install my machine with the latest components. Trying to grab all the installation packages for every application or library that I need can be a very painful thing and also consumes a lot of time. This is the reason that a tool like Web Platform Installer was very welcome to my arsenal of tools. In the post I’ll describe what is the Web Platform Installer and show a scenario...
Discover which Control Raised a PostBack Yesterday I needed a solution for an annoying problem. I have some buttons on a ASP.NET web form and I need to know which button raised the postback not in the event itself but in the page load event. This post will show a way to solve this conundrum. Discover which Control Raised a PostBack When we use ASP.NET and we have ASP buttons on the page if we want to do something before their postback event happen we need to discover whether they raised a postback...
Error CS0029: Cannot implicitly convert type Using WSDL Tool Today I was asked by one of developers I work with to check an error he got after he generated a proxy class with the wsdl.exe tool from a third party wsdl he got. The error was generated in runtime when he tried to use the generated class and it was something like: Unable to generate a temporary class (result=1). error CS0029: Cannot implicitly convert type 'A' to 'A[]' After searching in the internet I found that there...
Back to Basics – How to Invoke Web Methods from a Remote Machine I’ve been asked today how to enable invocation of WebMethods of an asmx web service from a remote machine for testing. The post holds the answer. How to Invoke Web Methods from a Remote Machine? Sometimes we want to test our asmx web service not from localhost but from a remote machine . Trying to open the test form of the web service from a remote machine will show the following message: “ The test form is only available for requests...
Quick Tip – Adding Business Validation Messages to ValidationSummary Two days ago I was asked how to insert business validation messages into a ValidationSummary control. The post is the answer I gave to the person who asked me. The Problem We have a web form that is doing input validation and output the errors inside a ValidationSummary control. Since ValidationSummary shows a summary of all validation errors from ASP.NET validators how can we add business validations which are part of the business...
Building a Simple Iframe Custom Control In today’s post I’m going to explain how to build a simple custom control – in my case it’s going to be an Iframe custom control . What is an Iframe? Iframes are a web page elements that create an inline frame which contains another document or web page. Iframes load another html document within their <iframe> tags . I don’t recommend the use of Iframes because they are bad for search engine optimizations but sometimes it is proper to use them. Building...
The Benefits of Code Review Two days ago, I reviewed a code of one of SRL’s employees as a part of his ASP.NET training. The employee got a training ASP.NET tutorial that I wrote for SRL and implemented a solution. The tutorial gives high level details of what the trainee need to implement and the trainee need to implement all the solution parts by himself/herself. So, why to bother and review a trainee’s code? why to bother to review code at all? In this post I’ll try to answer these questions...