View SnippetEdit GridView And Save ChangesASP.Net - C# ControlsViewed: 1173 Date: 2010-02-09 This code snippet shows how to populate a gridview control from a datatable object and allow a user to edit the rows and save the changes. New Snippets
Highlight Input Element On Focus
Javascript
JQuery
This code snippet shows how to highlight an input element when it has focus and remove the highlight when it loses focus.
Calculate Age
C#
Miscellaneous
This code snippet shows how to calculate an age from a date of birth.
Sliding Tab Control
Javascript
JQuery
This code snippet shows how to develop a simple tab control, that slides tab pages when you click onto a tab.
LINQ Example 1
C#
LINQ
This code snippet uses where to find all elements of an array that is less than 10.
Simple MySQL Class To Query Database
Java
Database
The following code snippet shows how to create a simple MySql class that can be used to create a connection to the database server and execute queries which return a ResultSet object.
Connect To MySQL Database
Java
Database
This code snippet shows how to connect to a MySQL database server. You will need to download Connector/j.
File Viewer Example
Java
Controls
This code snippet shows how to open a file for reading and display the data into a JTextArea component.
JMenu With ActionListener Example
Java
Controls
This code snippet shows how to add an ActionListener to a JMenu component.
JMenuBar Example
Java
Controls
This code snippet demonstrates how to use the JMenuBar component and how to add menu items using the JMenu and JMenuItem components.
MD5 Message Digest Example 1
Java
Security
This code snippet shows how to use the MessageDigest class to get an instance of the MD5 MessageDigest. This code snippet does not return a 32 character string.
Check If File Exists
Java
File Manipulation
This code snippet checks if a file exists. If it does, it displays its absolute file path. What Others Are Viewing
Highlight Input Element On Focus
Javascript
JQuery
This code snippet shows how to highlight an input element when it has focus and remove the highlight when it loses focus.
Sliding Tab Control
Javascript
JQuery
This code snippet shows how to develop a simple tab control, that slides tab pages when you click onto a tab.
LINQ Example 1
C#
LINQ
This code snippet uses where to find all elements of an array that is less than 10. |
Top ASP.Net - C# SnippetsThis code snippet shows how to populate a gridview control from a datatable object and allow a user to edit the rows and save the changes. This code snippet shows how to populate a gridview control with data from a datatable object. This code snippet writes a file directly to the HTTP response output stream using the WriteFile method. This code snippet exports a GridView to a MS Word document as a download. This code snippet shows how to load an XML file from the App_Data folder into a GridView control using the DataSet class. This code snippet loops through all the headers from the HttpRequest object and displays its value. This code snippet shows you how to read and write to a session. This code snippet shows how to use the HttpCookie class and set a cookie expiry time and a value. This code snippet shows how to read and write a cookie and how to check if a cookie exists. This code snippet loops through all the form variables and shows its value if the form has been posted. |