Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Search the Tips
Tip Bank > .NET > ASP.NET

ASP.NET - Page 4

61-80 of 105     Previous     Next
Use Cookieless Sessions with Care
by Jaya Nehru Kumar
If you're going to employ cookieless Sessions, remember to use relative path URLs when linking between the pages of the Web site.
Use CausesValidation to Prevent Unwanted Validation Checks
by Jaya Nehru Kumar
Setting CausesValidation=False to the appropriate control prevents those pesky validation checks that occur for every postback.
Make an IIS Server Recognize ASP.NET Web Pages
by Jaya Nehru Kumar
IIS will not recognize ASP.NET pages if it's been installed after .NET. Learn a quick workaround for this bug.
Call a Function or Subroutine with Its String Name Using the Invoke Method
by Parthasarathy Mandayam
While the VB6 function CallByName still works in ASP.NET, you can now also use the Invoke method of the MethodInfo class to perform the same tasks. Find out how.
Use XSLT to Create an ASP.NET Page with ASP.NET Server Controls
by Martin Moser
This tip explains how to use XSLT to dynamically create an ASP.NET page containing ASP.NET Server controls.
Use Page Tracing to Obtain Information About Your Executing Web Page
by Parthasarathy Mandayam
Learn how to use page tracing in place of writing inline Response.Write statements to debug your ASP.NET pages.
Create Rollover Graphics in ASPX Pages
by David Derf
This tip shows you how to create rollover graphics in .aspx pages using the ASP.NET Hyperlink Web UI control.
Check All CheckBoxes in an ASP.NET DataGrid Using a Single CheckBox
by Greg Dobbs
Debug an ASP Project with Visual Studio .NET in Windows 2000
by Timm Rebitzki
ShowMessageBox - Showing a client-side message box at the next page load
by Marco Bellinaso
Show a client-side message box at the next page load Example: ShowMessageBox(Me, "Order successfully submitted!")
GetPostbackControl - Return a reference to the control that caused the last postback
by Marco Bellinaso
Return a reference to the control that caused the last postback, even from the Page_Load event! It requires in input a reference to the posted-back page (this is necessary if you want to be able to move this function in a separate class instead of in a page's codebehind class Example:
Input validation in ASP.NET 1.1
by Marco Bellinaso
ASP.NET 1.1 automatically validates input posted to the server against a list of potentially dangerous strings (the values are hard-coded, unfortunately, it would have been nice to be able to edit this list). For example, by default it prevents the user to submit text that contains ...
Persistent session state
by Marco Bellinaso
In ASP.NET 1.0 you have the option to maintain the session state on an external process, in SQL Server, by setting the mode attribute of the sessionState tag in web.config to SQLServer. The problem is that the data is stored in the SQL Server's Temp database, and thus the ...
Dynamically moving a server control
by Marco Bellinaso
Dynamically moving a server control instance on the page is very easy, thanks to the possibility to add any style attribute to the control. In this case, you can dynamically add the control's LEFT and TOP coordinates, and another attribute that says you want to use DHTML's absolute positioning. ...
IsLanguageSupported - Detecting whether a language is supported by the browser
by Marco Bellinaso
Returns a Boolean value indicating whether the specified language is supported by the client browser. The language string can specify also a sub-language or a country, e.g. fr-CA to identify the Canadian French, or it can just be fr for general French. The second parameter specify whether ...
BuildUrlWithQueryString - Building an Url with a list of parameters in the querystring
by Marco Bellinaso
This function takes in input a base url and an array of parameter names and values (in the form: param1, value1, param2, value2, etc.), and returns the final url with all the parameters in the querystring Example: Dim url As String = BuildUrlWithQueryString("Test.aspx", "Param1", "Value1",
Creating a popup calendar control
by Marco Bellinaso
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), ...
Disabling the session state to improve performances
by Marco Bellinaso
Sessions management consumes server's resources and memory, thus, if you don't use them in your application, you should disable them to improve performances. You can disable sessions for the entire application by setting to False the mode attribute in the web.config's &l
Creating a default button for the page
by Marco Bellinaso
It is usual for a web form to have more than one button control. How can you set the default button that should submit the form and raise its Click event on the server when the enter key is pressed on the form? The textbox and the other input controls don't have a property that allow you to ...
Uploading a file on the server
by Marco Bellinaso
Uploading a file from the client to the server is very straightforward with ASP.NET. Just use the <input type="file" runat="server"> tag and its wrapper class HtmlInputFile. Here's how you define the control on the page:
61-80 of 105     Previous     Next
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date