ASP.NET | Numerare una gridview
<asp:TemplateField> <HeaderTemplate>NR</HeaderTemplate> <ItemTemplate> <asp:Label ID=”lbNum” runat=”server” Text='<%#Container.DataItemIndex+1 %>’></asp:Label> </ItemTemplate></asp:TemplateField>
Appunti, stralci di programmazione e altro
<asp:TemplateField> <HeaderTemplate>NR</HeaderTemplate> <ItemTemplate> <asp:Label ID=”lbNum” runat=”server” Text='<%#Container.DataItemIndex+1 %>’></asp:Label> </ItemTemplate></asp:TemplateField>
Dim Cognome, Nome, DataNascita, Sesso, Comune Cognome = "Bianchi" Nome = "Mario" DataNascita = "01/03/1965" Sesso = "M" Comune = "Napoli" Dim StrXml StrXml = "<?xml version=""1.0"" encoding=""utf-8""?>" & _…
Dim ObjMail As New System.Net.Mail.MailMessage() Dim ObjMailFrom As New System.Net.Mail.MailAddress("Email del mittente", "Nome del mittente") ObjMail.From = ObjMailFrom ObjMail.To.Add("email di destinazione") ObjMail.Subject = "Oggetto della email" ObjMail.Body = "Messaggio" Dim…
Function GetMD5(ByVal input As String) As String Dim md5Hasher As MD5 = MD5.Create() Dim data As Byte() = md5Hasher.ComputeHash(Encoding.Default.GetBytes(input)) Dim sBuilder As New StringBuilder() Dim i As Integer For i…