Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Articles & Samples > ASP.Net > Tips & Tricks


Search:
What's New - What's Hot
How to Build a Custom XML Configuration (NOT web.config) for ASP.NET  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Huobazi(Marble.M.Wu)      Rating:  
Read Reviews | Write Review |  Your Rating: 

A frequently asked question in the ASP.NET community is 'How to Build a Custom XML Configuration for ASP.NET' or 'How to use my own config files in ASP.NET'. Today let's do it together.

If you want to use your custom config settings, you can inherit the IConfigurationSectionHandler if your .NET version is 1.x. You can also inherit the ConfigurationSection if your .NET version is 2.0....

Serve Customized .ISO files from ASP.NET  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: festive_ken      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article describes how, using the DiscUtils library from CodePlex, you can serve up customized ISO files from a website....

Avoid Hidden Controls - ASP.NET  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: sambasivam elayaraja      Rating:  
Read Reviews | Write Review |  Your Rating: 

Web Application is stateless. To maintain the state of the page, we have many solutions like query string, session, hidden controls and more.

Hidden controls are primarily used to keep some kind of key value pairs for the page. To maintain multiple key value pairs, we need to have multiple hidden controls on the page and hidden control name will be used as key. Basically the concept behind the hidden control is sharing the values between server and client....

Efficient Server-Side View State Persistence  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: datacop      Rating:  
Read Reviews | Write Review |  Your Rating: 

View State is a mechanism employed by ASP.NET web pages to persist the state of the page itself, individual controls, objects, and data that are housed on that particular ASP.NET web page. View State is a double edged sword in that using it properly allows the developer to build full and robust web applications that seem to overcome the stateless nature of the web....

Simple MessageBox functionality in ASP.NET  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Lee Gunn      Rating:  
Read Reviews | Write Review |  Your Rating: 

When moving from Windows Forms to ASP.NET Web Forms, an API that may be missed is that offered by the System.Windows.Forms.MessageBox Class. Sometimes when developing web forms the application may wish to inform the user of a successful or, god forbid, an unsuccessful operation. An effective way to communicate an important message to the user is through the use a MessageBox or, with respect to web programming, a JavaScript "alert"....

How to access MasterPage ScriptManager from a Content Page?  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: www.AspDotNetFaq.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

You probably know that each ASP.NET Ajax page MUST have ONLY ONE ScriptManager control.
No more, no less....

How to control ASP.NET Validator Controls Client Side validation from JavaScript  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: www.AspDotNetFaq.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

Recently I needed to disable some ASP.NET RequiredFieldValidator controls on one page depending on user input.
This is trivial you say. But the problem was that this needed to occur instantly on Client Side based on the state of one CheckBox control and not after a full page PostBack....

How to set input focus to a control in ASP.NET WebForm after Page Loads?  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: www.AspDotNetFaq.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

The first thing that comes to ones mind when thinking on how to solve this is - JavaScript.

And off course, that IS THE WAY TO GO, but why making your hands dirty writing client side scripts, embedding them in your Page HTML code, and testing on different browsers/version, when there is cleaner way of doing this?...

Fun ASP.NET Whidbey Tip/Trick: DataBinding to Generics  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: ScottGu      Rating:  
Read Reviews | Write Review |  Your Rating: 

One of the great new features in Whidbey are "Generics" -- which basically provide a mechanism that enables developers to build classes whose signature and internal datatypes can be templatized.

For example, rather than use an ArrayList (which is a collection of type Object), or force developers to create their own strongly typed list collection class (ie: the OrderCollection class) -- developers using Whidbey can use the new List class implemented within the System.Collections.Generic na...

How To Change ASP.NET Session Timeout  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Bean Software.      Rating:  
Read Reviews | Write Review |  Your Rating: 

To preserve web server's resources, session expires after certain time of inactivity. Inactivity is considered as time between two consecutive requests from same visitor. By default, ASP.NET session will expire after 20 minutes if visitor doesn't visit any new page. If visitor makes new request, session timer is restarted. But, if there are no new requests, ASP.NET will suppose that visitor is leaved website. When this happens, all session data related to that visitor are deleted from server's m...

How to send a test email message using Telnet  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Pete Mourfield      Rating:  
Read Reviews | Write Review |  Your Rating: 

Occasionally I’ve had to troubleshoot sending email messages to a particular SMTP server by simulating a mail client (or .NET mail code) by using the telnet client. Here’s how I do it on Windows:...

How to detect browser close when browser [X] is clicked ?  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Abhijit Jana      Rating:  
Read Reviews | Write Review |  Your Rating: 

Some times we need to detect the Browser Close to perform some operation before quiting from application. Here is a simple way....

How to get the HTML source code from an editable Iframe, on the server.  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Hugo Flores      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are some times when you want to obtain the HTML source code from an editable Iframe, on the server side of the world, and this article gives a very simple example of that....

How to Setup IIS 6.0 on Windows 7 to Allow Classic ASP Sites to Run  Version: 0.00     Price: $0.00  
Total Hits: 19  |  Today: 0Author: butchzn      Rating:  
Read Reviews | Write Review |  Your Rating: 

By default, Classic ASP sites will not run in IIS 7.5 on Windows 7 because of it being on the 64 bit platform and Classic ASP built to run on 32 bit.

I encountered a problem with a Classic ASP website that I run off my localhost which makes use of a Microsoft Access Database. In most cases, ASP is not setup by default with IIS 7.5. This page will give you the 3 steps that I followed to set this up and get my site up and running again....

SendMail 101 - How to send e-mails over SMTP (C# and ASP.NET)  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: eightfour      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article I will show you how easy it is to create your own mailer. This sample is for beginners and provides just one To:, Cc: and Bcc: - there is also no parser for the From: - TextBox, so you don't have to use white spaces for the From-Name....

How to change Web Page Background Image from FileUpload Control  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: debasish banik      Rating:  
Read Reviews | Write Review |  Your Rating: 

This topic will guide you on how to change the background image of any asp.net web page by using a file upload control....

ASP.Net MVC - Multi Form and Multi Submit Button Handling  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Navnath_Kale      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is inspired by the blog that showed excelled approach for using ActionNameSelector attribute. I have tried to take this approach little further to support multiple forms and multiple submit buttons without providing any hardcoded value to the attribute but just by specifying name of the form and button this action intended to handle. This makes sense when you don’t want to specify any Value directly inside code, as in case of localization when Value of buttons is not fixed....

How to Upload Files in ASP.NET  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: John Arcadella      Rating:  
Read Reviews | Write Review |  Your Rating: 

ASP.NET 4.0 comes with a FileUpload control that allows you to send a file from your computer to a Web server. The file to be uploaded is submitted to the server as part of the browser request during postback. After the file has completed uploading, you can manage the file in your code....

How To Create Web Server Controls with Smart Tags  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Simon Pickersgill      Rating:  
Read Reviews | Write Review |  Your Rating: 

For the sake of this blog I will assume that you know and understand the differences between web user controls and web server controls. This blog concentrates on the latter and how you can create server controls that will present the developer with intuitive and helpful tools at design time for setting the basic options of the control....

Find Text Inside Gridivew Cell  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: prashant chalise      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is used to demonstrate to the user how to get the text present on TableCell inside a GridView. The basic idea is bind your datavalue inside a server side control and finally search for the control and get text from it. The process I have shown is also for a case when a particular column is hidden....


1  2  3  4  5  6  7  8  9  10  Next >> 


Disclaimer - Privacy
© 2002-2012 DevASP.net