|
How to force file download using code in ASP.net.
|
Total Hit (8203) |
Many times we have requirement to popup file download dialogbox instead of user clicking on a link. This little code you can use in your ASPX page. Call the following method from your ASP.net code which should prompt a file download dialogbox in user's browser.
«code LangId=2»Public Sub DownloadF
....Read More |
Rating
|
|
|
Redirecting to the real referrer page during a postback
|
Total Hit (3179) |
Say that you have a page loaded from another page, and that in this page you have a "Save and Return" button that does something and returns to the previous page. For example you may have an Orders page that loads a Details page, where you make some changes and press the button to save the changes a
....Read More |
Rating
|
|
|
Creating a popup calendar control
|
Total Hit (9174) |
Many data entry forms have one or more text fields that the user should fill with a date value. Many sites have a button near these fields that when clicked pops up a new small window with a calendar, to help the user select the date. When the user clicks on a day (rendered as a hyperlink), this pop
....Read More |
Rating
|
|
|
|
|
|
Highlighted Hovering and Anywhere Selecting A DataGrid Row
|
Total Hit (716) |
Recently while working for one of my client I came across a requirement such that:
«LI»DataGrid should not have select button to select a row. This was necessary to save some screen space.
«LI»Still when the user clicks on any of the DataGrid row (on any column), that row should be selected and
....Read More |
Rating
|
|
|
Self Validating Text Box - 2
|
Total Hit (802) |
This article extends self validating Text Box control to other data types and Min and Max value checking.
|
Rating
|
|
|
|
|
Search Engine Optimization Tutorial
|
Total Hit (1480) |
A few years ago, it was for the most part sufficient to incorporate a well optimized title tag and have a few relevant search terms (aka keywords) in the meta tags to get a top 10 ranking. Those days are long gone, and yet in my estimation, over 75% of webmasters still hold on to the notion that sea
....Read More |
Rating
|
|
|
|
|
|
|
|
|
|
Using the CustomValidator Control
|
Total Hit (868) |
Sometimes one of the predetermined types of validation controls such as a RequiredFieldValidator, or a RangeValidator just will not do the job you need done. In this case you need to write a Custom Validator to achieve the desired results.
|
Rating
|
|
|
MS Word 2003 XML Output
|
Total Hit (884) |
How to give a Word output without MS Office Web Components (OWC) on the server.
|
Rating
|
|
|
Detecting the UpTime of Web Server
|
Total Hit (845) |
Sometimes it would be necessary to check how long our web server has been running or if our web server is being restarted too many times. Here we discuss a simple solution for the same.
|
Rating
|
|
|
|
|
How Do I...Use common Regular Expressions?
|
Total Hit (743) |
«b»Social Security Number «/b»
\d{3}-\d{2}-\d{4}
«b»US Phone Number«/b»
((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}
«b»US Postal Code«/b»
\d{5}(-\d{4})?
«b»Internet EMail Address«/b»
[\w-]+@([\w-]+\.)+[\w-]+
«b»Internet URL «/b»
http://([\w-]\.)+[\w-](/[\w- ./?%=]*)?
«b
....Read More |
Rating
|
|
|
|
|
Write a user control?
|
Total Hit (478) |
«LI» Introduction to User Controls
«LI» Exposing User Control Properties
«LI» Encapsulating Events in a User Control
«LI» Creating User Controls Programmatically
«LI» Section Summary
|
Rating
|
|
|
|
|
Action Tags
|
Total Hit (628) |
An approach to encapsulating functionality in server controls, separate from a user interface.
|
Rating
|
|