Home » 2011 (Page 3)

Archive for 2011

Flag image

Very often I find reason for using flag in gridview to visually present different options to a user. So, to keep them handy and retrievable whenever I need flags, I decided to upload them on the website for personal and public use. Use them free as you need them and save the time to yourself […]

VB.NET – Send Email

Send email using web form – user defines smtp settings. send-email.aspx To: From: SMTP Server: Subject: Attachment: Body: You email body here Action: Status: [labelEmailSent] send-email.aspx.vb Imports System.Net.Mail Partial Class Send_Email Inherits System.Web.UI.Page Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click Try Dim SendFrom As MailAddress = New MailAddress(txtFrom.Text) Dim SendTo […]

Increase session timeout

Increase session timeout web.config <configuration> <system.web> <sessionState timeout=”240″/> <!– increases session timeout from 20 minutes to 240 minutes, or 4 hours –> </system.web> </configuration> However, when increasing the user session timeout keep in mind the following: “The default is 10 minutes. Session.Timeout has no hard-coded limit. Most Web administrators set this property to 8 minutes. […]