Pages

Sunday, May 31, 2009

ASP.NET File Uploader with Overwrite Message

This ASP.NET application is a file uploader dialog box that can be called from classic ASP. It is designed for use in an intranet site. The file uploader displays an overwrite warning as a popup or a warning message. The overwritten file is archived with a time stamp appended to the filename. Checking if the file already exists turned out to be the biggest obstacle. The FileExists Java function uses an ActiveX control that causes browser security warnings. The workaround was to access a code-behind routine by calling AJAX Web Services.





Click here for details .....

Roll your own ASP.NET Chart Control

Have you ever wanted to build a custom web control, but lost confidence once you started to navigate the MSDN information ocean? Ever wanted to build a web control only to find out that you don't know where to start and worse yet there are no comprehensive examples available on the internet? If you have faced any or all of these situations, sit back and relax! Throughout this article I will detail the major "gotchas" relating to building a custom web control and deploy it to your web application.



Click here for details ......

Friday, May 29, 2009

Navigation Web User Control

Navigation Web User Control Derived from WebControl (dll). It creates navigations buttons at run time so the user can navigate on the data list or any other controls. The developer can change the alignment and separation text between links or show and hide first, last, previous and next links. This control gets his style from its container the developer just need PageIndexClick event to type his code when the page clicked and set paging count in page load.

Click here for details .....

Thursday, May 28, 2009

Implementing Tab Navigation with ASP.NET 2.0

One of the most basic ways to navigate within an application is by use of a tab control. Tabs are easy to use and users are very familiar with them. There have been many implementations of tab controls for Web applications, but they had often required advanced client-side script that was only supported in a few browsers, or they required extensive and confusing server-side include files. ASP.NET 2.0 provides a few things that make this easier to do with no dependency on functional code. In this article I'll show you how you can use the new features of ASP.NET 2.0 to easily create a tab control for your Web application.

Click here for details .....

Google Maps! AJAX-Style Web Development Using ASP.NET

There are three goals in this article. First, to provide a high-level overview of AJAX-style applications. Second goal is to provide a detailed description of asynchronous callback features of ASP.NET 2.0. Finally, to provide an insight into upcoming enhancements of tools and frameworks for building AJAX-style applications.

Click here for details ......

Wednesday, May 27, 2009

Simple ASP.NET 2.0 Tips and Tricks that You May (or may not) have Heard About

ASP.NET 2.0 is an awesome framework for developing Web applications. If you've worked with it for awhile then that's no secret. It offers some great new features that you can implement with a minimal amount of code. I wanted to start a list of some of the most simple (yet cool) things you could do with it that required little or no C#/VB.NET code. If you have other suggestions add a comment and I'll update the list if the suggestion is a simple task that can be applied easily.

Click here for details ......

Tip/Trick: Url Rewriting with ASP.NET

People often ask for guidance on how they can dynamically "re-write" URLs and/or have the ability to publish cleaner URL end-points within their ASP.NET web applications.

This post post summarizes a few approaches you can take to cleanly map or rewrite URLs with ASP.NET, and have the option to structure the URLs of your application however you want.

Click here for details ......

.Net Framework 4.0: System.Linq.Parallel

.Net Framework 4.0 has parallel computing extensions for LINQ. Previously it was possible to download parallel extensions for LINQ separately from CodePlex. Of course, you can still use these extensions if you have older version that 4.0. I wrote a little, simple and pretty pointless example that illustrates how parallel queries work in .Net Framework 4.0.

Click here for details ......

Thursday, May 21, 2009

CSS Control Adapter Toolkit for ASP.NET 2.0

Tired of having elements rendered by the built-in ASP.NET server controls and wishing you could use a pure CSS solution instead? Read on...

Today we published the CSS Control Adapter Toolkit for ASP.NET. This toolkit provides information about how the ASP.NET 2.0 Control Adapter Architecture works, as well as a set of 5 sample control adapters (with full source that you can optionally tweak/modify) that provide CSS friendly adapters for 5 of the built-in ASP.NET controls (specifically: Menu, TreeView, DetailsView, FormView and DataList).

You can download this release for free from here, and immediately begin using it in your ASP.NET 2.0 sites today.

Click here for details .......

What is a Model View Controller (MVC) Framework?

MVC is a framework methodology that divides an application's implementation into three component roles: models, views, and controllers.

  • "Models" in a MVC based application are the components of the application that are responsible for maintaining state. Often this state is persisted inside a database (for example: we might have a Product class that is used to represent order data from the Products table inside SQL).
  • "Views" in a MVC based application are the components responsible for displaying the application's user interface. Typically this UI is created off of the model data (for example: we might create an Product "Edit" view that surfaces textboxes, dropdowns and checkboxes based on the current state of a Product object).
  • "Controllers" in a MVC based application are the components responsible for handling end user interaction, manipulating the model, and ultimately choosing a view to render to display UI. In a MVC application the view is only about displaying information - it is the controller that handles and responds to user input and interaction.

Click here for details ......

Saturday, May 16, 2009

ASP.NET Ajax Grid and Pager

Today, learn how to create a custom AJAX Grid and Pager with the Microsoft ASP.NET AJAX platform.

Introduction

This article will show you how to create an AJAX Grid and a generic pager, which mimics the built-in GridView control on the client side.

Features

The Control(s) Provides:

  • Able to bind to any web service call that returns an array.
  • A GridView like API on the client side.
  • Able to AutoGenerate Columns based upon the dataSource.
  • Support for Sorting and Paging where developer can spawn his/her own logic.
  • Full VS Design Time Support.
  • Supports Column Drag and Drop.
  • Compatible with all major browsers including IE, Firefox, Opera and Safari.
Visit for more details ......

Create An Ajax Style File Upload

In this post, you will find that how to create Ajax like version of the file upload.

1.


2.


3.


Visit for more details .....

Tuesday, May 12, 2009

Sending attachment with an email from fileupload control

VB.NET

If FileUpload1.HasFile Then

Dim toAddress As String = "you@yourprovider.com"
Dim fromAddress As String = "you@yourprovider.com"
Dim mailServer As String = "smtp.yourprovider.com"

Dim myMailMessage As MailMessage = New MailMessage()

myMailMessage.To.Add(toAddress)
myMailMessage.From = New MailAddress(fromAddress)
myMailMessage.Subject = "Test Message"

Dim fileName As String = Path.GetFileName(FileUpload1.PostedFile.FileName)
Dim myAttachment As New Attachment(FileUpload1.FileContent, fileName)
myMailMessage.Attachments.Add(myAttachment)

Dim mySmtpClient As New SmtpClient(mailServer)

mySmtpClient.Send(myMailMessage)

End If

Sunday, May 10, 2009

Create Dynamic Image with Text

To avoid the spamming and to prevent hacking from your web forms, i am letting you to find out to create dynamic image with text. You can use it as CAPTCHA on your web forms.

Visit the place for details ......

Convert an Excel XLS file to PDF

There are many times when developer needs to convert their files into the another format like excel, pdf, xml, word, etc. The following tip would let you find out that how to convert an excel file into the pdf format. See the below code:

C#

// Saving an XLS file in Aspose.Pdf xml format
Workbook wb = new Workbook();
wb.Open("C:\\book1.xls);
wb.Save("C:\\xls2pdf.xml", FileFormatType.AsposePdf);

// Converting XLS file to PDF through Aspose.Pdf using Aspose.Pdf xml file as a medium
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML("c:\\xls2pdf.xml", null);
pdf.Save("C:\\xls2pdf.pdf");

VB.NET

' Saving an XLS file in Aspose.Pdf xml format
Dim wb as Workbook = new Workbook()
wb.Open("C:\book1.xls)
wb.Save("C:\xls2pdf.xml", FileFormatType.AsposePdf)

' Converting XLS file to PDF through Aspose.Pdf using Aspose.Pdf xml file as a medium
Dim pdf as Aspose.Pdf.Pdf = new Aspose.Pdf.Pdf()
pdf.BindXML("c:\\xls2pdf.xml", null)
pdf.Save("C:\xls2pdf.pdf")

FusionCharts Free v2.1 - Free Flash Charts

FusionCharts Free is a flash charting component that can be used to render data-driven & animated charts for your web applications and presentations.

It is a cross-browser and cross-platform solution that can be used with PHP, Python, Ruby on Rails, ASP, ASP.NET, JSP, ColdFusion, simple HTML pages or even PowerPoint Presentations to deliver interactive and powerful flash charts. You do NOT need to know anything about Flash to use FusionCharts. All you need to know is the language you're programming in.

Click here to get it now ......

Simple NumericTextBox Web custom control

Just a simple textbox control which allows only integer input using client-side javascript code. it also provides a property of type int, so that setting and getting the value of control can be made much easier.

Click here to get it ......

Three Tier Code Generator For ASP.NET

The 3-Tier Code Generator is a wonder tool that will help developers to code within minutes a simple module to add, update records in the table. At the same time it keeps the best practices and industry standards in mind. It exploits the object oriented features of .NET.

Click here for details .....

Saturday, May 9, 2009

DropDown and MultiselectDropDown Controls for ASP.NET


This article discusses about two user controls written in ASP.NET. Working on a project recently, I needed to develop a custom DropDown control with multiselect options in the form of CheckBox. I searched around for something simple, yet useful for my needs, and I wasn't able to find anything, so I developed my own control. Later, I reused the code to create a regular DropDown control (no multiselect checkbox options). The two controls can be merged into one, but I might do that at a later stage. On to the controls.

Click here for details ......

Friday, May 8, 2009

Tuesday, May 5, 2009

Switching Between HTTP and HTTPS Automatically

Let's face it. Providing sensitive information on a Web site is a risk. Many visitors will not give out that kind of data even if they see that the Web site claims security. Many more will certainly not reveal their personal details if the warm-and-fuzzy closed padlock isn't visible in their browser window.

See the What's New section for the latest updates.

Sunday, May 3, 2009

Hierarchical Data Using the GridView Control



This article presents a control which displays hierarchical data using the ASP.NET GridView control. This extension of the GridView control can also be used to display extended data details for a data row.

Click here for details .......

Versions of the .NET Framework and the IIS6 Application Pools

When a new version of any technology appears, there are always new rules to be considered.

As part of my job as a Web Administrator, I used to test the new web technologies on Testing Environment before applying it on the real one. Microsoft has made the .NET Framework starting with Version 1.0 followed by v1.1 and now there are new releases v2.0 and v3.0. Microsoft gave them the ability to run together on the same server at the same time.

Click here for details ......

Saturday, May 2, 2009

ASP.NET AJAX Extender for multicolumn drag and drop


This open source AJAX Web Portal, www.dropthings.com, has an ASP.NET AJAX Extender which provides multi-column drag and drop for widgets. You can see similar drag and drop behavior in commercial AJAX Start Pages like Pageflakes. The Extender allows reordering of content on the same column and drag and drop content between columns. It also supports client-side notification so that you can call a web service and store the position of the content behind the scene without producing (async) postback.

Click here for details .......