Browse by Tags

All Tags » C# » ASP.NET (RSS)
The virtues of a Web API Help Page were extolled in a prior post . That prior post demonstrated the "out of the box" functionality of the Microsoft ASP.NET Web API Help Page. This post extends that functionality to include the XML comments from...
with no comments
Filed under: , , , ,
If your ASP.NET Web API service is on the 'net and no one is around to explain it, does it provide a service? Unlike no one hearing the tree falling in the woods, this question is more than a philosophical thought experiment. It could be a big issue...
1 comment(s)
Filed under: , , , ,
There is nothing perfect in life, not even an ASP.NET Web API service. The service may not understand the provided parameters, or may not find the requested data, or may have trouble connecting to the database. Whatever the issue, if the service cannot...
with no comments
Filed under: , , , ,
An ASP.NET Web API service provides support for many different types of client applications. One such client is a JavaScript application. This post provides a very simple JavaScript client you can use to test your Web API service. [See this prior post...
3 comment(s)
Filed under: , , , ,
Internet Explorer 9 allows you to see the HTTP request and response information using the F12 developer tools. This can be useful when debugging or testing your ASP.NET Web API service. [See this prior post for an introduction to building an ASP.NET Web...
5 comment(s)
Filed under: , , , ,
This post demonstrates how to use the ASP.NET Web API to access plain old custom objects (POCO) and build a service for a line of business application. No Entity Framework (EF). The Web API is a new easy-to-use framework that allows you to build a service...
I had an ASP.NET page with two UpdatePanel controls. I wanted to handle the page refresh differently depending on whether the user clicked on the button in the first UpdatePanel or whether the click was on the button in the second UpdatePanel. After a...
with no comments
Filed under: , , , ,
This post provides some tips for styling the GridView control. The prior post here demonstrates how to use the GridView with your business objects. This post builds upon that example and demonstrates how to style a GridView. Use these techniques any time...
3 comment(s)
Filed under: , , , ,
I have been giving much thought to ASP.NET and Silverlight menus of late. While doing research on existing sites and how they are handling menus, I came across the concept of a "mega menu". A mega menu is basically a drop down menu that contains...
5 comment(s)
Filed under: , , , ,
The ASP.NET ListBox does not display a horizontal scroll bar by default, which can be a problem if any of your list items are too long to fit. One solution to this problem is to use a tooltip. As the user moves the mouse over the ListBox entries, the...
17 comment(s)
Filed under: , , , ,
This one is in the category of obvious once you know how to do it. But having done Silverlight of late, I could not recall how to turn on the scrollbar in a ASP.NET ListBox. There is no scrollbar property of any kind. A bit of "guess and check"...
with no comments
Filed under: , , , ,
Once I had my ASP.NET GridView in place ( see this prior post ), the next thing I wanted to do was select a row and go to a review/edit page. But I didn't want to add the "Select" or "Edit" buttons. It seemed more natural for the...
31 comment(s)
Filed under: , , , ,
In your ASP.NET application, you may want to allow a user to view some additional information without leaving the page that they are on. For example, you may want to display the current window and show some help text in a new window. Or you may want to...
3 comment(s)
Filed under: , , , ,
Most ASP.NET GridView control examples demonstrate using the GridView with a SQLDataSource. But in some cases, you may want to use your own business objects instead. One way to achieve this goal is to use the ObjectDataSource as shown in MSDN here . Another...
8 comment(s)
Filed under: , , , ,
Most ASP.NET best practice guides recommend laying out pages using Div tags instead of Tables for better performance and control. With that in mind, how do you align multiple text strings in a single row? For example, a title bar on a section of an ASP...
8 comment(s)
Filed under: , , , ,
I just wanted to set focus to a TextBox on a modal dialog created using the ModalPopupExtender. How hard can it be? As a Physics and Math major, I spent my student years using logic to attack problems and solve puzzles. So I was a little concerned when...
6 comment(s)
Filed under: , , , ,
In my last post , I demonstrated how to build a modal dialog using the AJAX control in ASP.NET. As soon as you add validation to your modal dialog you will find the same issue that I did: Cancelling the dialog does not clear the content or validation...
with no comments
Filed under: , , ,
There are often times when your Web design includes a modal dialog. For example:  a login form, a dialog for entering basic information, a search form, or a data entry form. This post covers how to build a modal dialog in ASP.NET. There are several...
3 comment(s)
Filed under: , , , ,
Creating nice looking buttons for ASP.NET is still in the category of "I can't believe it is STILL this hard". As more and more normal people use great looking Web sites, Silverlight apps and even their IPhones, they experience some really...
3 comment(s)
Filed under: , , , ,
My first Xaml/Silverlight post was on gradients, it seems only right that my first ASP.NET post should cover the same topic. I started Web development in the 90's using VB 5/6 and classic ASP and learned all about HTML, CSS, Javascript, DOM, XML,...
4 comment(s)
Filed under: , , , ,