ASP.NET With C#


←Back to Library

Below are some code snippets that I have prepared initially, if you do not find one that you are 
looking for, just [ drop me an E-mail ] or just a comment below would suffice.
Also please note that a demo illustrated in SQL server should also work with MySQL & vice-versa.
Example Description Download
Populate gridview programmatically using MySQL Loading the gridview programmatically using C# from database  zip
Gridview with a dropdown filter in the header Filter your gridview with a drop down in the table header  zip
Adding controls on the fly in GridView (Esp. with custom user control,) add hyperlink check-boxes dynamically  zip
 Paging & Sorting in Gridview Programmatically handle paging and sorting events of gridview  zip
 Insert/Update/Delete   using Button field of the DataGridView(Accessing the cell values of the row containing the button clicked) if you want to retrieve the cell values of the row after the button from that row has clicked and to fire database queries  zip
Export Gridview to … MS ACCESS / MS EXCEL / CSV  zip
Combobox hard-coded values & Database records to gather Loading a combobox, with static items as well as items from database  zip
Sending plain text E-mail message from web app to Gmail You can specify from, password, to, subject and message to send an email zip
Caching 1 Simple Page Level Caching zip
Caching 2 Caching SQL Server Caching for certain amount of time zip
Caching 3 SQLServer Automated Caching and Updating Cached version at Regular Intervals and upon Create/Update/Delete operations zip
Caching 4 Partial Page Caching, Multiple & Multi-Level Page caching and … Clearing the cache zip
Shortening GUID Sometimes we want to get the shortest GUID for building URLs or for dynamic file names, So I created a slight variant of GUID zip
Parsing Uri (Query Params) When one has the url of the page from which QueryParams are wanted but can not use Request.QueryString (when the url is not of current page, stored in a object in a memory etc) zip
Nested GridViews A basic example of how a grid can become a part of data row of some master table (master – grid ) zip
Nested GridViews + Conditional Formatting Apply conditional formatting to your nested grid zip
Filter DataGrid w/ LINQ An example demonstrating how LINQ can be used to filter out the data from the Data Grid zip
Gridview : JavaScript/jQuey to databing + filter An example demonstrating how to bind data to Gridview using Client Side Script + filtering ( filter as you type ) zip
Nested GridVeiw A gridview inside a gridview zip
Nested Gridview Nested Expandable & Collapsible Gridview (Same Row) zip
Nested Gridview Nested Expandable & Collapsible Gridview (Next Row) zip
Signal R Move Shape + Group Discussion / Chat + etc … zip
G.Drive Spreadsheets Access Google-SpreadSheet Via Gdata And C# zip
Parameter Parsing Parsing parameters from query string zip
Short GUID Get Short (& sweet) : unique strings, unique, not random chars as random may not be unique zip
String Float Double InterConversion zip
2D Array To-String And Vice-Versa zip
Async GridView (Take # 1) Loading the data for the gridview asynchronously from database

  • Poll Approach
  • Wait Approach
zip
CSV to Gridview A sample web app demonstrating how to load gridview from multiple CSV dynamically (one at a time) zip
Crystal Report : Dynamic Binding Conditional Data-binding from multiple tables, after the report has been loaded
zip
Free Web based IIS like manager
http://servant.io/
unobtrusive validation from scratch in ASP.Net 4.5 WebForms
Jupaol’s blog post
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s