Dim sb As New StringBuilder("Hi", 5) ' initial capacity is set to 5 Response.Write(sb.Capacity) ' will print 5 Response.Write(sb.Length) ' will print 2 sb.Append(" testing") Response.Write(sb.Capacity) ' will print 10 Response.Write(sb.Length) ' will print 10 sb.Length = 5 Response.Write(sb) ' will print hi te
UriBuilder testuri = new UriBuilder(Page.Request.Url); testuri.Scheme = testuri.UriSchemeHttps;
Dim strTest As String = "testing title case" strTest = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(strTest.ToLower()) ' will result Testing Title Case
f.Attributes = FileAttributes.Hidden ‘f is New FileInfo(filePath)
protected void Page_Load(object sender, EventArgs e) { txtTest.EnableViewState = true; }