Salta al contenuto

Il blog del Sorro

Appunti, stralci di programmazione e altro

  • Home
Tag popolari
  • microsoft
  • windows
  • aspnet
  • asp-net
  • database
  • macos
  • sqlserver

Ultimi articoli

Microsoft Activator GIT | cancellare tutti i tag da una repository MEMCACHED | Flush da riga di comando Ubuntu | Installare AAPanel WINDOWS | Verificare quali versioni di .NET framework sono installate
Asp.net Azure Microsoft Windows windows Azure

ASP.NET | Windows Azure: HTTP Error 500.19 – Internal Server Error

31/01/2014 Francesco Sorrentino

Problema: Inserendo nel web.config la voce <modules runAllManagedModulesForAllRequests=”true” /> si verifica l’errore This configuration section cannot be used at this path. This happens when the section is locked at a…

Asp.net Microsoft

ASP.NET | Estrarre il contenuto di una stringa mediante pattern

18/03/2013 Francesco Sorrentino

L’esempio seguente mostra come poter estrarre da un testo il contenuto di una stringa delimitata mediante in marcatori “” Dim Regex As New Regex("\", RegexOptions.Singleline) Dim Matches As MatchCollection =…

Database SQL Server Windows

SQL SERVER | Criptare tutte le stored procedure di un database

06/03/2013 Francesco Sorrentino

Avviare Power Shell da SQL Server Management studio e lanciare il seguente script: $db = (new-Object Microsoft.SqlServer.Management.Smo.Server("nome_server")).Databases.Item("nome_database") Foreach ($sp in $db.StoredProcedures){ if(!$sp.IsSystemObject){ if (!$sp.IsEncrypted){ $sp.TextMode = $false; $sp.IsEncrypted = $true;…

Asp.net Microsoft

ASP.NET | Esportare una gridview in PDF

03/03/2013 Francesco Sorrentino

La seguente procedura permette di esportare una gridview in un file pdf utilizzando la libreria ITextSharp Imports System.IO Imports iTextSharp.text Imports iTextSharp.text.pdf Imports iTextSharp.text.html Imports iTextSharp.text.html.simpleparser Public Overloads Overrides Sub…

Asp Microsoft

ASP CLASSIC | Data in formato UTC

26/02/2013 Francesco Sorrentino

Per gestire la data in formato UTC possiamo ricorrere ad una funzione javascript richiamata in ASP: <%@ language="vbscript"%> <script language="javascript" runat="server"> function jsGetUTCTime() { var d = new Date(); return…

Asp.net Microsoft

ASP.NET | Rimuovere ReturnUrl

26/10/2012 Francesco Sorrentino

Inserire questo codice in global.asax: Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) Dim path As String = HttpContext.Current.Request.Url.PathAndQuery Dim pagequery As String = path.Substring(path.LastIndexOf("/") + 1) Dim pagequery_Elements…

Asp.net Microsoft

ASP.NET | Riconoscere un browser mobile

07/12/2011 Francesco Sorrentino

Il seguente codice permette di verificare se si sta navigando da un browser mobile oppure no: Dim hbc As HttpBrowserCapabilities = Request.Browser If (CType(hbc, System.Web.Configuration.HttpCapabilitiesBase)).IsMobileDevice Then Response.Write("Browser mobile") Else Response.Write("Browser…

Asp.net Microsoft

ASP.NET | Spedire una sitemap a Google

01/12/2011 Francesco Sorrentino

La seguente procedura permette di spedire al motore di ricerca Google la sitemap di un sito internet. Come esempio è stata presa in considerazione la sitemap di questo blog raggiungibile…

Asp.net Microsoft

ASP.NET | Cancellare i tag html da un testo

14/07/2011 Francesco Sorrentino

Questa funzione permette di eliminare tutti i tag html da un testo: Function CleanHtml(ByVal html As String) As String html = html.Replace(">", "> ") Dim doc = New HtmlAgilityPack.HtmlDocument() doc.LoadHtml(html)…

Asp.net Microsoft

ASP.NET | Recuperare il nome della pagina web attuale

30/06/2011 Francesco Sorrentino

La seguente funzione permette di recuperare il nome della pagina web attuale Function GetCurrentPage() As String Dim t() As String = Request.ServerVariables("URL").Split("/") Dim r As String = t(UBound(t)) Return r…

Paginazione degli articoli

1 … 8 9 10 11

Categorie

  • .NET
  • Asp
  • Asp.net
  • Azure
  • CocoaPods
  • Database
  • Dos
  • DotNetCore
  • Git
  • IIS
  • Linux
  • MacOS
  • Microsoft
  • MySQL
  • Nat
  • Nginx
  • RDP
  • Social
  • Spotify
  • SQL Server
  • Swagger
  • Swift
  • Ubiquiti
  • UniFi
  • Virtualizzazione
  • VisualStudio
  • VMWare
  • Vpn
  • Web
  • Webserver
  • Windows
  • windows Azure
  • XCode

Ti sei perso

Microsoft

Microsoft Activator

08/01/2025 Francesco Sorrentino
Git

GIT | cancellare tutti i tag da una repository

19/11/2024 Francesco Sorrentino
Linux

MEMCACHED | Flush da riga di comando

19/11/2024 Francesco Sorrentino
Linux

Ubuntu | Installare AAPanel

17/05/2024 Francesco Sorrentino

Il blog del Sorro

Appunti, stralci di programmazione e altro

Proudly powered by WordPress | Tema: Newsup di Themeansar.

  • Home