Archive
Serving Google Earth Links from a website
<Placemark>
<description>Whatever</description>
<name><%=strName%></name>
<address><%= strAddress %></address>
</Placemark>
</kml> The code behind is:
public
string strName = ""; public string strAddress = ""; private void Page_Load(object sender, System.EventArgs e){
Response.ContentType="application/earthviewer";
strName="name..";
strAddress="Address…";
}
Then add an application mapping into IIS by pressing website > Properties > Configuration > Add Executable: C:WINDOWSMicrosoft.NETFrameworkv1.1.4322aspnet_isapi.dll Extension: KML Then Add the following into the web.config <system.web><
httpHandlers> <add verb="GET, HEAD, POST, DEBUG" path="*.kml" type="System.Web.UI.PageHandlerFactory"></add></
httpHandlers></system.web>
Now rename the ASPX file to a .KML file, and it can be called from a browserSms-txt.co.uk
Connection string for Sage ODBC via OLEDB
| TABLES |
| COMPANY |
| PERIOD |
| SALES_LEDGER |
| PURCHASE_LEDGER |
| NOMINAL_LEDGER |
| AUDIT_HEADER |
| AUDIT_SPLIT |
| AUDIT_JOURNAL |
| AUDIT_VAT |
| AUDIT_USAGE |
| DEPARTMENT |
| BANK |
| STOCK |
| STOCK_TRAN |
| STOCK_CAT |
| STOCK_COMP |
| INVOICE |
| SALES_ORDER |
| PURCHASE_ORDER |
| RECURRING |
| FIXED_ASSET |
| FIXED_ASSET_CAT |
| PREPAYMENT |
| ACCRUAL |
| INVOICE_ITEM |
| SOP_ITEM |
| POP_ITEM |
| SALES_CONTACT |
| PURCHASE_CONTACT |
| SALES_DEL_ADDR |
| PURCHASE_DEL_ADDR |
| COMPANY_DEL_ADDR |
| PRICE |
| PRICE_LIST |
| GRN_ITEM |
| CHART_LIST |
| CAT_TITLE |
| CATEGORY |
| TAX_CODE |
| UPDATE_LEDGER |
| CURRENCY |
| VAT_SUMMARY |
| VAT_RETURN |
| REMITTANCE |
Bad page viewstate in asp.net
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195
System.Web.UI.LosFormatter.Deserialize(String input) +60
System.Web.UI.LosFormatter.Deserialize(String input) +118
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +101
{
object pageState; try{
pageState =
base.LoadPageStateFromPersistenceMedium();}
catch{
// Something has gone wrong, reload page back to a stable state.pageState =
null;Response.Redirect(Request.RawUrl);
}
return pageState;}
Google Maps API
Nokia 3210 opening instructions
Nokia 3210 opening instructions:
(1) Scrabble at case with fingernails, break 3 fingernails in process.
(2) wedge knife down side of case, twist until knife buckles
(3) push cover against door and wedge 2p into plastic cover.
(4) Try to retrieve 2p with buckled knife
(5) cover should snap violently open, with battery thrown accross room.
Iterating products from sage
wsStock = SDO.Workspaces.Add("Myconnection")
wsStock.Connect(SageLocation, SageUsername, SagePassword, "ThisIsUnique")
srStock = wsStock.CreateObject("StockRecord")
srStock.MoveFirst()
DostrDescription = srStock.Fields.Item("DESCRIPTION").Value
strStockCode = srStock.Fields.Item("STOCK_CODE").Value
srStock.MoveNext()
Loop Until srStock.IsEOFwsStock.Disconnect()
Sage data objects
C# Library for ZIM
Running a block of SQL files sequentially
cls
echo Databse installation utility
echo ——————————————
echo Useage: InstallDB [server] [database name]
for %%1 in (*.*) do osql -S %1 -E -d %2 -i %%1 -n