Archives
-
Using the Modal Popup Extender to build a popup search interface
This is old code. Consider using these methods instead:
Ajax control toolkit Modal Popup
iQuery Dialog -
Check Modal Popup Extender visibility from code behind
AFAIK, the Modal Popup Extender has no direct way to determine its visibility state from code behind. This post describes a workaround for that.
-
Uploading an Excel file to SQL through an ASP.NET webform
The method below describes how to upload a file to a webserver and then import the file into SQL using either LinqToSQL or SQL Bulk Copy.
Edit on Feb 18, 2010 : To be clear, this method shows how to extract the contents of an excel file into a sql server table as columns. This is not about uploading an excel file and storing it in SQL binary column.
The sample code only shows how to import xls and xlsx files but it could easily be extended to support csv files too. Sample code is attached at the bottom.