News in the Category: ASP.NET Subscribe to the rss of this category.

Total posts: 16193 | Sort by Views | Sort by Hits

Cross page navigation techniques in ASP.NET 1.x and 2.0

Ting-hao Yangs ASP.NET blog, December 15, 2005
Views: 1,730 | Hits 8,009

This article discusses different ASP.Net cross page navigation mechanisms that are available in version 1.x and 2.0 and their corresponding design decisions. Five different mechanism are discussed, in...

.NET Code Snippet Functions

MrDaves (David Yack) Blog!, January 27, 2006
Views: 2,870 | Hits 3,925

During one of my training sessions today I was presenting about Code Snippets and one of the attendees asked a question about being able to do custom functions in a Code Snippet.  I actually hadn...

An ASP.NET 2.0 AutoComplete DropDownList...

DotNetJohn.Com, March 29, 2006
Views: 14,030 | Hits 3,850

In this article I'll show you how to easily create a DropDownList control in ASP.Net 2.0 with Auto-Complete...

Dynamic Loading of User Control with ViewState Preserved (Live Demo)

ASP.NET Daily Articles, November 5, 2005
Views: 10,203 | Hits 3,572

Many Programmers stay away from loading User Control dynamically on the Web Form because of the complexity associated with it's state management and event handling. It is easy to load a User Control d...

Extend the MembershipUser class

Fredrik Norméns Blog, June 22, 2005
Views: 9,849 | Hits 2,719

I have seen and also got several questions about how to extend the MemberhsipUser class with some extra properties. I hope this post can give you some ideas.   As you may all know, the Membership...

Hide a GridView column at runtime

Fredrik Norméns Blog, October 19, 2005
Views: 40,606 | Hits 2,460

I thought I wrote a post about how to hide a GridView column at runtime but didn’t. So I thought you maybe will be interested in a simple example.   To hide a column at runt time you can ho...

Change the PagerTemplate programmatically

Fredrik Norméns Blog, August 31, 2005
Views: 9,917 | Hits 2,375

In an early post I wrote about how to use the PagerTemplate to create your own custom paging layout. This time I will show you how you can do it programmatically. There are two properties that you can...

DropDownList in a FormView control

mikes web log, February 8, 2006
Views: 9,530 | Hits 2,062

Another in an apparently relentless series of posts about trying to see how much can be done with the new data controls in ASP.NET 2.0 without writing code. It's pretty easy to take advantage of the c...

Creating print preview page dynamically in ASP.NET

ASP.NET Daily Articles, May 7, 2006
Views: 10,944 | Hits 2,059

An article on creating print preview page dynamically by javascript code. You do not need to make any aspx page to view print preview and you can also print any portion of the print page...

Multi-column dropdown combobox - an ASP.NET 2.0 server control

The Code Project Latest Articles, February 10, 2006
Views: 10,694 | Hits 1,844

Multi-column dropdown combobox - an ASP.NET 2.0 server control....

Event Calendar [ ASP.NET 2.0 / C# ]

The Code Project Latest Articles, February 11, 2007
Views: 9,134 | Hits 1,563

Basic Calendar Control of ASP.NET 2.0 can be extended to cater one of most frequent requirement of tracking events, project milestones, history, schedule etc....

A Simple ASP.NET Tab Control Using the MultiView control

The Code Project Latest Articles, February 22, 2006
Views: 8,518 | Hits 1,528

A simple tab control using the ASP.NET MultiView and Menu controls....

Using MailDefinition object to send templated emails in ASP.Net 2.0

Bigyan Rajbhandari, July 26, 2006
Views: 6,950 | Hits 1,525

Sending emails using Asp.Net has never been as easier and manageable than with introduction of System.Net.Mail in ASP.Net 2.0. Though it always has been relatively easy to create a MailMessage and sen...

Build an ASP.NET Session Timeout Redirect Control

ASP.NET Daily Articles, January 3, 2006
Views: 7,394 | Hits 1,508

It is often important for the business logic of an ASP.NET site to know for a particular request if the users session information is valid (e.g., a timeout has not occurred). Without this technique it...

//TODONT: Use a Windows Service just to run a scheduled process

JonGalloway.ToString(), October 24, 2005
Views: 7,044 | Hits 1,414

A common requirement in business application is a scheduled process - call a webservice, process the data, and FTP the results to a business partner, for instance. Developers kick around possible solu...

Removing diacritics (accents) from strings

Fabrice's weblog, October 31, 2006
Views: 6,565 | Hits 1,375

It's often useful to remove diacritic marks (often called accent marks) from characters. You know: tilde, cédille, umlaut and friends. This means 'é' becomes 'e', ...

Adding Rendering with SetRenderMethodDelegate() - aeh, sort of

Rick Strahls WebLog, June 23, 2006
Views: 8,502 | Hits 1,333

I stumbled onto something I didn’t know before in ASP.NET control rendering which is bound to prove useful in some scenarios.  The Control class has a SetRenderMethodDelegate method that al...

WCF Coding Practices: Proxy vs. ChannelFactory<T>

dasBlonde, October 2, 2005
Views: 7,480 | Hits 1,303

I thought I'd share this observation in the interest of coding practices for the WCF. For client applications invoking services, you'll see lots of samples already out there that us...

Simplified ASP.NET Popup Windows With Return Values

ASP.NET Daily Articles, January 27, 2006
Views: 6,141 | Hits 1,296

We are revisiting the subject of opening a child window and getting multiple return values to the parent page to show what could likely be the most simple implementation. The nice thing about this is ...

JavaScript HtmlDecode

JohnPapa.net, February 10, 2006
Views: 17,103 | Hits 1,293

I lost my function! Its a good thing I found a nice snippet of javascript code while surfing around tonight. Its an oldie but goodie that decodes HTML using javascript. Thanks to Andy Oakley for ...

Response.End() behavior change in ASP.NET 2.0

Rick Strahls WebLog, November 4, 2005
Views: 7,669 | Hits 1,251

 Here’s a cool new behavior in ASP.NET 2.0: Response.End() no longer kills post Application events! In 1.1 if you called Response.End() ASP.NET effectively bypassed the rest of the event pi...

Google Maps Control for ASP.NET 2.0

ScottGus Blog, January 22, 2006
Views: 6,300 | Hits 1,237

I found this article recently which I thought was pretty cool. It describes how to build and use an ASP.NET Server Control that makes Google Map integration easy within ASP.NET applications: Hope thi...

eBook 51 Tips, Tricks and Recipes with jQuery and ASP.NET Controls

MS-Joe, October 29, 2009
Views: 8,832 | Hits 1,158

 I found this cool eBook and wanted to share it with you all since jQuery is. more and more, become a common part of the ASP.NET Development experience. The book includes… · 51 Tip...

ASP.NET 2.0 - Enter Key - Default Submit Button

GotDotNet: New resources, April 12, 2006
Views: 8,429 | Hits 1,147

This article discusses about handling the Enter Key in ASP.NET 2.0 using its defaultbutton property....

Sharepoint 2007: List Events Practical Example: Creating a rigged survey!!

Sahil Malik - blah.winsmarts.com, July 30, 2006
Views: 5,505 | Hits 1,117

Sharepoint 2007 supports various events on Lists. These events can be broadly classified into two categories - Synchronous and Asynchronous. Synchronous events such as "ItemAdding" or "ItemUpdating...

Customizing the GridView Pager

mikes web log, January 13, 2006
Views: 7,913 | Hits 1,107

I mentioned that I was using a GridView control with paging, and I wanted to add a "Last" link to it that would always jump to the last page. This was one a them learning experiences.Years ago I att...

No more Meta Refresh Tags

Rick Strahls WebLog, August 4, 2006
Views: 6,823 | Hits 1,091

From time to time I have pages that need to auto-refresh or more commonly a page that automatically needs to go to another page after showing a short informational message. In the past I’ve alwa...

Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack

Rick Strahls WebLog, August 10, 2006
Views: 18,334 | Hits 1,054

All of a sudden I’m getting this error message in my inbound Web Service that’s been working fine for several days:   Unable to evaluate expression because the code is optimized or a ...

How to Get Window NT Logged User Name Using ASP.NET

The Code Project Latest Articles, January 4, 2006
Views: 6,396 | Hits 1,029

Article explains How to get windows user name using ASP.NET...

Change cell color in gridview depending the inner value

Hannes Preishuber, January 9, 2006
Views: 9,478 | Hits 1,020

As long time reader ;-) of my blog you know: i am fan of the declarative ASP.NET way ( especialy 2.0) But sometimes i reach the limits. This is e.g. for changing font color in a cell if a value reache...

Recreate Dynamic Controls On Postback Without Requerying Database

ASP.NET Daily Articles, July 13, 2005
Views: 5,412 | Hits 1,016

Learn how to recreate database driven dynamic server controls on Page PostBack by using the Request.Form collection instead of requerying the database. Includes samples for extending an ASP.NET cont...

Populating TreeView Using Database

ASP.NET Daily Articles, July 21, 2006
Views: 7,951 | Hits 1,012

ASP.NET 2.0 came out with tons of new controls which helps the developer to speed development. Among all the new controls TreeView control stands out as one of the most important and useful control. T...

Replacing deprecated System.Net.WebProxy.GetDefaultProxy() in .NET 2.0

Rick Strahls WebLog, July 11, 2005
Views: 12,799 | Hits 1,008

I’m in the final stages of getting my West Wind Web Store app ported over to 2.0 by getting rid of all of the obsolete function calls and other non fatal messages. Frankly most of these depreca...

SQL Reporting Services - CSS fix for Firefox

JonGalloway.ToString(), September 2, 2006
Views: 8,218 | Hits 979

SSRS 2005 is pretty slick, but the HTML is pretty ugly. Reports are displayed in an IFRAME that's deep in nested table land, and the IFRAME's height setting only works in IE. The end result is...

12 ASP.NET MVC Best Practices

Code Climber, October 27, 2009
Views: 5,921 | Hits 958

Last week I held two presentations about ASP.NET MVC for the new-born DotNetRomaCeSt user group in Rome. And one of them was about what I consider to be ASP.NET MVC Best Practices. The presentation wa...

ASP.NET TriState CheckBox made easy

The Code Project Latest Articles, August 23, 2007
Views: 5,205 | Hits 953

An approach to ASP.NET Tristate Checkboxes using C# and javascript...

Custom SiteMap providers in ASP.NET 2.0

MSDN: Visual C#, August 26, 2005
Views: 5,384 | Hits 937

Presents an overview of the provider model in Microsoft ASP.NET 2.0, and presents a custom implementation of the SiteMapProvider, which is used by controls such as the Breadcrumb and Treeview when ren...

Cascading DropDownList controls -- Part 2

mikes web log, October 25, 2006
Views: 4,865 | Hits 934

The other day I was playing around with how to do cascading drop-down lists using only declarative markup. But as I said then, that works only if you have a straightforward scenario, as in two standal...

You should NOT use ASP.NET MVC if. . .

Jeffrey Palermo, April 26, 2009
Views: 6,916 | Hits 926

You are not very comfortable with polymorphism You aren’t willing to build on top of the framework You rely on 3rd party vendor controls for lots of the UI You are adverse to us...

Handling ASP.NET custom Control PostData in OnInit or IPostBackDataHandler

Rick Strahls WebLog, July 26, 2006
Views: 4,321 | Hits 911

Here’s a basic question for control development. If I have a control that has maybe a single POST value that it needs to retrieve, is it safe to use code like this:   protected override voi...

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Rick Strahls WebLog, May 27, 2006
Views: 10,903 | Hits 910

Bummer. I've been mucking around with some more custom databinding that integrates validation into the databinding process. One of the things the control does is automatically add 'notification' icon...

BC30451: Name 'Config' is not declared

Shaun Walker, November 14, 2005
Views: 7,432 | Hits 900

One of the most common errors reported in the ASP.NET forums is the infamous "BC30451: Name 'Config' is not declared" warning. Eg Description: An error occurred during the compilation of a resourc...

ASP.NET Dropdownlist - "Cannot have multiple items selected in a DropDownList."

GotDotNet: New resources, May 3, 2006
Views: 5,943 | Hits 895

This article discusses about resolving the error that occurs when populating a Dropdownlist and making a particular value selected....

Getting Values and Keys out of a Hashtable

Rick Strahls WebLog, January 5, 2006
Views: 4,496 | Hits 892

This sounds silly but I was doing looping through a Hashtable and scratching my head on how to get the KEYS from the table when using foreach. If you ever look at the various ICollection or IDictionar...

Taking an ASP.NET application offline

Rick Strahls WebLog, July 12, 2006
Views: 4,510 | Hits 891

Sometimes it’s necessary to take an ASP.NET application offline. A common scenario is when you need to update the database or running some mainteanance updates that might put the application or...

ASP.NET 2.0 Data Binding Tips - How to avoid Eval()

dasBlonde, August 22, 2005
Views: 5,485 | Hits 887

Sure, the syntax got easier. Instead of the cumbersome: #DataBinder.Eval(Container.DataItem, "url") %> We get to save some strokes and remove the entire confusion around what t...

Tip/Trick: Show Detailed ASP.NET Error Messages to Developers (and only to Developers)

ScottGus Blog, August 12, 2006
Views: 5,397 | Hits 884

Problem: You are developing/maintaining an ASP.NET web-site, and would like the ability to conditionally show/hide runtime error messages depending on who the user visiting the site is.For a normal us...

Understanding the different generic collections in .NET (List<T>, BindingList<T>, Collection<T>)

ISerializable, July 18, 2006
Views: 5,595 | Hits 882

Bill McCarthy writes:Validation,Factory methods,AddRange capabilities,Custom serialisation,Event hooking/raisingDelayed fetching (caching)"List(Of)  : List<T>Collection(Of) :  Col...

Screen Scraping Web Forms Content with System.Net.WebClient

Brendan Tompkins, May 18, 2005
Views: 5,004 | Hits 876

Sometimes you may have the need for accessing html web content from within an application.  Why would you need to do this  Well, suppose  you need to have a Windows Service pe...

Create a TabControl with the Menu control and MultiView control

Fredrik Norméns Blog, November 2, 2005
Views: 5,377 | Hits 870

When I was in the Microsoft MSDN Live! ASP.Net 2.0 Event’s ”ask-the-expert” panel, I got the question if there is a similar TabControl to ASP.Net as it is to the Windows Forms. The a...